Skip to content

ci(release): allow manual dispatch of Release Please - #159

Merged
Alberto-Codes merged 1 commit into
mainfrom
chore/release-please-dispatch
Sep 3, 2026
Merged

ci(release): allow manual dispatch of Release Please#159
Alberto-Codes merged 1 commit into
mainfrom
chore/release-please-dispatch

Conversation

@Alberto-Codes

Copy link
Copy Markdown
Owner

Release Please has failed on every push to main since this morning with Resource not accessible by personal access token on release creation, so v1.3.0 was never tagged or published despite the manifest reading 1.3.0.

The token was not the cause. A temporary diagnostic workflow (removed in this PR) used the RELEASE_PLEASE_TOKEN secret to call the exact endpoint release-please calls, and it succeeded three times: a draft release, a non-draft release that created a new tag, and a v99.99.99 release. All cleaned up afterwards. GitHub reported the endpoint accepts contents=write, which the token has. Reading release-please 17.3.0's source confirms its payload matches what the diagnostic sent.

What was actually wrong is that every retry re-ran the same original run, which was created before the secret was first set. A re-run replays that run's original context, so it never saw any of the rotated tokens.

  • Add workflow_dispatch to the Release Please workflow so a maintainer can trigger a genuinely fresh run after rotating a secret
  • Remove the temporary token diagnostic workflow

Test: CI only. Merging this pushes to main, which itself triggers a fresh Release Please run.


PR Review

Checklist

  • Self-reviewed my code
  • Tests pass (uv run pytest)
  • Lint passes (uv run ruff check .)
  • Breaking changes use ! in title and BREAKING CHANGE: in body

Review Focus

  • The manual trigger is the durable part. Without it, recovering from a secret change requires an unrelated commit on main.

Related

Re-running a previous workflow run replays that run's original context, so a
secret rotated afterwards is never picked up. A manual trigger gives a fresh
run without needing a new commit on main.
Copilot AI lite review requested due to automatic review settings September 3, 2026 03:09

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

The change is a minimal, valid workflow trigger addition that aligns with the stated recovery need and does not alter release logic.

Pull request overview

Adds a manual trigger to the existing Release Please workflow so maintainers can start a fresh workflow run (with current secrets/context) after rotating RELEASE_PLEASE_TOKEN, avoiding reliance on rerunning an older, stale-context run.

Changes:

  • Add workflow_dispatch to .github/workflows/release-please.yml for manual execution.
  • Document why manual dispatch is needed (reruns replay the original run context, including secret availability).
File summaries
File Description
.github/workflows/release-please.yml Adds workflow_dispatch to allow maintainers to trigger a fresh Release Please run after secret rotation.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@Alberto-Codes
Alberto-Codes merged commit 3186513 into main Sep 3, 2026
8 checks passed
@Alberto-Codes
Alberto-Codes deleted the chore/release-please-dispatch branch September 3, 2026 03:10
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.

2 participants