Skip to content

Commit f5be48c

Browse files
committed
use RELEASE_PAT for checkout and tag push
1 parent 5d276a4 commit f5be48c

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ name: ci
2323
# DOCKERHUB_IMAGE – (optional) image name, defaults to "stackresume"
2424
# Secrets:
2525
# DOCKERHUB_TOKEN – a Docker Hub access token with Read/Write/Delete
26+
# RELEASE_PAT – a fine-grained PAT (or classic PAT with `repo` scope)
27+
# used to push the auto-generated vX.Y.Z tag. Required
28+
# because GitHub deliberately suppresses workflow
29+
# triggers for pushes made with the default
30+
# GITHUB_TOKEN — without this, the tag-triggered
31+
# Docker build (vX.Y.Z / vX.Y / vX tags) never fires.
2632

2733
on:
2834
push:
@@ -143,6 +149,7 @@ jobs:
143149
- uses: actions/checkout@v4
144150
with:
145151
fetch-depth: 0 # need full history to walk tags
152+
token: ${{ secrets.RELEASE_PAT }}
146153

147154
- name: Compute next semver
148155
id: version
@@ -199,7 +206,7 @@ jobs:
199206
- name: Push tag and create GitHub release
200207
if: steps.version.outputs.skip == 'false'
201208
env:
202-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
209+
GH_TOKEN: ${{ secrets.RELEASE_PAT }}
203210
NEW_TAG: ${{ steps.version.outputs.new_tag }}
204211
run: |
205212
git config user.name "github-actions[bot]"

0 commit comments

Comments
 (0)