Skip to content

Commit 0cc78d1

Browse files
tyler-daneclaude
andauthored
fix(ci-cd): use PAT to push tag so publish-images.yml is triggered (#1742)
* fix(ci-cd): use PAT to push tag so publish-images.yml is triggered Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * docs(ci-cd): explain why GITHUB_PAT is needed for tag-triggered workflows Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * Update workflows.md --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 08f8795 commit 0cc78d1

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/bump-and-tag.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ jobs:
1919
fetch-depth: 0
2020

2121
- name: Bump patch version and push tag
22+
env:
23+
COMPASS_PAT: ${{ secrets.COMPASS_CI_TOKEN }}
2224
run: |
2325
LATEST=$(git tag --sort=-v:refname | grep -E '^v[0-9]+\.[0-9]+\.[0-9]+$' | head -1)
2426
[ -z "$LATEST" ] && LATEST="v0.0.0"
@@ -30,4 +32,4 @@ jobs:
3032
NEW_TAG="v${MAJOR}.${MINOR}.$((PATCH + 1))"
3133
echo "Bumping ${LATEST} → ${NEW_TAG}"
3234
git tag "$NEW_TAG"
33-
git push origin "$NEW_TAG"
35+
git push "https://x-access-token:${COMPASS_CI_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" "$NEW_TAG"

docs/CI-CD/workflows.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ All secrets go in **GitHub → Settings → Secrets and variables → Actions**:
6969

7070
| Secret | Value |
7171
|---|---|
72+
| `COMPASS_CI_TOKEN` | Fine-grained PAT needed for the bump and tag workflow |
7273
| `DOCKERHUB_USERNAME` | Docker Hub username for the `switchbacktech` org |
7374
| `DOCKERHUB_TOKEN` | Docker Hub personal access token (Read & Write) |
7475
| `STAGING_SSH_HOST` | VPS IP address or hostname |

0 commit comments

Comments
 (0)