diff --git a/.github/workflows/maintainer-command-reactions.yml b/.github/workflows/maintainer-command-reactions.yml index 0ad8f0e3f5c..e44dffd7ca6 100644 --- a/.github/workflows/maintainer-command-reactions.yml +++ b/.github/workflows/maintainer-command-reactions.yml @@ -16,6 +16,7 @@ jobs: runs-on: ubuntu-24.04 permissions: issues: write + pull-requests: write env: CLOWNFISH_APP_ID: ${{ vars.CLOWNFISH_APP_ID || secrets.CLOWNFISH_APP_ID }} CLOWNFISH_APP_AUTH_ENABLED: ${{ secrets.CLOWNFISH_APP_PRIVATE_KEY != '' && (vars.CLOWNFISH_APP_ID != '' || secrets.CLOWNFISH_APP_ID != '') && '1' || '0' }} @@ -102,6 +103,10 @@ jobs: core.info(`${content} reaction already exists on comment ${comment.id}.`); return; } + if (error.status === 403 && /resource not accessible by integration/i.test(String(error.message))) { + core.warning(`${content} reaction could not be added with this token: ${error.message}`); + return; + } throw error; } }