We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 839130f commit 0620f43Copy full SHA for 0620f43
1 file changed
run-tool-tests.sh
@@ -24,7 +24,8 @@ normalize_paths() {
24
sort_sarif() {
25
local input=$1
26
local output=$2
27
- jq --sort-keys 'if .runs[0].tool.driver.rules == null then . else .runs[0].tool.driver.rules |= sort_by(.id) end' "$input" > "$output"
+ # Use raw input mode to handle special characters
28
+ jq -R -s 'fromjson? // empty' "$input" | jq --sort-keys '.' > "$output"
29
}
30
31
# Check if tool name is provided
0 commit comments