You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# - extract numeric scores for CVSS types (cvss_v3 or numeric severity[].score)
48
51
# - compare to threshold
49
-
if echo "${RESULTS}" | jq '
52
+
if jq '
50
53
.results[]
51
54
| .packages[]?
52
55
| .vulnerabilities[]?
53
56
| ( .severity[]?.score // "" ) as $s
54
57
| select($s != "")
55
58
| ($s | tonumber) >= 4.0
56
-
' | grep -q -e . ; then
59
+
' "${RUNNER_TEMP}/results.json" | grep -q -e . ; then
57
60
>&2 echo "error: found one or more vulnerabilities with a medium or higher severity (see step 'scan > osv-scanner > Run osv-scanner-reporter' for details)"
0 commit comments