
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
9 lines
201 B
Bash
Executable File
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
|