File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -437,16 +437,16 @@ jobs:
437437
438438 jq '.resultSet.results // []' vacuum-report.json > vacuum-results.json
439439
440- ERROR_COUNT=$(jq '[.[] | select(.severity == "error")] | length' vacuum-results.json)
441- WARNING_COUNT=$(jq '[.[] | select(.severity == "warn")] | length' vacuum-results.json)
440+ ERROR_COUNT=$(jq '[.[] | select(.ruleSeverity == "error")] | length' vacuum-results.json)
441+ WARNING_COUNT=$(jq '[.[] | select(.ruleSeverity == "warn")] | length' vacuum-results.json)
442442
443443 echo "Found $ERROR_COUNT error(s) and $WARNING_COUNT warning(s)"
444444
445445 if [ "$ERROR_COUNT" -gt 0 ]; then
446446 echo "API specification audit failed with $ERROR_COUNT error(s)"
447447 echo ""
448448 echo "Errors:"
449- jq -r '.[] | select(.severity == "error") | " - [\(.ruleId)] \(.message) at \(.path)"' vacuum-results.json
449+ jq -r '.[] | select(.ruleSeverity == "error") | " - [\(.ruleId)] \(.message) at \(.path)"' vacuum-results.json
450450 exit 1
451451 else
452452 echo "API specification audit passed!"
You can’t perform that action at this time.
0 commit comments