From 5a8f25faed9fb133ef824ea293a81176ed0754fe Mon Sep 17 00:00:00 2001 From: Jozef Izso Date: Fri, 13 Oct 2023 22:48:33 +0200 Subject: [PATCH] Update `mshick/add-pr-comment` The v2 action uses `node16` runtime Workflow will use the `GITHUB_TOKEN` with `pull-requests: write` permission instead of PAT --- .github/workflows/ci.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f4815886..b753a172 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,6 +26,9 @@ jobs: name: Build and Test Sparkle runs-on: ${{ matrix.macos }} + permissions: + pull-requests: write + steps: - name: Checkout uses: actions/checkout@v4 @@ -80,11 +83,9 @@ jobs: - name: Post Analyzed Warnings if: ${{ success() && matrix.run-analyzer && github.event_name == 'pull_request' && steps.findwarnings.outputs.analyzestatus == '0' }} - uses: mshick/add-pr-comment@v1 + uses: mshick/add-pr-comment@v2 with: allow-repeats: false - repo-token: ${{ secrets.BOT_PERSONAL_ACCESS_TOKEN }} - repo-token-user-login: 'Sparkle-Bot' message: "``` ${{ steps.warnings.outputs.content }} ```" - name: Build Release Distribution