Skip to content

ci: restrict default workflow token permissions - #25

Merged
edenreich merged 1 commit into
mainfrom
ci/restrict-workflow-token-permissions
Jul 8, 2026
Merged

edenreich merged 1 commit into
mainfrom
ci/restrict-workflow-token-permissions

Conversation

@edenreich

Copy link
Copy Markdown
Contributor

Adds a top-level permissions: contents: read block to workflows that omitted one, so the default GITHUB_TOKEN carries only the scope the workflow needs. Jobs that declare their own permissions: block are unaffected (job-level blocks override the top-level one), and the org default token is already read-only, so this is behavior-preserving.

Refs inference-gateway/.github#96

@inference-gateway-maintainer inference-gateway-maintainer Bot moved this to Todo in 2026 Jul 8, 2026
@edenreich
edenreich merged commit 4a7680b into main Jul 8, 2026
1 check passed
@edenreich
edenreich deleted the ci/restrict-workflow-token-permissions branch July 8, 2026 16:04
@edenreich edenreich moved this from Todo to Done in 2026 Jul 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant