Skip to content

Commit 645baee

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

3 files changed

Lines changed: 8 additions & 11 deletions

File tree

.codacy/codacy.yaml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
11
runtimes:
2-
- dart@3.7.2
32
- go@1.22.3
43
- java@17.0.10
54
- node@22.2.0
65
- python@3.11.11
76
tools:
8-
- codacy-enigma-cli@0.0.1-main.8.49310c3
9-
- dartanalyzer@3.7.2
10-
- eslint@8.57.0
11-
- lizard@1.17.19
7+
- eslint@9.32.0
8+
- lizard@1.17.31
129
- pmd@6.55.0
13-
- pylint@3.3.6
14-
- revive@1.7.0
10+
- pylint@3.3.7
11+
- revive@1.11.0
1512
- semgrep@1.78.0
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
- python@3.11.11
55
tools:
66
- eslint@8.57.0
7-
- lizard@1.17.19
7+
- lizard@1.17.31
88
- pmd@6.55.0
99
- pylint@3.3.7
1010
- semgrep@1.78.0
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)