We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dbb4664 commit bde1143Copy full SHA for bde1143
2 files changed
.github/workflows/trivy-plugin-test.yml
@@ -7,7 +7,7 @@ on:
7
push:
8
paths:
9
- 'plugins/tools/trivy/**'
10
- - '.github/workflows/trivy-plugin-test.yml'
+
11
12
jobs:
13
test:
@@ -37,6 +37,8 @@ jobs:
37
"$CLI_PATH" install
38
# Run analysis
39
"$CLI_PATH" analyze --tool trivy --format sarif --output actual.sarif
40
+ # Convert absolute paths to relative paths in the output
41
+ sed -i 's|file:///home/runner/work/codacy-cli-v2/codacy-cli-v2/|file:///|g' actual.sarif
42
# Compare with expected output
43
diff expected.sarif actual.sarif
44
# Clean up
plugins/tools/trivy/test/expected.sarif
@@ -7,6 +7,7 @@
"driver": {
"fullName": "Trivy Vulnerability Scanner",
"name": "Trivy",
+ "informationUri": "https://github.com/aquasecurity/trivy",
"rules": [],
"version": "0.59.1"
}
0 commit comments