Skip to content

Fix release-plz PR creation by enabling credential persistence#33

Merged
ZR233 merged 2 commits intomainfrom
copilot/error-handling-for-pr-creation
Jan 29, 2026
Merged

Fix release-plz PR creation by enabling credential persistence#33
ZR233 merged 2 commits intomainfrom
copilot/error-handling-for-pr-creation

Conversation

Copy link
Contributor

Copilot AI commented Jan 29, 2026

The release-plz-pr workflow job was failing with a 403 error when attempting to create pull requests. The job inherited persist-credentials: false from a YAML anchor, preventing the GITHUB_TOKEN from being available to the release-plz action.

Changes

  • .github/workflows/release.yml: Replace YAML anchor reference in release-plz-pr job with explicit checkout step that allows credential persistence (default behavior)
# Before: inherits persist-credentials: false from anchor
steps:
  - *checkout  # includes persist-credentials: false
  - *install-rust

# After: explicit checkout with default credential persistence
steps:
  - name: Checkout repository
    uses: actions/checkout@v4
    with:
      fetch-depth: 0
  - *install-rust

The release-plz job retains persist-credentials: false as it only performs releases and doesn't require token persistence.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

…redentials: false

Co-authored-by: ZR233 <34859362+ZR233@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix error handling for pull request creation Fix release-plz PR creation by enabling credential persistence Jan 29, 2026
Copilot AI requested a review from ZR233 January 29, 2026 03:56
@ZR233 ZR233 marked this pull request as ready for review January 29, 2026 03:59
Copilot AI review requested due to automatic review settings January 29, 2026 03:59
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes the release-plz-pr workflow job failing with 403s when creating pull requests by ensuring the job has access to a persisted GITHUB_TOKEN. It does so by overriding the shared checkout configuration that previously disabled credential persistence.

Changes:

  • Update the release-plz-pr job in .github/workflows/release.yml to use an explicit actions/checkout@v4 step with fetch-depth: 0 and default credential persistence.
  • Leave the main release-plz job behavior unchanged so it still uses persist-credentials: false.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ZR233 ZR233 merged commit 9815541 into main Jan 29, 2026
11 checks passed
@ZR233 ZR233 deleted the copilot/error-handling-for-pr-creation branch January 29, 2026 04:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants