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 }}."