Skip to content

fix(ci): remove permission-contents scope restriction from app token#359

Merged
skevetter merged 1 commit into
mainfrom
4db9-promote-verify
May 18, 2026
Merged

fix(ci): remove permission-contents scope restriction from app token#359
skevetter merged 1 commit into
mainfrom
4db9-promote-verify

Conversation

@skevetter

Copy link
Copy Markdown
Contributor

Summary

  • Per the actions/create-github-app-token@v3 docs: "By default, the token inherits all of the installation's permissions." When any permission-* input is specified, the token is restricted to only those permissions — all others are dropped.
  • PR fix(ci): explicitly request contents:write permission for app token #355 added permission-contents: write, which inadvertently stripped all other permissions from the token (e.g. metadata: read needed for API calls), causing softprops/action-gh-release to receive a narrowly-scoped token that couldn't create releases.
  • This PR removes permission-contents: write so the token inherits all installation permissions (contents: write, metadata: read, pull_requests: write) — exactly matching the working configuration from runs 26048757691 and 26049369190.
  • Also restores token: input on softprops (not env override) and make_latest: true, matching the proven working state.
  • The only functional change vs the original working commit is the sed rewrite line in fetch RC release notes.

…step

The permission-contents:write input restricts the generated token to ONLY
that permission, dropping all others the installation has (including
metadata:read needed for API calls). Per the docs: "By default, the token
inherits all of the installation's permissions" — specifying any
permission-* input narrows the scope. Remove it so the token inherits
all installation permissions as the working runs did.

Also restore token: input on softprops (not env override) and make_latest:true,
matching the exact configuration from the runs that succeeded at 17:15/17:27.
@netlify

netlify Bot commented May 18, 2026

Copy link
Copy Markdown

Deploy Preview for devsydev canceled.

Name Link
🔨 Latest commit 52aa7b5
🔍 Latest deploy log https://app.netlify.com/projects/devsydev/deploys/6a0b7022679d1300083a831d

@coderabbitai

coderabbitai Bot commented May 18, 2026

Copy link
Copy Markdown

Warning

Rate limit exceeded

@skevetter has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 22 minutes and 50 seconds before requesting another review.

You’ve run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 8e5b9865-8a46-4c00-9d87-3316f387fe92

📥 Commits

Reviewing files that changed from the base of the PR and between 345eef4 and 52aa7b5.

📒 Files selected for processing (1)
  • .github/workflows/promote-release.yml

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 and usage tips.

@skevetter
skevetter merged commit 28b8a1b into main May 18, 2026
16 checks passed
@skevetter
skevetter deleted the 4db9-promote-verify branch May 18, 2026 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant