File tree 1 file changed +2
-4
lines changed
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -391,15 +391,13 @@ func writeReport(r *report.Report) (string, error) {
391
391
392
392
func createExcluded (ctx context.Context , cfg * createCfg ) (err error ) {
393
393
defer derrors .Wrap (& err , "createExcluded()" )
394
- excludedLabels := []string {"excluded: DEPENDENT_VULNERABILITY" ,
395
- "excluded: EFFECTIVELY_PRIVATE" , "excluded: NOT_A_VULNERABILITY" ,
396
- "excluded: NOT_GO_CODE" , "excluded: NOT_IMPORTABLE" }
397
394
isses := []* issues.Issue {}
398
395
stateOption := "open"
399
396
if cfg .allowClosed {
400
397
stateOption = "all"
401
398
}
402
- for _ , label := range excludedLabels {
399
+ for _ , er := range report .ExcludedReasons {
400
+ label := fmt .Sprintf ("excluded: %s" , er )
403
401
tempIssues , err :=
404
402
cfg .issuesClient .Issues (ctx , issues.IssuesOptions {Labels : []string {label }, State : stateOption })
405
403
if err != nil {
You can’t perform that action at this time.
0 commit comments