From f3577570f1caa93d82e812eeb8298fcb13177af0 Mon Sep 17 00:00:00 2001 From: aptalca <541623+aptalca@users.noreply.github.com> Date: Tue, 11 Apr 2023 15:10:48 -0400 Subject: [PATCH] check out PR ref in permissions check --- .github/workflows/init-svc-executable-permissions.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/init-svc-executable-permissions.yml b/.github/workflows/init-svc-executable-permissions.yml index 50fdc27..410f9d5 100644 --- a/.github/workflows/init-svc-executable-permissions.yml +++ b/.github/workflows/init-svc-executable-permissions.yml @@ -8,7 +8,7 @@ jobs: steps: - uses: actions/checkout@v3.5.0 with: - fetch-depth: '0' + ref: ${{ github.event.pull_request.head.sha }} - name: Check Permissions run: | WRONG_PERM=$(find ./ -path "./.git" -prune -o \( -name "run" -o -name "service" -o -name "check" \) -not -perm -u=x,g=x,o=x -print)