Repository navigation
ci(templates): scope workflow token permissions to least privilege - #245
Merged
Merged
Conversation
Bring core-cicd/{ci,publish,release,update-major-version-tags} and
packaging-docs/{docker-publish,sync-org-labels} into the fleet's deliberate
4-space YAML convention (the other 25 templates already use it). Sequence-aware
reindent (dash at N+4, post-dash keys at N+6) with block-scalar content
preserved; verified semantically identical via yaml.safe_load(before)==after.
Apply the same Token-Permissions hardening to the individual-repo workflow
templates that consuming repos copy, so future syncs inherit it:
- Add a read-only top-level default (permissions: { contents: read }) to the 9
templates that declared none (their jobs already grant their own scopes).
- For the 9 templates with a dangerous top-level write, narrow the top level to
contents: read and move the full original scope set onto the reusable-calling
job (write granted job-scoped, not workflow-wide). Behavior unchanged.
Non-dangerous top-level grants (pull-requests/issues write) are left as-is.
scorecard.yml keeps writes job-scoped; its header comment is reworded to match
the new read-only default.
Companion to the per-repo slothlet change (CLDMV/slothlet ci: scope workflow
token permissions) — these templates are the source those copies drifted from.
Shinrai
approved these changes
Sep 1, 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.
🚀 What's Changed
💥 Breaking Changes
No breaking changes
✨ Features
No new features
🐛 Bug Fixes
No bug fixes
📦 Dependencies
No dependency updates
🔧 Other Changes
👥 Contributors