Skip to content

Commit e9c3da1

Browse files
jasnowpostmodern
authored andcommitted
Add 'Prefer CVE filenames to GHSA filenames lint rule and rename 4 advisories
1 parent c4966b6 commit e9c3da1

File tree

5 files changed

+7
-0
lines changed

5 files changed

+7
-0
lines changed

gems/nokogiri/GHSA-fq42-c5rg-92c2.yml renamed to gems/nokogiri/CVE-2021-30560.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,5 @@ patched_versions:
7777
- ">= 1.13.2"
7878
related:
7979
cve:
80+
- 2021-30560
8081
- 2022-23308

spec/advisory_example.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@
4141
expect(advisory['cve'] || advisory['osvdb'] || advisory['ghsa']).not_to be_nil
4242
end
4343

44+
it "should CVE-XXX if cve field has a value" do
45+
if advisory['cve']
46+
expect(filename).to start_with('CVE-')
47+
end
48+
end
49+
4450
describe "platform" do
4551
subject { advisory['platform'] }
4652

0 commit comments

Comments
 (0)