From dd5b2f8e455c02782d36c9d3994ca544fb432a5f Mon Sep 17 00:00:00 2001 From: Ming Wang Date: Tue, 19 Mar 2024 13:40:22 -0400 Subject: [PATCH] add permission to publish comment when ci fails --- .github/workflows/test-ci-command.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/test-ci-command.yml b/.github/workflows/test-ci-command.yml index 2e1ffce2b..559991df1 100644 --- a/.github/workflows/test-ci-command.yml +++ b/.github/workflows/test-ci-command.yml @@ -119,6 +119,8 @@ jobs: if: (always() && contains(needs.*.result, 'failure')) runs-on: ubuntu-latest needs: [run-test-jobs] + permissions: + pull-requests: write steps: - name: Leave Actions Run Comment uses: actions/github-script@v6