File tree Expand file tree Collapse file tree 3 files changed +418
-5
lines changed
Expand file tree Collapse file tree 3 files changed +418
-5
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ go.work.sum
2828cli-v2
2929codacy-cli
3030** /.codacy /logs /
31+ .codacy /
3132
3233
3334# Ignore cursor AI rules
Original file line number Diff line number Diff line change @@ -32,11 +32,18 @@ func CreateTrivyConfig(config []domain.PatternConfiguration) string {
3232 if pattern .PatternDefinition .Id == "Trivy_vulnerability_medium" {
3333 includeMedium = patternEnabled
3434 }
35- if pattern .PatternDefinition .Id == "Trivy_vulnerability" {
36- // This covers HIGH and CRITICAL
35+ if pattern .PatternDefinition .Id == "Trivy_vulnerability_high" {
3736 includeHigh = patternEnabled
37+ }
38+ if pattern .PatternDefinition .Id == "Trivy_vulnerability_critical" {
3839 includeCritical = patternEnabled
3940 }
41+ if pattern .PatternDefinition .Id == "Trivy_vulnerability" {
42+ // This covers HIGH and CRITICAL
43+ // Now there are other patterns that turn these severities on
44+ includeHigh = patternEnabled || includeHigh
45+ includeCritical = patternEnabled || includeCritical
46+ }
4047 if pattern .PatternDefinition .Id == "Trivy_secret" {
4148 includeSecret = patternEnabled
4249 }
You can’t perform that action at this time.
0 commit comments