Skip to content

Commit 6236dd4

Browse files
committed
Fix file permission check
1 parent 7ff6256 commit 6236dd4

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/reusable-integrity.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,16 @@ jobs:
4949
name: "Check file names"
5050
run: |
5151
! git ls-tree -r -t -z --name-only HEAD \
52-
| xargs -0 -n 1 -- basename \
53-
| grep -P '[^-.0-9A-Z_a-z]'
52+
| xargs --null --max-args=1 -- basename \
53+
| grep --perl-regexp '[^-.0-9A-Z_a-z]'
5454
-
5555
name: "Check file permissions"
5656
run: |
5757
test "$(
5858
git ls-files --stage \
59-
| grep -v '^100644' \
60-
| cut -c '51-'
59+
| grep --invert-match '^100644' \
60+
| cut --characters='51-' \
61+
| paste --serial --delimiters=' '
6162
)" = "${{ inputs.executables }}"
6263
# Filesystem-based
6364
#test "$(

0 commit comments

Comments
 (0)