Skip to content

Commit

Permalink
Fix --min-risk behavior re: overrides (#523)
Browse files Browse the repository at this point in the history
Signed-off-by: egibs <[email protected]>
  • Loading branch information
egibs authored Oct 14, 2024
1 parent 4ea3bad commit a08d983
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/report/report.go
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ func Generate(ctx context.Context, path string, mrs yara.MatchRules, c malconten
// If running a scan as opposed to an analyze,
// drop any matches that fall below the highest risk
switch {
case risk < minScore && !ignoreMalcontent:
case risk < minScore && !ignoreMalcontent && !override:
continue
case c.Scan && risk < highestRisk && !ignoreMalcontent && !override:
continue
Expand Down

0 comments on commit a08d983

Please sign in to comment.