feat(inputs): make github-token required

- to perform any failure action such as labeling, closing a PR, or leaving just a comment a token is required. Also many valuable checks, such as minGlobalMergeRatio, are only possible with a GitHub token.
This commit is contained in:
peaklabs-dev committed 2026-02-12 22:09:35 +01:00
1 parent 97c65c6e69
commit 337cf8b540
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -10,7 +10,7 @@ inputs:
# Repo Auth Token
github-token:
description: GitHub token used to authenticate API requests.
required: false
required: true
default: ${{ github.token }}
runs:
+1 -1
View File
@@ -12,7 +12,7 @@ function parseList(raw: string): string[] {
export function getSettings(): Settings {
const settings = {
// Repo Auth Token
githubToken: core.getInput(Input.GithubToken),
githubToken: core.getInput(Input.GithubToken, { required: true }),
};
core.setSecret(settings.githubToken);