Created
November 1, 2025 15:49
-
-
Save williamzujkowski/a63e9adf2fa91764899517c5b40b6829 to your computer and use it in GitHub Desktop.
VS Code tasks.json with Grype, OSV, and combined scan tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // VS Code Security Scanning Tasks | |
| // Source: https://williamzujkowski.github.io/posts/2025-10-06-automated-security-scanning-pipeline/ | |
| // Purpose: Run security scans directly from VS Code | |
| // Usage: Save as .vscode/tasks.json and run via Command Palette (Ctrl+Shift+P > "Tasks: Run Task") | |
| { | |
| "version": "2.0.0", | |
| "tasks": [ | |
| { | |
| "label": "Security Scan: Grype", | |
| "type": "shell", | |
| "command": "grype dir:. -o json | jq", | |
| "group": "test", | |
| "presentation": { | |
| "reveal": "always", | |
| "panel": "new" | |
| } | |
| }, | |
| { | |
| "label": "Security Scan: OSV", | |
| "type": "shell", | |
| "command": "osv-scanner --lockfile=package-lock.json --format=json", | |
| "group": "test", | |
| "presentation": { | |
| "reveal": "always", | |
| "panel": "new" | |
| } | |
| }, | |
| { | |
| "label": "Security Scan: All", | |
| "dependsOn": [ | |
| "Security Scan: Grype", | |
| "Security Scan: OSV" | |
| ], | |
| "group": { | |
| "kind": "test", | |
| "isDefault": true | |
| } | |
| } | |
| ] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment