fix: harden CI workflow — least-privilege token, timeouts, pinned ruff - #108
Merged
Merged
Conversation
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.
Summary
Workflow audit follow-ups (no behavior change to the product):
permissions: contents: read. The jobs only check out the repo and run tests; they previously inherited repo-default token scopes.timeout-minutes: 15on all three jobs (current runs take <2 min; previously a hung step could burn up to 6h).ruff@0.16→ruff@0.16.2, matchinguv.lock, so a future 0.16.x rule change can't fail CI lint while local passes.Deliberately untouched:
setup-uv0.5.xfloat. Local dev uv is 0.5.4 and uv releases are at 0.12.x — moving the toolchain generation is a separate decision for the restructure, not a drive-by in this PR.Branch
Opened from
fix/ci-workflow-hardening.Note
Workflow-only change; no product code, no secrets touched.
Checklist
python3 -m pytest tests/ -qverify.pyis greenSafe to merge.
What we checked:
Summary
Reviews (1) · Last reviewed commit: "fix: harden CI workflow — least-privileg..."