Skip to content

Add explicit permissions blocks for read-default GITHUB_TOKEN - #543

Merged
blckmn merged 1 commit into
masterfrom
workflow-token-permissions
Jul 15, 2026
Merged

blckmn merged 1 commit into
masterfrom
workflow-token-permissions

Conversation

@blckmn

@blckmn blckmn commented Jul 15, 2026

Copy link
Copy Markdown
Member

The org default GITHUB_TOKEN permission is now read. Adds explicit permissions blocks so these keep the write access they rely on: stale.yaml (label/close issues and PRs) and build-release.yml (upload release assets, scoped to the release job).

The org default GITHUB_TOKEN permission is now read. Adds explicit permissions blocks so these keep the write access they rely on: stale.yaml (label/close issues and PRs) and build-release.yml (upload release assets, scoped to the release job).
Copilot AI review requested due to automatic review settings July 15, 2026 03:31
@coderabbitai

coderabbitai Bot commented Jul 15, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@blckmn, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 6 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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 configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 6b091cf9-a03c-4750-9ca9-29b3b4231346

📥 Commits

Reviewing files that changed from the base of the PR and between 46e1911 and 4c41549.

📒 Files selected for processing (2)
  • .github/workflows/build-release.yml
  • .github/workflows/stale.yaml

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds explicit permissions blocks in GitHub Actions workflows so automation that relies on write access continues to work now that the org default GITHUB_TOKEN permission is read-only.

Changes:

  • Grant workflow-level issues: write and pull-requests: write to the stale issue/PR cleanup workflow.
  • Grant job-level contents: write to the release job so it can upload release assets.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
.github/workflows/stale.yaml Adds explicit write permissions needed for labeling/commenting/closing issues and PRs.
.github/workflows/build-release.yml Adds explicit token permissions for the release job to upload assets to the GitHub Release.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +15 to +16
permissions:
contents: write
@blckmn
blckmn merged commit 4f74244 into master Jul 15, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants