Commit graph

14 commits

Author SHA1 Message Date
jdx
a0eaf7aa03
fix(ci): add gh auth setup-git to release-plz.sh (#473)
Some checks failed
release-plz / release-plz (push) Has been cancelled
build-test / build (push) Has been cancelled
zizmor / zizmor (push) Has been cancelled
Continuous Integration / TypeScript Tests (push) Has been cancelled
Check dist/ / Check dist/ (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
Test Redacted Environment Variables / test-redacted-env (push) Has been cancelled
build-test / alpine (push) Has been cancelled
build-test / macos (push) Has been cancelled
build-test / ubuntu (push) Has been cancelled
build-test / windows (push) Has been cancelled
build-test / specific_version (push) Has been cancelled
build-test / checksum_failure (push) Has been cancelled
build-test / custom_cache_key (push) Has been cancelled
build-test / fetch_from_github (push) Has been cancelled
build-test / final (push) Has been cancelled
## Summary
- Follow-up to [#471](https://github.com/jdx/mise-action/pull/471): the
release-plz checkout now uses `persist-credentials: false`, so the token
isn't written to `.git/config` and `git push origin release --force` in
[scripts/release-plz.sh](scripts/release-plz.sh) would 403.
- Mirror the workaround already applied to
[scripts/postversion.sh:9](scripts/postversion.sh:9) by calling `gh auth
setup-git` after the `git config user.{name,email}` block, before any
`git push`.

Flagged by Cursor Bugbot on
https://github.com/jdx/mise-action/pull/471#pullrequestreview-4275760577.

## Test plan
- [ ] Next scheduled release-plz run (or manual `workflow_dispatch`)
successfully pushes the `release` branch without a 403.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Low Risk**
> Low risk CI-only change that affects the release automation path; main
impact is whether the workflow can successfully push the `release`
branch.
> 
> **Overview**
> Fixes the `scripts/release-plz.sh` release automation to run `gh auth
setup-git` after setting the git author, ensuring `git push` works when
`actions/checkout` uses `persist-credentials: false`.
> 
> This prevents 403 failures when pushing the forced `release` branch
during automated version bump PR creation.
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
f69419101e. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-12 15:20:22 -05:00
jdx
70815728fd
chore: remove duplicate release-plz logic 2025-08-18 11:57:51 -05:00
jdx
3600b64107
chore: fix release-plz 2025-08-18 11:51:16 -05:00
jdx
a35d5fc681
fix: v2 release tag automation 2025-07-27 14:00:51 -05:00
jdx
cf44a563b9
fix: v2 release tag automation 2025-07-27 13:57:57 -05:00
jdx
7fa2a26c1e
fix: v2 release tag automation 2025-07-27 13:51:33 -05:00
jdx
583fe7be9d
fix: v2 release tag automation 2025-07-27 13:50:16 -05:00
jdx
eba59a9eef
chore: skip release script if no changes 2025-07-27 13:46:04 -05:00
jdx
07fb524adc
fix: v2 release tag automation 2025-07-27 13:44:40 -05:00
jdx
5c24f96c0f
fix: v2 release tag automation 2025-07-27 13:40:47 -05:00
jdx
714aa2569b
chore: update changelog extraction in release script to skip the section break line 2025-07-17 13:56:46 +00:00
jdx
0c56699aa6
chore: add git add and git status commands to release script 2025-07-17 13:52:30 +00:00
jdx
954e13db3e
chore: get postversion to work 2025-07-16 04:57:59 +00:00
jdx
bd8ba20c56
chore: added release-plz 2025-07-16 04:49:54 +00:00