Skip to content

ci: default workflow tokens to read-only contents - #1218

Merged
DaleSeo merged 1 commit into
mainfrom
jamadeo/restrict-workflow-token-defaults
Aug 27, 2026
Merged

ci: default workflow tokens to read-only contents#1218
DaleSeo merged 1 commit into
mainfrom
jamadeo/restrict-workflow-token-defaults

Conversation

@jamadeo

@jamadeo jamadeo commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Summary

Sets an explicit read-only contents permission default on workflows that previously relied on GitHub's repository-level token defaults. This allows checkout—including in the crates.io release job—while preventing implicit write access. Existing job-level grants remain unchanged for jobs that require additional permissions.

Addresses the default token-permission findings tracked in #1215. Release-plz and the coverage job's explicit write permissions are reviewed separately.

@jamadeo
jamadeo requested a review from a team as a code owner August 25, 2026 18:43
@github-actions github-actions Bot added T-CI Changes to CI/CD workflows and configuration T-config Configuration file changes labels Aug 25, 2026
@jamadeo
jamadeo marked this pull request as draft August 25, 2026 18:43
@jamadeo
jamadeo force-pushed the jamadeo/restrict-workflow-token-defaults branch from 5a1cacb to f8fff78 Compare August 25, 2026 18:49
@jamadeo jamadeo changed the title ci: default workflow tokens to no permissions ci: default workflow tokens to read-only contents Aug 25, 2026
@jamadeo
jamadeo marked this pull request as ready for review August 25, 2026 18:50
@DaleSeo
DaleSeo merged commit 3501f3e into main Aug 27, 2026
22 checks passed
@DaleSeo
DaleSeo deleted the jamadeo/restrict-workflow-token-defaults branch August 27, 2026 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T-CI Changes to CI/CD workflows and configuration T-config Configuration file changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants