From 9d8de70c2009d2562c835a226440e540115d3fd7 Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Wed, 29 Apr 2026 00:59:23 -0700 Subject: [PATCH] ci: tolerate command reaction token limits --- .github/workflows/maintainer-command-reactions.yml | 5 +++++ 1 file changed, 5 insertions(+) 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; } }