From ae5cfbf5b827616bfc193d82a97b9b59e7260dfa Mon Sep 17 00:00:00 2001 From: Bhargav Soni Date: Wed, 10 Jun 2026 21:32:07 +0300 Subject: [PATCH] ci: fall back to github.token for source checkout in SPA docker build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The vendored reusable-spa-docker-build cloned the source repo with a bare `token: ${{ secrets.GIT_TOKEN }}`. GIT_TOKEN is not available to this public repo (not a repo secret, not in the org secrets scoped to it), so checkout failed with 'Input required and not supplied: token' and the tag-triggered Docker Build could not run. source_repo is always this (public) repo, so the automatic GITHUB_TOKEN can clone it — no PAT needed. Fall back to github.token when GIT_TOKEN is absent, matching the pattern already used in reusable-pr-docker-build.yml. Co-Authored-By: Claude Fable 5 --- .github/workflows/reusable-spa-docker-build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/reusable-spa-docker-build.yml b/.github/workflows/reusable-spa-docker-build.yml index 5d5ba4b..551d803 100644 --- a/.github/workflows/reusable-spa-docker-build.yml +++ b/.github/workflows/reusable-spa-docker-build.yml @@ -44,7 +44,7 @@ jobs: with: repository: ${{ inputs.source_repo }} ref: ${{ inputs.source_ref }} - token: ${{ secrets.GIT_TOKEN }} + token: ${{ secrets.GIT_TOKEN || github.token }} fetch-depth: 1 - name: Configure AWS credentials