ci(security): add Retire.js workflow to detect bundled JS vulnerabilities#27315
ci(security): add Retire.js workflow to detect bundled JS vulnerabilities#27315harsh-vador wants to merge 7 commits intomainfrom
Conversation
Code Review ✅ Approved 6 resolved / 6 findingsAdds Retire.js workflow to detect bundled JavaScript vulnerabilities in CI, addressing missing report handling, JSON sanitization in inline Python, retire.js version pinning, yarn lockfile verification, and Slack notification logic. All findings resolved. ✅ 6 resolved✅ Edge Case: retire-report.json missing causes silent pass with no summary
✅ Security: Inline Python in workflow parses untrusted JSON without sanitization
✅ Quality: Pin retire.js version for reproducible scans
✅ Bug: Missing --frozen-lockfile flag on yarn install in CI
✅ Edge Case: Success Slack uses negated check; may fire on cancelled/skipped
...and 1 more resolved from earlier reviews OptionsDisplay: compact → Showing less information. Comment with these commands to change:
Was this helpful? React with 👍 / 👎 | Gitar |
Describe your changes:
Summary
When it runs
What it does
Impact on existing Snyk scan
None. The existing security-scan job is unchanged — only a single if: github.event_name != 'pull_request' guard was added so Snyk continues to run only on schedule/dispatch (not on PRs, where it has no secrets access anyway).
Type of change:
Checklist:
Fixes <issue-number>: <short explanation>