From ecc0ab8d62acbcb6ff3178e14c3917e3dd2a82e0 Mon Sep 17 00:00:00 2001 From: Tomas Balvin Date: Sat, 16 Sep 2023 10:28:59 +0200 Subject: [PATCH] ci: fix test job permissions (#76) The `test` job had only `pull-request: read` permission by mistake, and the action wasn't able to remove stale reviews because of it. Giving it `write` permissions should fix that. --- .github/workflows/test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index de7473bd..19343d5b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,8 +22,8 @@ jobs: test: # make sure the action works on a clean machine without building runs-on: ubuntu-latest permissions: - contents: write # to be able to delete branches - pull-requests: read # to be able to confirm that branches don't have associated PRs + contents: read # to be able to checkout + pull-requests: write # to be able to remove stale reviews steps: - uses: actions/checkout@v4