Files
codeql-for-firefox/count-sarif.sh
2025-09-19 18:20:59 -07:00

12 lines
175 B
Bash
Executable File

#!/bin/sh
# Count SARIF results in a given file
if [ $# -ne 1 ]; then
echo "Usage: $0 file.sarif" >&2
exit 1
fi
file="$1"
jq '[.runs[].results[]] | length' "$file"