We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba8b575 commit 441aa92Copy full SHA for 441aa92
.github/workflows/build.yml
@@ -262,7 +262,8 @@ jobs:
262
if [ -d "codeql-results" ]; then
263
for sarif in codeql-results/*.sarif; do
264
if [ -f "$sarif" ]; then
265
- CODEQL_CRITICAL=$(jq -r '[.runs[0].results[] | select(.level == "error")] | length' "$sarif" 2>/dev/null || echo "0")
+ # Check for error level OR security-severity >= 7.0 (high/critical)
266
+ CODEQL_CRITICAL=$(jq -r '[.runs[0].results[] | select(.level == "error" or ((.properties["security-severity"] // "0") | tonumber >= 7.0))] | length' "$sarif" 2>/dev/null || echo "0")
267
if [ "$CODEQL_CRITICAL" -gt 0 ]; then
268
echo "::error::CodeQL found $CODEQL_CRITICAL critical/high severity issue(s)"
269
FAILED=true
0 commit comments