ci: least-privilege permissions on test workflow (token read-only prep)#1
ci: least-privilege permissions on test workflow (token read-only prep)#1bryan-minimal wants to merge 1 commit into
Conversation
Prep for the org default GITHUB_TOKEN flip to read-only: add an explicit top-level `permissions:` block so the flip is a no-op for this workflow. The workflow only checks out the repo and tests the local action (uses: ./) and performs no writes with the token, so `contents: read` is the safe least-privilege grant. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
Warning Review limit reachedYou’ve reached a temporary PR review limit under our Fair Usage Limits Policy. Next review available in: 59 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Why
The gominimal org is flipping the default
GITHUB_TOKENto read-only. To make that flip a no-op, every workflow needs an explicit least-privilegepermissions:block. This adds one to the Test workflow.What
Adds a top-level block:
Why
contents: readis the right (and minimal) granttest.ymlonly:actions/checkout— needscontents: read), anduses: ./(fetches themipbinary over HTTPS, runs thehello-worldtask, and checks theversionoutput).It performs no writes with the repo
GITHUB_TOKEN(no pushes, no releases, no PR/issue/comment API calls, no packages). Socontents: readis the verified least-privilege block.Impact
github/actions-missing-permissionsfinding for this repo.