ci: add dependency vulnerability audit workflow#154
Conversation
Co-authored-by: Mossaka <5447827+Mossaka@users.noreply.github.com>
Test Coverage Report
Coverage ThresholdsThe project has the following coverage thresholds configured:
Coverage report generated by `npm run test:coverage` |
There was a problem hiding this comment.
Pull request overview
This PR adds automated dependency vulnerability scanning to the repository using GitHub Actions. The workflow runs npm audit on both the main package and the docs-site package to identify security vulnerabilities in dependencies.
- Adds scheduled weekly vulnerability scans every Monday at 00:00 UTC
- Scans run on every push/PR to main, with manual trigger option available
- Workflow fails CI when high or critical severity vulnerabilities are detected
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Fix this pipeline failure in this PR: Run npm audit --audit-level=high npm audit reportastro <=5.15.8 esbuild <=0.24.2 6 vulnerabilities (5 moderate, 1 high) To address all issues (including breaking changes), run: |
Co-authored-by: Mossaka <5447827+Mossaka@users.noreply.github.com>
Fixed in 36883a0. Updated docs-site dependencies to resolve vulnerabilities:
Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
Adds automated dependency vulnerability scanning using
npm auditfor both the main package and docs-site.Changes
New workflow
.github/workflows/dependency-audit.ymlthat:docs-site/separately--audit-level=high)Updated docs-site dependencies to resolve high-severity vulnerabilities:
astrofrom ^4.16.12 to ^5.16.6@astrojs/starlightfrom ^0.28.4 to ^0.37.1astro-mermaidto 1.1.0 (version 1.2.0 has a vulnerable@anthropic-ai/claude-codedependency)@astrojs/check,mermaid, andsharpto latest versionsastro.config.mjsto use new social config array syntax (required by Starlight 0.33+)Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.