Remove executable flag from file mode (#6185)

* Remove executable flag from file mode

Affected: dgraph, django, homebrew, pagekit, uikit

* Add lint step to CI to reject executable icons

Co-authored-by: Eric Cornelissen <ericornelissen@gmail.com>
This commit is contained in:
Jan N Rose 2021-08-04 10:23:20 +02:00 committed by GitHub
parent 7a1314e9a2
commit 5fc74c67f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 18 additions and 0 deletions

View file

@ -44,6 +44,24 @@ jobs:
run: npm ci
- name: Run linter
run: npm run lint
- name: Verify file permissions
run: |
CHECK_DIRS="icons/ _data/"
echo "Searching the following directories for executable files:"
echo "${CHECK_DIRS}"
echo ""
EXE_FILES=$(find ${CHECK_DIRS} -type f -executable)
if test -n "${EXE_FILES-}"
then
echo "Some files were detected to have their executable bit set."
echo "To fix this, you can use 'chmod -x PATH/TO/FILE' on the following files:"
echo ""
echo "${EXE_FILES}"
exit 1
else
echo "All clear."
exit 0
fi
test:
name: Test package
runs-on: ubuntu-latest

0
icons/dgraph.svg Executable file → Normal file
View file

Before

Width:  |  Height:  |  Size: 821 B

After

Width:  |  Height:  |  Size: 821 B

0
icons/django.svg Executable file → Normal file
View file

Before

Width:  |  Height:  |  Size: 581 B

After

Width:  |  Height:  |  Size: 581 B

0
icons/homebrew.svg Executable file → Normal file
View file

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 3.6 KiB

0
icons/pagekit.svg Executable file → Normal file
View file

Before

Width:  |  Height:  |  Size: 186 B

After

Width:  |  Height:  |  Size: 186 B

0
icons/uikit.svg Executable file → Normal file
View file

Before

Width:  |  Height:  |  Size: 295 B

After

Width:  |  Height:  |  Size: 295 B