From c2e8b1b8a893881c515abc985290d061928087e3 Mon Sep 17 00:00:00 2001 From: Opeyemi Alao <54288773+Eeebru@users.noreply.github.com> Date: Fri, 13 Sep 2024 18:17:22 +0100 Subject: [PATCH] remove gh app from users to check in check-run workflow --- .github/workflows/check-run.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check-run.yml b/.github/workflows/check-run.yml index 8f0a63d1..c5e41bed 100644 --- a/.github/workflows/check-run.yml +++ b/.github/workflows/check-run.yml @@ -21,7 +21,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Check user permission - if: steps.get-permission.outputs.require-result == 'false' + if: ${{ steps.get-permission.outputs.require-result == 'false' && github.triggering_actor != 'bw-ghapp[bot]' }} run: | echo "User ${{ github.triggering_actor }} does not have the necessary access for this repository." echo "Current permission level is ${{ steps.get-permission.outputs.user-permission }}."