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: