Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/workflows/ai-security-audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,15 @@ jobs:
# Post new comment
gh pr comment "$PR_NUMBER" --body-file comment_body.md

- name: Fail if critical issues found
if: steps.check.outputs.skip != 'true'
run: |
if grep -qi '\[CRITICAL\]' audit_result.md; then
CRITICAL_COUNT=$(grep -ci '\[CRITICAL\]' audit_result.md)
echo "::error::AI security audit found ${CRITICAL_COUNT} CRITICAL issue(s). Please fix them before merging."
exit 1
fi

- name: Post skip comment
if: steps.check.outputs.skip == 'true'
env:
Expand Down
Loading