Skip to content

fix(ci): add persist-credentials: false to unblock PAT push#194

Merged
jdsika merged 3 commits intomainfrom
fix/release-tag-push-permission
May 5, 2026
Merged

fix(ci): add persist-credentials: false to unblock PAT push#194
jdsika merged 3 commits intomainfrom
fix/release-tag-push-permission

Conversation

@jdsika
Copy link
Copy Markdown
Collaborator

@jdsika jdsika commented May 5, 2026

Problem

The release workflow fails at the "Create and push tag" step with:

remote: Permission to lichtblick-suite/asam-osi-converter.git denied to github-actions[bot].
fatal: unable to access '...': The requested URL returned error: 403

Root Cause

Commit 4bc1423 removed token: ${{ secrets.PAT_TOKEN }} from the actions/checkout@v4 step to prevent a workflow trigger loop. However, the checkout still stores an http.extraheader git config with the default GITHUB_TOKEN. This extraheader overrides the PAT credentials set later via git remote set-url, so pushes still use the unprivileged token.

Fix

Add persist-credentials: false to the checkout step. This prevents the default token's extraheader from being stored, allowing the explicit git remote set-url with PAT_TOKEN to take effect for tag and changelog pushes.

Testing

  • yarn lint:ci ✅ (no source changes)
  • Verified against GitHub Actions checkout docs that persist-credentials: false disables extraheader storage

jdsika added 2 commits May 4, 2026 16:58
The 'Create and push tag' step used the default GITHUB_TOKEN from
actions/checkout, which lacks push permission. This caused a 403 error
when the workflow_dispatch trigger attempted to create and push a tag.

Use the PAT_TOKEN secret (already used for the changelog commit) to
authenticate the tag push.

Signed-off-by: Carlo van Driesten <carlo.van-driesten@bmw.de>
The checkout step's default GITHUB_TOKEN extraheader was overriding
the PAT_TOKEN set via git remote set-url, causing 403 on tag push.
Setting persist-credentials: false prevents the extraheader from
being stored, allowing the explicit PAT_TOKEN URL to take effect.

Signed-off-by: Carlo van Driesten <carlo.van-driesten@bmw.de>
@jdsika jdsika self-assigned this May 5, 2026
@jdsika jdsika added bug Something isn't working labels May 5, 2026
@jdsika jdsika merged commit fde9d03 into main May 5, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant