Skip to content

Instantly share code, notes, and snippets.

@williamzujkowski
Created November 1, 2025 15:49
Show Gist options
  • Select an option

  • Save williamzujkowski/a63e9adf2fa91764899517c5b40b6829 to your computer and use it in GitHub Desktop.

Select an option

Save williamzujkowski/a63e9adf2fa91764899517c5b40b6829 to your computer and use it in GitHub Desktop.
VS Code tasks.json with Grype, OSV, and combined scan tasks
// 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