Skip to content

Commit a7a06d3

Browse files
committed
Update CI with brakeman ignore
1 parent 25aeaf6 commit a7a06d3

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

.brakeman.ignore

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
"ignored_warnings": [
33
{
44
"warning_type": "Cross-Site Request Forgery",
5-
"warning_code": 17,
6-
"fingerprint": "6f5239fb87c64764d0c209014deb5cf504c2c10ee424bd33590f0a4f22e01d8f",
5+
"warning_code": 7,
6+
"fingerprint": "8467757e84ea0d7ea13884e1bebb9cd69913885cc43c455f2d71bd8b8c92c5c7",
77
"check_name": "ForgerySetting",
88
"message": "`protect_from_forgery` should be called in `ApplicationController`",
99
"file": "site/app/controllers/application_controller.rb",
@@ -13,7 +13,8 @@
1313
"render_path": null,
1414
"location": {
1515
"type": "controller",
16-
"controller": "ApplicationController" },
16+
"controller": "ApplicationController"
17+
},
1718
"user_input": null,
1819
"confidence": "High",
1920
"note": "The `site/` path is meant for development and testing ONLY. It is never deployed to production and has no real users or sessions."

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
bundler-cache: true
2121

2222
- name: Scan for common Rails security vulnerabilities using static analysis
23-
run: bin/brakeman --no-pager
23+
run: bin/brakeman --no-pager -i .brakeman.ignore
2424

2525
scan_js:
2626
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)