Skip to content

Commit

Permalink
Update brakeman - ignore already ignored warning
Browse files Browse the repository at this point in the history
Line only updated for erb linting
Safe to still ignore
  • Loading branch information
ellohez committed Sep 3, 2024
1 parent 2f040d1 commit 0bdc64e
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions config/brakeman.ignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,35 @@
"warning_code": 4,
"fingerprint": "cebddc2d284fc2066c8b68b5212906cea4b93c9e015826350b21ef0417918c60",
"check_name": "LinkToHref",
"message": "Potentially unsafe model attribute in link_to href",
"message": "Potentially unsafe model attribute in `link_to` href",
"file": "app/views/projects/_content_item.html.erb",
"line": 22,
"link": "https://brakemanscanner.org/docs/warning_types/link_to_href",
"code": "link_to((Unresolved Model).new.title, (Unresolved Model).new.url, :data => ({ :proxy_iframe => \"enabled\", :modal_url => (Unresolved Model).new.proxied_url, :toggle => \"modal\", :target => \"#iframe_modal_id\" }))",
"render_path": [{"type":"template","name":"projects/show","line":48,"file":"app/views/projects/show.html.erb"}],
"render_path": [
{
"type": "template",
"name": "projects/show",
"line": 48,
"file": "app/views/projects/show.html.erb",
"rendered": {
"name": "projects/_content_item",
"file": "app/views/projects/_content_item.html.erb"
}
}
],
"location": {
"type": "template",
"template": "projects/_content_item"
},
"user_input": "(Unresolved Model).new.url",
"confidence": "Weak",
"cwe_id": [
79
],
"note": "Safe because we control the URLs in the database."
}
],
"updated": "2018-08-02 08:11:26 +0100",
"brakeman_version": "4.3.1"
"updated": "2024-09-03 15:02:07 +0000",
"brakeman_version": "6.1.2"
}

0 comments on commit 0bdc64e

Please sign in to comment.