Skip to content

Commit

Permalink
Ignore the PermitAttributes for the assignment to community_membershi…
Browse files Browse the repository at this point in the history
…p.role.
  • Loading branch information
openbrian committed Apr 14, 2023
1 parent 9b3b829 commit 6949ca2
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": "011f7d421c6b9e3e1176c3e150ab448c9ef29fbeb7ebeb0e4e14ff10682780d1",
"check_name": "PermitAttributes",
"message": "Potentially dangerous key allowed for mass assignment",
"file": "app/controllers/community_members_controller.rb",
"line": 63,
"link": "https://brakemanscanner.org/docs/warning_types/mass_assignment/",
"code": "params.require(:community_member).permit(:role)",
"render_path": null,
"location": {
"type": "method",
"class": "CommunityMembersController",
"method": "update_params"
},
"user_input": ":role",
"confidence": "Medium",
"cwe_id": [
915
],
"note": "Role is an attribute of the membership."
}
],
"updated": "2022-10-16 19:49:32 +0000",
"brakeman_version": "5.3.1"
}

0 comments on commit 6949ca2

Please sign in to comment.