Skip to content

Grant actions: write to publish job so push_gem dispatch works - #2708

Merged
joelhawksley merged 1 commit into
mainfrom
joelhawksley-publish-release-actions-write
Aug 25, 2026
Merged

Grant actions: write to publish job so push_gem dispatch works#2708
joelhawksley merged 1 commit into
mainfrom
joelhawksley-publish-release-actions-write

Conversation

@joelhawksley

Copy link
Copy Markdown
Member

The publish job in publish-release.yml runs gh workflow run push_gem.yml --ref "$tag" at the end of script/publish to kick off the gem push. That dispatch was failing with:

HTTP 403: Resource not accessible by integration

because the job's GITHUB_TOKEN didn't have actions: write. The failure was swallowed by || true, so publish-release ran green while the gem never got pushed to RubyGems — which is why v4.15.0 shipped a GitHub release but no gem, and push_gem.yml had to be dispatched manually (and even then failed until dispatched with --ref v4.15.0).

Adding actions: write to the job's permissions lets the dispatch succeed on the next release.

The publish job runs `gh workflow run push_gem.yml` at the end of
script/publish to kick off the gem push, but that dispatch was failing
with HTTP 403 "Resource not accessible by integration" because the
job's GITHUB_TOKEN lacked `actions: write`. The error was swallowed by
`|| true`, so the job showed green while the gem never got pushed.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: d016fc4d-0414-434d-a7c2-44ad6afc54f4
@joelhawksley
joelhawksley merged commit 2e6e02d into main Aug 25, 2026
22 of 24 checks passed
@joelhawksley
joelhawksley deleted the joelhawksley-publish-release-actions-write branch August 25, 2026 21:33
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