check out PR ref in permissions check

This commit is contained in:
aptalca 2023-04-11 15:10:48 -04:00
parent 7411392cfe
commit f3577570f1
No known key found for this signature in database
GPG Key ID: BE36CFFB9FD85548

View File

@ -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)