fix(ci): restrict workflow token permissions - #73
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 25, 2026, 3:33 PM ET / 19:33 UTC. ClawSweeper reviewWhat this changesThis PR adds a read-only default GitHub Actions token permission to the CI workflow. Merge readiness✅ Ready for maintainer review Keep this MEMBER-authored draft PR open for normal review. Current main still lacks an explicit workflow token policy, while this narrow least-privilege change is compatible with the CI job’s checkout and local build steps. Priority: P2 Review scores
Verification
Live VerificationCommand: Result: PASS (completed) Assertions:
How this fits togetherThe CI workflow builds and validates remindctl on pushes and pull requests. GitHub supplies the workflow token, which the workflow uses for source checkout before local validation commands run. flowchart LR
A[Push or pull request] --> B[CI workflow]
B --> C[Read-only workflow token]
C --> D[Source checkout]
D --> E[Build and validation]
E --> F[CI checks]
Before mergeNone. Agent review detailsSecurityNone. Review metrics
Technical reviewBest possible solution: Merge the workflow-wide least-privilege default after normal maintainer review, retaining read access for checkout and avoiding unnecessary write scopes. Do we have a high-confidence way to reproduce the issue? Not applicable: this is preventive workflow-token hardening, not a reported runtime failure. Is this the best way to solve the issue? Yes: a top-level read-only default is the narrowest maintainable solution because the current job only checks out source and runs local validation. AGENTS.md: not found in the target repository. Codex review notes: model internal, reasoning high; reviewed against bc9c2ed9e961. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
Summary
CodeQL
Testing
actionlint .github/workflows/ci.ymlgit diff --check origin/main...HEAD