Skip to content

Add Grype vulnerability scanner workflow#290

Merged
aviadhahami merged 11 commits intomasterfrom
copilot/add-vulnerability-scanner
Mar 21, 2026
Merged

Add Grype vulnerability scanner workflow#290
aviadhahami merged 11 commits intomasterfrom
copilot/add-vulnerability-scanner

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 21, 2026

Adds a GitHub Actions workflow that scans dependencies for known vulnerabilities using Grype and uploads results as SARIF to GitHub Code Scanning.

  • New workflow (.github/workflows/vulnerability-scan.yaml): Runs on push/PR to master. Grype parses lockfiles directly via Syft's javascript-lock-cataloger—no npm ci or node_modules needed.
  • Fails the build on high or critical severity findings
  • Uploads SARIF report unconditionally for visibility in the Security tab
Original prompt

This section details on the original issue you should resolve

<issue_title>Add vulnerbility scanner</issue_title>
<issue_description>Add a free tier vulnerability scanner that will fail on high/crit.
do not use trivy</issue_description>

<agent_instructions>check online what the best free vuln scanner is </agent_instructions>

Comments on the Issue (you are @copilot in this section)


⚡ Quickly spin up Copilot coding agent tasks from anywhere on your macOS or Windows machine with Raycast.

Add a GitHub Actions workflow using Grype (anchore/scan-action) to scan
for dependency vulnerabilities. The workflow:
- Triggers on push/PR to master
- Scans the project directory with installed npm dependencies
- Fails the build on high or critical severity vulnerabilities
- Uploads SARIF results to GitHub Code Scanning
- Uses explicit permissions for security best practices

Co-authored-by: aviadhahami <7353632+aviadhahami@users.noreply.github.com>
Agent-Logs-Url: https://github.com/nodevault/node-vault/sessions/6160e790-c0cb-4ce9-92e9-1d98e30a939a
Copilot AI changed the title [WIP] Add free tier vulnerability scanner that fails on high/crit Add Grype vulnerability scanner workflow Mar 21, 2026
Copilot AI requested a review from aviadhahami March 21, 2026 12:09
Grype parses package-lock.json directly via Syft's javascript-lock-cataloger.
No need to install node_modules for vulnerability scanning.

Co-authored-by: aviadhahami <7353632+aviadhahami@users.noreply.github.com>
Agent-Logs-Url: https://github.com/nodevault/node-vault/sessions/7ce325a9-9cf4-4429-bd29-0e641afd7023
Copilot AI added 2 commits March 21, 2026 13:00
Strip trailing slash from endpoint to prevent malformed URIs
Copilot AI changed the title Add Grype vulnerability scanner workflow Remove unnecessary npm ci from Grype vulnerability scan Mar 21, 2026
Copilot AI requested a review from aviadhahami March 21, 2026 13:01
Copilot AI changed the title Remove unnecessary npm ci from Grype vulnerability scan Add Grype vulnerability scanner workflow Mar 21, 2026
@aviadhahami aviadhahami marked this pull request as ready for review March 21, 2026 13:14
@github-advanced-security
Copy link
Copy Markdown

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

@aviadhahami aviadhahami merged commit e2b9625 into master Mar 21, 2026
3 of 4 checks passed
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.

Add vulnerbility scanner

3 participants