Skip to content

Inherit workflow permissions instead of demanding them#13

Merged
satsura merged 1 commit into
mainfrom
fix/inherit-permissions
Jul 13, 2026
Merged

Inherit workflow permissions instead of demanding them#13
satsura merged 1 commit into
mainfrom
fix/inherit-permissions

Conversation

@satsura

@satsura satsura commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Every scan in the sportsid-inc organization had been failing since the pull-request report shipped — and failing invisibly, with startup_failure and not a single job.

The reusable workflow declared pull-requests: write. Declaring a permission demands it: an organization that grants workflows read-only access cannot satisfy it, so GitHub rejects the run before anything starts. 60 repositories stopped scanning and nothing said so.

Permissions are now inherited from the caller. The scan always runs; where the caller's token may write to pull requests the report is posted as a comment, and where it may not, it still lands in the job summary — which the code already handled.

@satsura
satsura merged commit 490511e into main Jul 13, 2026
3 checks passed
@satsura
satsura deleted the fix/inherit-permissions branch July 13, 2026 05:58
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.

2 participants