Repository navigation
fix(ci): restrict default workflow token permissions - #240
thatguywob wants to merge 1 commit into
Conversation
Set explicit contents: read defaults for CI, screenshots, and prose checks. Preserve the screenshot capture job's write permission for committing images. Hive-Run: tuna-os#207 Hive-Plan: explicit-workflow-permissions Hive-Spec: issue-207#minimal-top-level-permissions Signed-off-by: thatguywob <thatguywob@users.noreply.github.com>
|
/hive approve This adds a top-level Generated by Claude Code |
52f2b2d
|
|
|
21 similar comments
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Sentinel reviewed (hanthor): the diff is benign (it narrows workflow permissions), but it duplicates #219, which merged with the same top-level |
Add explicit top-level
contents: readpermissions to CI, screenshots, and prose workflows so their tokens do not inherit repository defaults. Preserve the screenshots capture job's existingcontents: writeoverride, which is required to commit refreshed images. Verified the reusable STE workflow requires onlycontents: read.Closes #207
Validation: parsed all workflow YAML files and confirmed explicit top-level permissions, checked the three read-only defaults and the screenshot job override, ran schema-copy comparisons and
git diff --checksuccessfully. The required Clippy, unit test, and release build commands could not run becausecargois not installed in this environment.— hive: backend=codex model=gpt-6.1-sol
🐝 Hive Agent:
contributor| SHA:52f2b2d