Skip to content

Commit

Permalink
Add brakeman ignore file
Browse files Browse the repository at this point in the history
  • Loading branch information
vitallium committed Apr 28, 2024
1 parent d0d2874 commit a4708c1
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions config/brakeman.ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"ignored_warnings": [
{
"warning_type": "Mass Assignment",
"warning_code": 105,
"fingerprint": "7a2967c467e5df5aca8a00c7e1a2080a44ec576c62446f44a89de5149d1d1a0c",
"check_name": "PermitAttributes",
"message": "Potentially dangerous key allowed for mass assignment",
"file": "app/controllers/admin/users_controller.rb",
"line": 27,
"link": "https://brakemanscanner.org/docs/warning_types/mass_assignment/",
"code": "params.require(:user).permit(:id, :email, :first_name, :last_name, :phone, :role)",
"render_path": null,
"location": {
"type": "method",
"class": "Admin::UsersController",
"method": "user_params"
},
"user_input": ":role",
"confidence": "Medium",
"cwe_id": [
915
],
"note": "Admin panel"
}
],
"updated": "2024-04-28 16:46:07 +0200",
"brakeman_version": "6.1.2"
}

0 comments on commit a4708c1

Please sign in to comment.