ci: add workflow_dispatch to Release - #79
Conversation
Potato: one-line trigger only so Release can be run without a main push while Actions queues starve.
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 658931d2df
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| on: | ||
| push: | ||
| branches: [main] | ||
| workflow_dispatch: |
There was a problem hiding this comment.
Restrict manual releases to the main branch
A write-capable user can now dispatch this workflow with gh workflow run Release --ref <feature-branch>, causing every release step to check out and operate on an unreviewed ref while retaining contents: write and id-token: write. The gh workflow run documentation defines --ref as the branch or tag containing the workflow version, so a feature branch with a modified package version and no pending changesets can reach the OIDC-enabled npm run release path without passing main-branch review. Gate the release job to refs/heads/main or reject non-main dispatches.
Useful? React with 👍 / 👎.
Summary
workflow_dispatchto Release so we can run OIDC + provenance publish without another main push.Test plan
gh workflow run Release --ref main