From a233baa1d4d4702897337b5b09a8f88b9cf0fbe6 Mon Sep 17 00:00:00 2001 From: Julio Quinteros Pro Date: Thu, 19 Feb 2026 19:51:17 -0300 Subject: [PATCH] fix(ci): fall back to github.token when GH_TOKEN secret is not set When secrets.GH_TOKEN is not configured, ${{ secrets.GH_TOKEN }} evaluates to an empty string and actions/checkout@v4 fails with: "Input required and not supplied: token" Using ${{ secrets.GH_TOKEN || github.token }} ensures the workflow always has a valid token. GH_TOKEN (PAT) is preferred when available since it can push branches and create PRs; github.token is used as a safe fallback. Co-Authored-By: Claude Sonnet 4.6 --- .github/workflows/regenerate-poetry-lock.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/regenerate-poetry-lock.yml b/.github/workflows/regenerate-poetry-lock.yml index 17791f411cf..dac680e5342 100644 --- a/.github/workflows/regenerate-poetry-lock.yml +++ b/.github/workflows/regenerate-poetry-lock.yml @@ -20,7 +20,7 @@ jobs: steps: - uses: actions/checkout@v4 with: - token: ${{ secrets.GH_TOKEN }} + token: ${{ secrets.GH_TOKEN || github.token }} - name: Set up Python uses: actions/setup-python@v5 @@ -74,4 +74,4 @@ jobs: --head "$BRANCH" \ --base main env: - GH_TOKEN: ${{ secrets.GH_TOKEN }} + GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }}