From f5be48cbee97c446c9e413396f248a2a10d9ecbd Mon Sep 17 00:00:00 2001 From: Sathvik Rao Poladi <36164509+Sathvik-Rao@users.noreply.github.com> Date: Wed, 27 May 2026 19:26:10 -0500 Subject: [PATCH] use RELEASE_PAT for checkout and tag push --- .github/workflows/ci.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 87ccb24..0242edb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,6 +23,12 @@ name: ci # DOCKERHUB_IMAGE – (optional) image name, defaults to "stackresume" # Secrets: # DOCKERHUB_TOKEN – a Docker Hub access token with Read/Write/Delete +# RELEASE_PAT – a fine-grained PAT (or classic PAT with `repo` scope) +# used to push the auto-generated vX.Y.Z tag. Required +# because GitHub deliberately suppresses workflow +# triggers for pushes made with the default +# GITHUB_TOKEN — without this, the tag-triggered +# Docker build (vX.Y.Z / vX.Y / vX tags) never fires. on: push: @@ -143,6 +149,7 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 # need full history to walk tags + token: ${{ secrets.RELEASE_PAT }} - name: Compute next semver id: version @@ -199,7 +206,7 @@ jobs: - name: Push tag and create GitHub release if: steps.version.outputs.skip == 'false' env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_TOKEN: ${{ secrets.RELEASE_PAT }} NEW_TAG: ${{ steps.version.outputs.new_tag }} run: | git config user.name "github-actions[bot]"