Skip to content

fix: fallback to github.token when SUBMODULE_PAT is not set - #54

Merged
deepanaishtaweera merged 2 commits into
mainfrom
copilot/fix-build-and-push-image-job
Jun 21, 2026
Merged

deepanaishtaweera merged 2 commits into
mainfrom
copilot/fix-build-and-push-image-job

Conversation

Copilot AI commented Jun 21, 2026 •

Copy link
Copy Markdown
Contributor

actions/checkout@v5 made token a required input (previously it defaulted to github.token). When SUBMODULE_PAT is not configured, the expression evaluates to an empty string, which v5 rejects immediately — causing the entire job to fail at checkout before any build step runs.

Change

  • .github/workflows/docker-publish.yaml: use || fallback so github.token is used when SUBMODULE_PAT is absent
# Before
token: ${{ secrets.SUBMODULE_PAT }}

# After
token: ${{ secrets.SUBMODULE_PAT || github.token }}

When SUBMODULE_PAT is properly configured the behaviour is unchanged; the fallback only activates when the secret is missing.

Copilot AI changed the title [WIP] Fix failing GitHub Actions job build-and-push-image fix: fallback to github.token when SUBMODULE_PAT is not set Jun 21, 2026
Copilot AI requested a review from deepanaishtaweera June 21, 2026 11:09
@deepanaishtaweera
deepanaishtaweera marked this pull request as ready for review June 21, 2026 12:21
@deepanaishtaweera
deepanaishtaweera merged commit e158c6e into main Jun 21, 2026
1 check passed
@deepanaishtaweera
deepanaishtaweera deleted the copilot/fix-build-and-push-image-job branch June 21, 2026 12:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants