Skip to content

Commit a2d1e02

Browse files
authored
Merge pull request #375 from flavorjones/fix-ghsa
Add GHSA identifier pattern to the false positives list
2 parents cad4dd6 + 52149d0 commit a2d1e02

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

‎app/models/names_manager/false_positives.rb‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ def handle_false_positives(name)
2323
when %r{https://}
2424
when '\\x00-\\x1f'
2525
when /\ACVE-[\d-]+\z/i
26+
when /\AGHSA-[\w-]+\z/i
2627
when 'and'
2728
when 'options'
2829
when 'API DOCS'

‎test/credits/false_positives_test.rb‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@ class FalsePositivesTest < ActiveSupport::TestCase
8181
assert_contributor_names '0075f36', 'Charlie Somerville'
8282
end
8383

84+
test 'GHSA-\w+' do
85+
assert_contributor_names '4df8089', 'John Hawthorn'
86+
end
87+
8488
test 'and' do
8589
assert_contributor_names 'd891ad4', 'Santiago Pastorino'
8690
end

0 commit comments

Comments
 (0)