From 57b14e7a543186c4a2b260b840ca09d46f395c0c Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sat, 1 Jul 2023 02:59:48 -0400 Subject: [PATCH] fix: add permissions to allow publishing test results for pull requests Without this, almost every PR from a non-contributor will fail at the publish-test-results --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1dbe11c1f..d28744b23 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -224,6 +224,8 @@ jobs: name: publish-test-results needs: unit-tests runs-on: ubuntu-20.04 + permissions: + checks: write # the build-and-test job might be skipped, we don't need to run this job then if: success() || failure()