From 014040ced19c8ad795e0ad0f795825db1024ad2f Mon Sep 17 00:00:00 2001 From: peaklabs-dev <122374094+peaklabs-dev@users.noreply.github.com> Date: Thu, 12 Feb 2026 21:49:33 +0100 Subject: [PATCH] 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. --- action.yaml | 2 +- src/settings.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/action.yaml b/action.yaml index d216c93..322e7cf 100644 --- a/action.yaml +++ b/action.yaml @@ -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 }} # General Settings diff --git a/src/settings.ts b/src/settings.ts index 79df523..97b14d4 100644 --- a/src/settings.ts +++ b/src/settings.ts @@ -23,7 +23,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 }), // General Settings maxFailures: parseInt(core.getInput(Input.MaxFailures)),