Skip to content

Commit cba375a

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

File tree

4 files changed

+9
-12
lines changed

4 files changed

+9
-12
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/lizard/test/lizardRunner_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ func TestRunLizardWithSarifOutput(t *testing.T) {
2525

2626
// Construct the path to the Lizard binary
2727
globalCache := filepath.Join(homeDirectory, ".cache", "codacy")
28-
lizardBinary := filepath.Join(globalCache, "tools/[email protected].19/venv/bin/python")
28+
lizardBinary := filepath.Join(globalCache, "tools/[email protected].31/venv/bin/python")
2929

3030
// Construct the path to the test file
3131
complexPyPath := filepath.Join(currentDir, "complex.py")

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)