[CI] Add check, if php files are marked as non-executable (#2439)

This commit is contained in:
Eugene Molotov 2022-01-30 14:20:47 +05:00 committed by GitHub
parent 09fac3aa35
commit f54c996e0f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 13 additions and 0 deletions

View file

@ -33,3 +33,16 @@ jobs:
- run: composer global require dealerdirect/phpcodesniffer-composer-installer
- run: composer global require phpcompatibility/php-compatibility
- run: ~/.composer/vendor/bin/phpcs . --standard=phpcompatibility.xml --warning-severity=0 --extensions=php -p
executable_php_files_check:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- run: |
if find -name "*.php" -executable -type f -print -exec false {} +
then
echo 'Good, no executable php scripts found'
else
echo 'Please unmark php scripts above as non-executable'
exit 1
fi

0
bridges/BukowskisBridge.php Executable file → Normal file
View file

0
bridges/GiphyBridge.php Executable file → Normal file
View file

0
bridges/ThePirateBayBridge.php Executable file → Normal file
View file