Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Brakeman in pre-push script #86

Open
lucasVoboril opened this issue Nov 11, 2019 · 0 comments
Open

Add Brakeman in pre-push script #86

lucasVoboril opened this issue Nov 11, 2019 · 0 comments

Comments

@lucasVoboril
Copy link
Contributor

# script/pre-push.sh

echo "\033[34mRunning Brakeman\033[0m"
RUN_CHECK_CMD='bundle exec brakeman --exit-on-error --quiet'
RUN_TESTS_OUTPUT=`${RUN_CHECK_CMD}`

if [ $? -ne 0 ]
then
  echo "\033[34mCan't commit! You have security warnings!!!\033[0m"
  exit 1
fi

echo "\033[34mAll checks passed. You didn't break anything. Congrats!\n\033[0m"
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant