Skip to content

fix(ci-cd): fix env var name mismatch in PAT push command#1745

Merged
tyler-dane merged 3 commits into
mainfrom
fix/pat-env-var-mismatch
May 13, 2026
Merged

fix(ci-cd): fix env var name mismatch in PAT push command#1745
tyler-dane merged 3 commits into
mainfrom
fix/pat-env-var-mismatch

Conversation

@tyler-dane
Copy link
Copy Markdown
Contributor

Problem

bump-and-tag.yml declared the PAT as env var COMPASS_PAT but the push command referenced ${COMPASS_CI_TOKEN} — the secret name, not the shell variable name. The push silently fell back to the default GITHUB_TOKEN, which GitHub blocks from triggering downstream workflows.

Fix

Changed the push command to use ${COMPASS_PAT} to match the env: declaration.

Before:

git push "https://x-access-token:${COMPASS_CI_TOKEN}@github.com/..." "$NEW_TAG"

After:

git push "https://x-access-token:${COMPASS_PAT}@github.com/..." "$NEW_TAG"

Also updates docs/CI-CD/workflows.md to point to the explanation section for COMPASS_CI_TOKEN.

🤖 Generated with Claude Code

tyler-dane and others added 3 commits May 13, 2026 12:19
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@tyler-dane tyler-dane merged commit e9ff202 into main May 13, 2026
8 checks passed
@tyler-dane tyler-dane deleted the fix/pat-env-var-mismatch branch May 13, 2026 17:23
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.

1 participant