Skip to content

Grant contents:write to release job so version tags can be pushed - #91

Merged
lessthanjacob merged 1 commit into
mainfrom
fix/release-tag-permissions
Jul 15, 2026
Merged

Grant contents:write to release job so version tags can be pushed#91
lessthanjacob merged 1 commit into
mainfrom
fix/release-tag-permissions

Conversation

@lessthanjacob

Copy link
Copy Markdown
Contributor

Summary

Follow-up to #89/#90. The 1.2.0 release published to rubygems successfully, but the final step — pushing the git version tag — failed:

remote: Permission to procore-oss/sift.git denied to github-actions[bot].
fatal: unable to access 'https://github.com/procore-oss/sift/': 403

fac/ruby-gem-push-action tags by default, but the default GITHUB_TOKEN is read-only. This adds a workflow-wide contents: read default and scopes contents: write to the release job only (least privilege — tighter than relying on the repo-wide "Read and write" Settings toggle).

The missing v1.2.0 tag has been pushed manually (points at the #89 merge commit that published the gem).

Checklist:

  • I have updated the necessary documentation
  • I have updated the changelog, if necessary (CHANGELOG.md)
  • I have signed off all my commits as required by DCO
  • My build is green

🤖 Generated with Claude Code

The release published the gem but failed pushing the git version tag:
"Permission to procore-oss/sift.git denied to github-actions[bot]" (403).
The default GITHUB_TOKEN is read-only, and fac/ruby-gem-push-action tags
by default. Add a workflow-wide read default and scope contents:write to
the release job only.

Co-authored-by: claude-code/anthropic.claude-opus-4-8 <noreply@anthropic.com>
Signed-off-by: Jacob Sheehy <jacobjsheehy@gmail.com>
@lessthanjacob
lessthanjacob requested a review from a team as a code owner July 15, 2026 17:11
@github-actions github-actions Bot added the repo label Jul 15, 2026
@lessthanjacob
lessthanjacob merged commit b0b4247 into main Jul 15, 2026
11 checks passed
@lessthanjacob
lessthanjacob deleted the fix/release-tag-permissions branch July 15, 2026 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants