Skip to content

ci(bundle): grant pull request write to the comment token - #1480

Merged
larbish merged 2 commits into
mainfrom
ci/bundle-comment-pr-permission
Nov 9, 2026
Merged

larbish merged 2 commits into
mainfrom
ci/bundle-comment-pr-permission

Conversation

@larbish

@larbish larbish commented Nov 9, 2026

Copy link
Copy Markdown
Collaborator

Why

Since 7a2b5e1 the "Comment on the PR" step of bundle-size-comment fails on every PR, so no bundle report comment is posted. The upload to bundle.nuxt.dev still works.

GitHub answered 403 to POST /repos/nuxt-content/docus/issues/1479/comments: {"message":"Resource not accessible by integration"}

Runs: #1478, #1479.

What changed

  • The app token minted for the comment now requests only pull-requests: write, instead of issues: write and pull-requests: read. On a PR, GitHub checks the Pull requests permission for listing, creating and updating issue comments, so issues: write alone is refused and isn't needed.

Notes

  • The bundle report GitHub App needs "Pull requests: write" on this repo, or the mint step will fail instead. An org admin has to grant it.
  • workflow_run workflows run from main, so this can only be verified on the first PR after merge.
  • nuxt/nuxt.com has the same workflow and the same 403.

ELI5

A bot is supposed to post a bundle size report on each pull request, but GitHub kept refusing because the bot asked for permission to write on issues instead of pull requests. It now asks for the pull request permission only.

🤖 Generated with Amp, reviewed by @larbish before opening.

@vercel

vercel Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
docus Ready Ready Preview Nov 9, 2026 9:33pm UTC

@pkg-pr-new

pkg-pr-new Bot commented Nov 9, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/create-docus@1480
npm i https://pkg.pr.new/docus@1480

commit: 3fdb631

@larbish
larbish merged commit 3d97bcf into main Nov 9, 2026
10 of 11 checks passed
@larbish
larbish deleted the ci/bundle-comment-pr-permission branch November 9, 2026 21:31

This branch was successfully deployed

1 active deployment
Preview — 938c1e50 Deployed Nov 9, 2026 by vercel[bot]
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.

1 participant