Skip to content

Commit 6155dc5

Browse files
committed
cmd/vulnreport: skip issues marked NeedsAlias in create
Change-Id: Ie21d520396277e1b36a0a10224c5f73aaafcb50f Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/597157 LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Damien Neil <[email protected]>
1 parent f268f3b commit 6155dc5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

cmd/vulnreport/creator.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,12 @@ func skip(iss *issues.Issue, x *xrefer) string {
7777
return "suggested edit"
7878
}
7979

80+
// indicates that there is already a report for this
81+
// vuln but the report needs to be updated
82+
if iss.HasLabel(labelNeedsAlias) {
83+
return "existing report needs alias"
84+
}
85+
8086
if iss.HasLabel(labelPossibleDuplicate) {
8187
return "possible duplicate"
8288
}
@@ -242,6 +248,7 @@ const (
242248
labelDuplicate = "duplicate"
243249
labelDirect = "Direct External Report"
244250
labelSuggestedEdit = "Suggested Edit"
251+
labelNeedsAlias = "NeedsAlias"
245252
labelTriaged = "triaged"
246253
labelHighPriority = "high priority"
247254
labelFirstParty = "first party"

0 commit comments

Comments
 (0)