Skip to content

fix(release): grant actions:write + drop broken auto-merge on tap - #1336

Merged
nwparker merged 1 commit into
mainfrom
nwparker/brew-publish-actions-perm
May 2, 2026
Merged

nwparker merged 1 commit into
mainfrom
nwparker/brew-publish-actions-perm

Conversation

@nwparker

@nwparker nwparker commented May 2, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Two bugs surfaced on the v1.3.26 release — both caught before users were affected thanks to manual dispatch + manual PR merge:

1. Trigger Homebrew cask bump step failed with HTTP 403

```
could not create workflow dispatch event: HTTP 403:
Resource not accessible by integration
```
The `publish-release` job's permissions block only listed `contents: write`, but `POST /actions/workflows/:id/dispatches` requires `actions: write` on the scoped-down `GITHUB_TOKEN`. Added the permission.

Ref: failing job on v1.3.26.

2. Tap bump PRs were left open even when the bump did run

Even when `homebrew-bump.yml` ran successfully (via manual dispatch for v1.3.25 and v1.3.26), the final `gh pr merge --auto` was silently no-op'ing. `--auto` only activates when there is a required check or branch-protection rule to wait on; the tap intentionally has neither, so the PR stayed OPEN forever.

Switched to a direct `gh pr merge --squash --delete-branch` so the tap stays hands-free as originally intended. Both prior bump PRs (stablyai/homebrew-orca#1 and #2) have been merged manually, so the tap now serves v1.3.26.

State right now

  • Tap: orca 1.3.26 with matching sha256s (verified via GitHub API).
  • brew update && brew install --cask stablyai/orca/orca gets users the latest.

Test plan

  • homebrew-bump.yml dispatched manually for v1.3.26 — completed in 16s, PR opened in tap, merged.
  • On the next GA release: the `Trigger Homebrew cask bump` step should now succeed (no 403), the bump workflow should fire automatically, and the bump PR should auto-merge without human touch.
  • On the next rc release: `Trigger Homebrew cask bump` step should skip via the existing `if: !contains(tag, '-rc.')` gate.

Made with Orca 🐋

Two bugs surfaced on the v1.3.26 release:

1. release.yml's new `Trigger Homebrew cask bump` step failed with
   HTTP 403 "Resource not accessible by integration". The publish-release
   job's permissions block only listed `contents: write`, but
   POST /actions/workflows/:id/dispatches requires `actions: write` on the
   scoped-down GITHUB_TOKEN. Added the permission.

2. Even when the bump workflow does run, its `gh pr merge --auto` was
   silently no-op'ing against the homebrew-orca tap, leaving bump PRs
   open. `--auto` only activates when there's a required check or
   branch-protection rule to wait on; the tap intentionally has neither.
   Switched to a direct squash-merge so the tap stays hands-free as
   originally intended.

Co-authored-by: Orca <help@stably.ai>
@nwparker
nwparker merged commit f6cc2ae into main May 2, 2026
3 checks passed
@nwparker
nwparker deleted the nwparker/brew-publish-actions-perm branch May 2, 2026 03:24
mralexsaavedra pushed a commit to mralexsaavedra/orca that referenced this pull request May 2, 2026
…ablyai#1336)

Two bugs surfaced on the v1.3.26 release:

1. release.yml's new `Trigger Homebrew cask bump` step failed with
   HTTP 403 "Resource not accessible by integration". The publish-release
   job's permissions block only listed `contents: write`, but
   POST /actions/workflows/:id/dispatches requires `actions: write` on the
   scoped-down GITHUB_TOKEN. Added the permission.

2. Even when the bump workflow does run, its `gh pr merge --auto` was
   silently no-op'ing against the homebrew-orca tap, leaving bump PRs
   open. `--auto` only activates when there's a required check or
   branch-protection rule to wait on; the tap intentionally has neither.
   Switched to a direct squash-merge so the tap stays hands-free as
   originally intended.

Co-authored-by: Orca <help@stably.ai>
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
…ablyai#1336)

Two bugs surfaced on the v1.3.26 release:

1. release.yml's new `Trigger Homebrew cask bump` step failed with
   HTTP 403 "Resource not accessible by integration". The publish-release
   job's permissions block only listed `contents: write`, but
   POST /actions/workflows/:id/dispatches requires `actions: write` on the
   scoped-down GITHUB_TOKEN. Added the permission.

2. Even when the bump workflow does run, its `gh pr merge --auto` was
   silently no-op'ing against the homebrew-orca tap, leaving bump PRs
   open. `--auto` only activates when there's a required check or
   branch-protection rule to wait on; the tap intentionally has neither.
   Switched to a direct squash-merge so the tap stays hands-free as
   originally intended.

Co-authored-by: Orca <help@stably.ai>
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.

1 participant