File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,11 @@ cd "$TOOL_DIR"
3636# Handle both path formats: with and without extra codacy-cli-v2
3737sed -i ' s|file:///home/runner/work/codacy-cli-v2/|file:///|g' actual.sarif
3838
39+ # Debug information
40+ echo " Current directory: $( pwd) "
41+ echo " Looking for expected.sarif in: $TEST_DIR /expected.sarif"
42+ ls -la " $TEST_DIR /expected.sarif" || echo " File not found or not accessible"
43+
3944# Sort all fields in both files, handling null rules array
4045jq --sort-keys ' if .runs[0].tool.driver.rules == null then . else .runs[0].tool.driver.rules |= sort_by(.id) end' " $TEST_DIR /expected.sarif" > expected.sorted.json
4146jq --sort-keys ' if .runs[0].tool.driver.rules == null then . else .runs[0].tool.driver.rules |= sort_by(.id) end' actual.sarif > actual.sorted.json
You can’t perform that action at this time.
0 commit comments