Development to Main #95
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: | |
branches: | |
- main | |
- development | |
paths-ignore: | |
- 'README.md' | |
- 'LICENSE' | |
- 'docs/**' | |
- '.github/**' | |
pull_request: | |
branches: | |
- main | |
- development | |
paths-ignore: | |
- 'README.md' | |
- 'LICENSE' | |
- 'docs/**' | |
- '.github/**' | |
jobs: | |
brakeman: | |
name: Brakeman Security Scan | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
pull-requests: read | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Dependences | |
run: | | |
sudo apt-get update -y | |
sudo apt-get install -y libpq-dev postgresql-client build-essential libssl-dev | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.2.3 | |
- name: Bundle Install | |
run: bundle install | |
- name: Brakeman Security Scan | |
run: brakeman -z -o brakeman-output.json | |
- name: Upload Brakeman Report | |
uses: actions/upload-artifact@v2 | |
with: | |
name: brakeman-report | |
path: brakeman-output.json |