From 98a7bb4436f04505a17f37befab0207252e97897 Mon Sep 17 00:00:00 2001 From: Disservin Date: Wed, 10 Jul 2024 17:56:43 +0200 Subject: [PATCH] CI give correct permissions for the clang-format action closes https://github.com/official-stockfish/Stockfish/pull/5470 No functional change --- .github/workflows/clang-format.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/clang-format.yml b/.github/workflows/clang-format.yml index 630edbf9..452c2f2a 100644 --- a/.github/workflows/clang-format.yml +++ b/.github/workflows/clang-format.yml @@ -11,6 +11,10 @@ on: paths: - "**.cpp" - "**.h" + +permissions: + pull-requests: write + jobs: Clang-Format: name: Clang-Format @@ -39,6 +43,7 @@ jobs: _(execution **${{ github.run_id }}** / attempt **${{ github.run_attempt }}**)_ comment_tag: execution + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Comment on PR if: steps.clang-format.outcome != 'failure' @@ -49,3 +54,4 @@ jobs: create_if_not_exists: false comment_tag: execution mode: delete + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}