Skip to content

Commit d89b286

Browse files
authored
add brakeman scanning (#840)
* add brakeman scanning * Update Ruby version to 'head' in Brakeman workflow * Add Brakeman workflow for code scanning
1 parent 5217348 commit d89b286

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ on:
1111
jobs:
1212
scan_ruby:
1313
runs-on: ubuntu-latest
14+
permissions:
15+
contents: read
16+
security-events: write
1417

1518
steps:
1619
- name: Checkout code
@@ -23,7 +26,13 @@ jobs:
2326
bundler-cache: true
2427

2528
- name: Scan for common Rails security vulnerabilities using static analysis
26-
run: bin/brakeman --no-pager
29+
continue-on-error: true
30+
run: bin/brakeman --no-pager -f sarif -o brakeman.sarif.json
31+
32+
- name: Upload SARIF to GitHub Code Scanning
33+
uses: github/codeql-action/upload-sarif@v4
34+
with:
35+
sarif_file: brakeman.sarif.json
2736

2837
scan_js:
2938
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)