Skip to content

Commit

Permalink
Fix file permission check
Browse files Browse the repository at this point in the history
  • Loading branch information
szepeviktor committed Oct 18, 2023
1 parent 7ff6256 commit 6236dd4
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/reusable-integrity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,16 @@ jobs:
name: "Check file names"
run: |
! git ls-tree -r -t -z --name-only HEAD \
| xargs -0 -n 1 -- basename \
| grep -P '[^-.0-9A-Z_a-z]'
| xargs --null --max-args=1 -- basename \
| grep --perl-regexp '[^-.0-9A-Z_a-z]'
-
name: "Check file permissions"
run: |
test "$(
git ls-files --stage \
| grep -v '^100644' \
| cut -c '51-'
| grep --invert-match '^100644' \
| cut --characters='51-' \
| paste --serial --delimiters=' '
)" = "${{ inputs.executables }}"
# Filesystem-based
#test "$(
Expand Down

0 comments on commit 6236dd4

Please sign in to comment.