racket/.github/scripts/adjust-sarif-tool.sh
Paulo Matos e62b3b8c1c
Fix tool name in SARIF files depending on racket build mode (#3328)
This should replace the toolname in sarif files to workaround the lack of tags when uploading them.

See here for a request to add that:
https://github.com/github/codeql-action/issues/129
2020-08-03 17:46:04 +02:00

9 lines
201 B
Bash
Executable File

#!/bin/bash
MODE="$1"
shopt -s globstar
for file in **/*.sarif; do
echo "Processing $file"
jq "setpath([\"runs\",0,\"tool\",\"driver\",\"name\"]; \"clang-${MODE}\")" $file | sponge $file
done