From 8b3785e8452dea2a7782f55d8bc9b4113bddc4ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Chopin?= Date: Wed, 11 Nov 2026 15:29:21 +0000 Subject: [PATCH] ci: let the bundle report app token write PR comments Amp-Thread-ID: https://ampcode.com/threads/T-01a1cb33-e5a6-74cf-9420-bd430a8ff83a --- .github/workflows/bundle-size-comment.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/bundle-size-comment.yml b/.github/workflows/bundle-size-comment.yml index f4e21570d..7f699bf12 100644 --- a/.github/workflows/bundle-size-comment.yml +++ b/.github/workflows/bundle-size-comment.yml @@ -47,9 +47,10 @@ jobs: with: app-id: ${{ secrets.BUNDLE_REPORT_APP_ID }} private-key: ${{ secrets.BUNDLE_REPORT_APP_PRIVATE_KEY }} - # What `comment --post` calls: it lists the open PRs, then creates or updates its comment. + # What `comment --post` calls: it lists the open PRs, then creates or updates its comment. Comments on a PR + # need `pull-requests: write`; `issues: write` alone is answered with a 403. permission-issues: write - permission-pull-requests: read + permission-pull-requests: write - name: Comment on the PR run: npx --yes "nuxt-bundle-analyzer@$NUXT_BUNDLE_ANALYZER_VERSION" comment --runs runs --post --link "$LINK" env: