Skip to content

Commit

Permalink
Merge pull request #5 from tstromberg/main
Browse files Browse the repository at this point in the history
Make all combo/ rules a minimum of notable
  • Loading branch information
tstromberg authored Feb 29, 2024
2 parents 5ce53be + 3417a0d commit 5a7d72d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pkg/bincapz/report.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,12 @@ func ignoreMatch(tags []string, ignoreTags map[string]bool) bool {

func behaviorRisk(ns string, tags []string) int {
risk := 1

// In case we forget to add a tag
if strings.Contains(ns, "combo/") {
risk = 2
}

if slices.Contains(tags, "harmless") {
risk = 0
}
Expand Down Expand Up @@ -147,7 +153,7 @@ func behaviorRisk(ns string, tags []string) int {
risk = 4
}

if strings.Contains(ns, "third_party") {
if strings.Contains(ns, "third_party/") {
risk = 4
}

Expand Down

0 comments on commit 5a7d72d

Please sign in to comment.