From 82629b39d0895cc2b1318910d2ec047b352b2fb3 Mon Sep 17 00:00:00 2001 From: Gabriel Torcat <87126387+gabr1elt@users.noreply.github.com> Date: Mon, 1 Sep 2025 18:25:36 +0200 Subject: [PATCH] fix(run): pass gh token (#61) * fix(run): pass gh token Adds the github token as env var for the run.sh script * fix(action): use GITHUB_TOKEN env if set --- action.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 2a499ec..c71bc21 100644 --- a/action.yml +++ b/action.yml @@ -37,12 +37,14 @@ runs: RUNNER_OS: ${{ runner.os }} RUNNER_ARCH: ${{ runner.arch }} VERSION: ${{ inputs.version }} - GITHUB_API_TOKEN: ${{ inputs.github_token }} + GITHUB_API_TOKEN: ${{ env.GITHUB_TOKEN || inputs.github_token }} - name: Run git-cliff id: run-git-cliff shell: bash run: ${GITHUB_ACTION_PATH}/run.sh --config=${{ inputs.config }} ${{ inputs.args }} + env: + GITHUB_TOKEN: ${{ env.GITHUB_TOKEN || inputs.github_token }} branding: icon: "triangle"