Skip to content

Commit

Permalink
cmd/vulnreport: skip issues marked NeedsAlias in create
Browse files Browse the repository at this point in the history
Change-Id: Ie21d520396277e1b36a0a10224c5f73aaafcb50f
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/597157
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Damien Neil <dneil@google.com>
  • Loading branch information
tatianab committed Jul 9, 2024
1 parent f268f3b commit 6155dc5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cmd/vulnreport/creator.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,12 @@ func skip(iss *issues.Issue, x *xrefer) string {
return "suggested edit"
}

// indicates that there is already a report for this
// vuln but the report needs to be updated
if iss.HasLabel(labelNeedsAlias) {
return "existing report needs alias"
}

if iss.HasLabel(labelPossibleDuplicate) {
return "possible duplicate"
}
Expand Down Expand Up @@ -242,6 +248,7 @@ const (
labelDuplicate = "duplicate"
labelDirect = "Direct External Report"
labelSuggestedEdit = "Suggested Edit"
labelNeedsAlias = "NeedsAlias"
labelTriaged = "triaged"
labelHighPriority = "high priority"
labelFirstParty = "first party"
Expand Down

0 comments on commit 6155dc5

Please sign in to comment.