mirror of
https://github.com/jdx/mise-action.git
synced 2026-05-14 05:50:31 +00:00
fix(ci): add gh auth setup-git to release-plz.sh
The release-plz workflow's checkout uses persist-credentials: false (set in #471), so the token isn't written to .git/config and `git push origin release --force` would 403. Mirror the workaround already applied to scripts/postversion.sh. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
46bb674500
commit
f69419101e
1 changed files with 5 additions and 0 deletions
|
|
@ -47,6 +47,11 @@ if [ -n "$latest_release_version" ] && [ "$cur_pkg_version" = "$latest_release_v
|
|||
git config user.name mise-en-dev
|
||||
git config user.email 123107610+mise-en-dev@users.noreply.github.com
|
||||
|
||||
# Configure git to use gh's credential helper. The checkout step uses
|
||||
# persist-credentials: false (per zizmor's artipacked audit), so the
|
||||
# token isn't written to .git/config and raw `git push` would 403.
|
||||
gh auth setup-git
|
||||
|
||||
# Create a PR with the version bump
|
||||
npm version "${version#v}" --no-git-tag-version
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue