File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 77 push :
88 paths :
99 - ' plugins/tools/trivy/**'
10- - ' .github/workflows/trivy-plugin-test.yml '
10+
1111
1212jobs :
1313 test :
3737 "$CLI_PATH" install
3838 # Run analysis
3939 "$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
4042 # Compare with expected output
4143 diff expected.sarif actual.sarif
4244 # Clean up
Original file line number Diff line number Diff line change 77 "driver" : {
88 "fullName" : " Trivy Vulnerability Scanner" ,
99 "name" : " Trivy" ,
10+ "informationUri" : " https://github.com/aquasecurity/trivy" ,
1011 "rules" : [],
1112 "version" : " 0.59.1"
1213 }
You can’t perform that action at this time.
0 commit comments