Last active
August 28, 2021 14:53
-
-
Save egorzot/220829cf7a2c58302b9f53390dd3c18a to your computer and use it in GitHub Desktop.
Composer.json scripts section example for checking symfony security. Full details in article https://egor.work/blog/all/automate-security-check-in-your-symfony-project/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"scripts": { | |
"get-security": "rm -f local-php-security-checker && curl -s https://api.github.com/repos/fabpot/local-php-security-checker/releases/latest | grep -E \"browser_download_url(.+)linux_amd64\" | cut -d : -f 2,3 | tr -d \\\" | xargs -I % curl % -L -o local-php-security-checker && chmod +x local-php-security-checker", | |
"security": "./local-php-security-checker", | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment