We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6172edb commit ecec62aCopy full SHA for ecec62a
1 file changed
.github/workflows/semgrep.yaml
@@ -47,13 +47,13 @@ jobs:
47
if [ $EXIT_CODE -gt 1 ]; then
48
echo "::error::Semgrep run encounters an error"
49
cat /tmp/semgrep-results.json
50
+ exit 1
51
fi
52
53
HIGH_CRITICAL=$(jq '[.results[] | select(.extra.severity == "HIGH" or .extra.severity == "CRITICAL")] | length' /tmp/semgrep-results.json)
54
if [ "$HIGH_CRITICAL" -gt 0 ]; then
55
echo "has_high_critical=true" >> "$GITHUB_OUTPUT"
56
- continue-on-error: true
57
58
- if: steps.semgrep.outputs.has_findings == 'true'
59
uses: int128/comment-action@66317511bc86c47bd51e03059040e8a460a167b8
0 commit comments