Skip to content

Commit de2cef1

Browse files
committed
fix(cd): disable persist-credentials to ensure WORKFLOW_SECRET PAT is used for tag push
The checkout action defaults persist-credentials to true, which injects GITHUB_TOKEN into git's http.extraheader. This overrides the PAT embedded in the git push URL, causing tag pushes to authenticate as github-actions[bot] instead of the PAT identity. GitHub does not trigger downstream workflows for GITHUB_TOKEN pushes, which is why docker.yml was never triggered.
1 parent 0bcd25a commit de2cef1

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/cd.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,8 @@ jobs:
239239
steps:
240240
- name: "🏗️ Checkout Repository"
241241
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
242+
with:
243+
persist-credentials: false
242244

243245
- name: "📝 Orchestrate Release Lifecycle (Release Please)"
244246
id: release

0 commit comments

Comments
 (0)