File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed
Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change 3737 with :
3838 fail-on-severity : high
3939 comment-summary-in-pr : always
40+
41+ # Security scan summary - aggregates all security job results
42+ security-summary :
43+ name : Security Summary
44+ needs : [dependency-review]
45+ runs-on : ubuntu-latest
46+ if : always()
47+ permissions :
48+ contents : read
49+ steps :
50+ - name : Harden the runner (Audit all outbound calls)
51+ uses : step-security/harden-runner@df199fb7be9f65074067a9eb93f12bb4c5547cf2 # v2.13.3
52+ with :
53+ egress-policy : audit
54+
55+ - name : Check security scan results
56+ env :
57+ DEPENDENCY_REVIEW_RESULT : ${{ needs.dependency-review.result }}
58+ run : |
59+ echo "## Security Scan Results"
60+ echo ""
61+ echo "| Scanner | Status |"
62+ echo "|---------|--------|"
63+ echo "| Dependency Review | $DEPENDENCY_REVIEW_RESULT |"
64+ echo ""
65+
66+ # Fail if any security job failed
67+ if [[ "$DEPENDENCY_REVIEW_RESULT" != "success" && "$DEPENDENCY_REVIEW_RESULT" != "skipped" ]]; then
68+ echo "❌ Security checks failed"
69+ exit 1
70+ fi
71+
72+ echo "✅ All security checks passed!"
You can’t perform that action at this time.
0 commit comments