Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions scripts/release-plz.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

While gh auth setup-git correctly configures the credential helper for the default host, it is generally more robust in CI scripts to explicitly specify the hostname to avoid ambiguity or potential prompts in environments with multiple configured hosts.

Suggested change
gh auth setup-git
gh auth setup-git --hostname github.com


# Create a PR with the version bump
npm version "${version#v}" --no-git-tag-version

Expand Down
Loading