Skip to content

ci: Consolidate permissions at workflow level - #144

Merged
philippemnoel merged 1 commit into
mainfrom
harden/permissions-workflow-level
Jul 20, 2026
Merged

ci: Consolidate permissions at workflow level#144
philippemnoel merged 1 commit into
mainfrom
harden/permissions-workflow-level

Conversation

@philippemnoel

Copy link
Copy Markdown
Member

Standardizes on a single workflow-level permissions: block per workflow, rather than a mix of workflow- and job-level declarations, so every workflow declares its scopes in one predictable place.

Where a job declared its own block, the workflow-level block is the union of what every job needs (job-level permissions: replaces workflow-level rather than merging with it, so the union is what preserves current behaviour).

No job loses a scope. In multi-job workflows some jobs gain one they don't use — noted per-repo in the commit message. Fork pull requests always receive a read-only GITHUB_TOKEN regardless of repository settings, so any widened scope is only reachable from branches by users who already have write access.

Part of the workflow-permissions hardening ahead of switching the org default workflow permissions to read-only.

https://claude.ai/code/session_01Rg3UBFSnmKMPQLNpNKkn8d

Standardize on a single workflow-level permissions block per workflow
rather than a mix of workflow- and job-level declarations.

Where a job declared its own block, the workflow-level block is the
union of what every job needs, since job-level permissions replace
workflow-level rather than merging with it.

Claude-Session: https://claude.ai/code/session_01Rg3UBFSnmKMPQLNpNKkn8d
@philippemnoel
philippemnoel merged commit 219541e into main Jul 20, 2026
18 checks passed
@philippemnoel
philippemnoel deleted the harden/permissions-workflow-level branch July 20, 2026 15:00
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