We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9c04214 + a02b9ab commit 635e1f2Copy full SHA for 635e1f2
1 file changed
.github/workflows/ai-security-audit.yml
@@ -145,6 +145,15 @@ jobs:
145
# Post new comment
146
gh pr comment "$PR_NUMBER" --body-file comment_body.md
147
148
+ - name: Fail if critical issues found
149
+ if: steps.check.outputs.skip != 'true'
150
+ run: |
151
+ if grep -qi '\[CRITICAL\]' audit_result.md; then
152
+ CRITICAL_COUNT=$(grep -ci '\[CRITICAL\]' audit_result.md)
153
+ echo "::error::AI security audit found ${CRITICAL_COUNT} CRITICAL issue(s). Please fix them before merging."
154
+ exit 1
155
+ fi
156
+
157
- name: Post skip comment
158
if: steps.check.outputs.skip == 'true'
159
env:
0 commit comments