This repository has been archived by the owner on Mar 29, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add brakeman to build in ci. * Ignore CSRF vulnerability till rails upgrades. * Separate workflow for brakeman. * Remove app build in brakeman check workflow. * Install only brakeman gem on brakeman workflow. * Trying with just rubocop gem for rubocop workflow. * obsolete configuration found in .rubocop.yml * Refactor lint.yml. * Build rubocop lint action. * Make lint handle exception true. * Move brakeman gem to lint group.
- Loading branch information
1 parent
7f5b283
commit 2bf4527
Showing
5 changed files
with
46 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: Brakeman checks | ||
|
||
on: [pull_request] | ||
|
||
jobs: | ||
verify: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Set up Ruby 2.5 | ||
uses: actions/setup-ruby@v1 | ||
with: | ||
ruby-version: 2.5 | ||
- name: Checking vulnerabilities with Brakeman | ||
run: | | ||
gem install bundler bundle-only | ||
bundle-only lint | ||
brakeman --color |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"ignored_warnings": [ | ||
{ | ||
"warning_type": "Cross-Site Request Forgery", | ||
"warning_code": 116, | ||
"fingerprint": "c8697fda60549ca065789e2ea74c94effecef88b2b5483bae17ddd62ece47194", | ||
"check_name": "CSRFTokenForgeryCVE", | ||
"message": "Rails 5.2.3 has a vulnerability that may allow CSRF token forgery. Upgrade to Rails 5.2.4.3 or patch", | ||
"file": "Gemfile.lock", | ||
"line": 230, | ||
"link": "https://groups.google.com/g/rubyonrails-security/c/NOjKiGeXUgw", | ||
"code": null, | ||
"render_path": null, | ||
"location": null, | ||
"user_input": null, | ||
"confidence": "Medium", | ||
"note": "" | ||
} | ||
], | ||
"updated": "2020-10-17 18:38:16 +0100", | ||
"brakeman_version": "4.10.0" | ||
} |
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