Improve caching #407
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 Scan | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
brakeman-scan: | |
name: Brakeman Scan | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: '3.3.1' | |
- name: Setup Brakeman | |
env: | |
BRAKEMAN_VERSION: '5.4.0' | |
run: | | |
gem install brakeman --version $BRAKEMAN_VERSION | |
- name: Scan | |
continue-on-error: true | |
run: | | |
brakeman -f sarif -o output.sarif.json . | |
- name: Upload SARIF | |
uses: github/codeql-action/upload-sarif@v2 | |
with: | |
sarif_file: output.sarif.json |