Skip to content

Commit 826e405

Browse files
committed
ci: update security.yml workflow
1 parent 3066d52 commit 826e405

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/security.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,36 @@ jobs:
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!"

0 commit comments

Comments
 (0)