mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-03-24 17:04:43 +00:00
Added brakeman to running tests and added a silencer for secret key
This commit is contained in:
@@ -3,4 +3,5 @@ project_dir="$(dirname $( dirname $(readlink -f ${BASH_SOURCE[0]})))"
|
||||
|
||||
cd ${project_dir}
|
||||
rake db:migrate RAILS_ENV=test
|
||||
brakeman
|
||||
rake test
|
||||
|
||||
22
config/brakeman.ignore
Normal file
22
config/brakeman.ignore
Normal file
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"ignored_warnings": [
|
||||
{
|
||||
"warning_type": "Session Setting",
|
||||
"warning_code": 29,
|
||||
"fingerprint": "715ad9c0d76f57a6a657192574d528b620176a80fec969e2f63c88eacab0b984",
|
||||
"check_name": "SessionSettings",
|
||||
"message": "Session secret should not be included in version control",
|
||||
"file": "config/initializers/secret_token.rb",
|
||||
"line": 15,
|
||||
"link": "https://brakemanscanner.org/docs/warning_types/session_setting/",
|
||||
"code": null,
|
||||
"render_path": null,
|
||||
"location": null,
|
||||
"user_input": null,
|
||||
"confidence": "High",
|
||||
"note": "This is an environment variable for production and embedded for test and dev"
|
||||
}
|
||||
],
|
||||
"updated": "2018-05-03 17:15:51 +0000",
|
||||
"brakeman_version": "4.2.1"
|
||||
}
|
||||
Reference in New Issue
Block a user