Repository navigation
ci: declare GITHUB_TOKEN permissions (org default is now read) - #802
Merged
Merged
Conversation
The org default for GITHUB_TOKEN changed from write to read on 2026-09-10. This job calls the reusable release.yml, which creates a GitHub release; a called workflow cannot exceed the caller's permissions, so without an explicit permissions block it now fails with "Resource not accessible by integration". Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Sc5PkPbFxTYVzdKvVjZhBY
The org default for GITHUB_TOKEN changed from write to read on 2026-09-10. This job creates a GitHub release with actions/create-release, so without an explicit permissions block it now fails with "Resource not accessible by integration". Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Sc5PkPbFxTYVzdKvVjZhBY
maxh
approved these changes
Sep 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The loop-payments org default for
GITHUB_TOKENchanged from write to read on 2026-09-10 (follow-up to GitHub's fork-PR workflow-policy notice GH-1009062-8224-a). Jobs that write through the token now need an explicitpermissions:block, or they fail withResource not accessible by integration.What
Adds a job-level
permissions:block to:.github/workflows/release-if-new-version.yml::maybe-release→contents: write— calls the reusable release.yml, which creates a GitHub release; a called workflow cannot exceed the caller's permissions.github/workflows/release.yml::release→contents: write— creates a GitHub release with actions/create-releaseExplicit blocks override the org default; nothing else changes.
🤖 Generated with Claude Code
https://claude.ai/code/session_01Sc5PkPbFxTYVzdKvVjZhBY