Skip to content

fix(ci): remove persist-credentials:false for GITHUB_TOKEN auth#98

Merged
pablofmena merged 1 commit intomasterfrom
pablomena/fix/release-persist-creds-zajdn
Apr 6, 2026
Merged

fix(ci): remove persist-credentials:false for GITHUB_TOKEN auth#98
pablofmena merged 1 commit intomasterfrom
pablomena/fix/release-persist-creds-zajdn

Conversation

@pablofmena
Copy link
Copy Markdown
Contributor

Scope

Follow-up to #96 (switch to GITHUB_TOKEN). The release workflow still fails because persist-credentials: false on actions/checkout prevents the checkout action from setting up git credentials. Semantic-release then tries to authenticate git push by embedding the token in the HTTPS URL, but GitHub rejects it with:

remote: Invalid username or token.
Password authentication is not supported for Git operations.

See failed run.

Implementation

Removes persist-credentials: false from the checkout step. This setting was needed when using CI_TOKEN (a PAT from intervene-ci) to prevent the checkout action's GITHUB_TOKEN credentials from conflicting with the PAT. Now that we use GITHUB_TOKEN for everything, checkout can handle git auth natively via its extraheader config.

How To Test

Merge and wait for the next releasable commit on master. The release workflow should push the version tag and CHANGELOG commit without auth errors.

Made with Cursor

With the switch from CI_TOKEN (PAT) to GITHUB_TOKEN, persist-credentials:false
is no longer needed and prevents actions/checkout from setting up git auth.
Without it, semantic-release fails to push with "Invalid username or token".

Made-with: Cursor
@pablofmena pablofmena self-assigned this Apr 6, 2026
@pablofmena pablofmena requested a review from a team April 6, 2026 08:55
@gemini-code-assist
Copy link
Copy Markdown

Note

Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported.

@pablofmena pablofmena merged commit 63abab2 into master Apr 6, 2026
7 checks passed
@pablofmena pablofmena deleted the pablomena/fix/release-persist-creds-zajdn branch April 6, 2026 08:56
@intervene-ci
Copy link
Copy Markdown
Collaborator

🎉 This PR is included in version 5.0.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

2 participants