Skip to content

Instantly share code, notes, and snippets.

@egorzot
Last active August 28, 2021 12:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save egorzot/9aebfc8b46508e50310c09fde9498013 to your computer and use it in GitHub Desktop.
Save egorzot/9aebfc8b46508e50310c09fde9498013 to your computer and use it in GitHub Desktop.
Getting the last symfony security checker. You may add this script to the composer.json. Full details in the article https://egor.work/blog/all/automate-security-check-in-your-symfony-project/
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment