Skip to content

Instantly share code, notes, and snippets.

@agrberg
Created July 1, 2020 14:52
Show Gist options
  • Save agrberg/eda6133d7147343b63b0814002294571 to your computer and use it in GitHub Desktop.
Save agrberg/eda6133d7147343b63b0814002294571 to your computer and use it in GitHub Desktop.
This simple bash script ensures that bundle-audit is updated and called before a push to Heroku. The goal is to ensure that a developer deploying the site is 100% aware of any vulerable gems and _must_ intentionally use `--no-verify` if they do not want to update gems.
#!/usr/bin/env sh
# This simple bash script ensures that bundle-audit is updated and called before a push to Heroku
# The goal is to ensure that a developer deploying the site is 100% aware of any vulerable gems
# and _must_ intentionally use `--no-verify` if they do not want to update gems.
if [ "$1" = "heroku" ]; then
bundle exec bundle-audit check --update
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment