Skip to content

ci: add security audit, bundle size report, and branch protection#42

Merged
rogerdigital merged 2 commits into
mainfrom
ci/hardening-pipeline
May 26, 2026
Merged

ci: add security audit, bundle size report, and branch protection#42
rogerdigital merged 2 commits into
mainfrom
ci/hardening-pipeline

Conversation

@rogerdigital
Copy link
Copy Markdown
Owner

Summary

  • Add npm audit --audit-level=high step to CI (fail on high/critical vulnerabilities)
  • Add bundle size report to GitHub Actions step summary (top 10 chunks + total size)
  • Add 1.5MB bundle size threshold warning
  • Enable branch protection on main (require CI checks, enforce admins off)

Test plan

  • CI pipeline runs all 4 jobs: lint, test, security audit, build
  • Bundle size report appears in step summary
  • No high/critical vulnerabilities found by npm audit

- Add npm audit step (fail on high/critical vulnerabilities)
- Add bundle size report to CI step summary
- Add 1.5MB bundle size threshold warning
Replace busy-wait spin loop with async setTimeout for reliable
timing in CI environments.
@rogerdigital rogerdigital merged commit e1d52bd into main May 26, 2026
9 checks passed
@rogerdigital rogerdigital deleted the ci/hardening-pipeline branch May 26, 2026 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant