ci: Add new status checks. #5
Workflow file for this run
This file contains hidden or 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: | |
| pull_request: | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| security-events: write | |
| jobs: | |
| brakeman: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| bundler-cache: true | |
| - name: Run Brakeman | |
| run: bundle exec brakeman --no-pager --output brakeman.sarif | |
| - name: Parse SARIF file for annotations | |
| if: always() | |
| uses: jontyms/sarif-annotations@v0.0.3 | |
| with: | |
| annotation-level: notice | |
| sarif-file: brakeman.sarif | |
| - name: Upload SARIF result | |
| if: always() | |
| uses: github/codeql-action/upload-sarif@v4 | |
| with: | |
| sarif_file: brakeman.sarif |