Skip to content

Commit 645baee

Browse files
committed
feature: trivy will now run with --detection-priority comprehensive CF-1835
1 parent 73051d7 commit 645baee

File tree

3 files changed

+8
-11
lines changed

3 files changed

+8
-11
lines changed

.codacy/codacy.yaml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
11
runtimes:
2-
32
43
54
65
76
tools:
8-
9-
10-
11-
7+
8+
129
13-
14-
- revive@1.7.0
10+
11+
- revive@1.11.0
1512
16-
- trivy@0.59.1
13+
- trivy@0.65.0

integration-tests/init-with-token/expected/codacy.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ runtimes:
44
55
tools:
66
7-
7+
88
99
1010
11-
- trivy@0.59.1
11+
- trivy@0.65.0

tools/trivyRunner.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99

1010
// RunTrivy executes Trivy vulnerability scanner with the specified options
1111
func RunTrivy(repositoryToAnalyseDirectory string, trivyBinary string, pathsToCheck []string, outputFile string, outputFormat string) error {
12-
cmd := exec.Command(trivyBinary, "fs")
12+
cmd := exec.Command(trivyBinary, "fs", "--detection-priority", "comprehensive")
1313

1414
// Add config file from tools-configs directory if it exists
1515
if configFile, exists := ConfigFileExists(config.Config, "trivy.yaml"); exists {

0 commit comments

Comments
 (0)