code scanning changes for regex applied to fix security warning #70
This file contains 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
name: Brakeman | |
on: [push] | |
jobs: | |
brakeman: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Ruby 2.7.2 | |
uses: ruby/setup-ruby@v1 | |
with: | |
# Not needed with a .ruby-version file | |
ruby-version: 2.7.2 | |
# runs 'bundle install' and caches installed gems automatically | |
bundler-cache: true | |
- name: Brakeman install | |
run: gem install brakeman -v 5.4.1 | |
- name: brakeman | |
id: brakeman | |
run: | | |
brakeman --color --force -q | |
if [ $? -ne 0 ]; then return 1; fi |