Skip to content

resolve sbom: Emit hyphenated vulnerabilities.json keys and add Claude provider - #267

Open
Blerfx2 wants to merge 1 commit into
riversideresearch:mainfrom
team45-cves:sbom-fix
Open

Blerfx2 wants to merge 1 commit into
riversideresearch:mainfrom
team45-cves:sbom-fix

Conversation

@Blerfx2

@Blerfx2 Blerfx2 commented Nov 12, 2026

Copy link
Copy Markdown

resolve sbom wrote snake_case keys (cve_id, affected_function), but resolve reach, resolve remediate, and the vulnerabilities.json docs use hyphenated keys (cve-id, affected-function), so SBOM output could not be fed to those tools directly. Serialize Vulnerability with hyphenated aliases; snake_case input is still accepted.

Add -L claude, which extracts the affected file/function via the Claude Code CLI (claude -p). Auth comes from ANTHROPIC_API_KEY or a prior claude login. The prompt is sent on stdin because --allowedTools is variadic and would swallow a positional prompt.

Updated the example output and SBOM docs to match.

…e provider

resolve sbom wrote snake_case keys (cve_id, affected_function), but
resolve reach, resolve remediate, and the vulnerabilities.json docs use
hyphenated keys (cve-id, affected-function), so SBOM output could not be
fed to those tools directly. Serialize Vulnerability with hyphenated
aliases; snake_case input is still accepted.

Add `-L claude`, which extracts the affected file/function via the
Claude Code CLI (`claude -p`). Auth comes from ANTHROPIC_API_KEY or a
prior `claude` login. The prompt is sent on stdin because
--allowedTools is variadic and would swallow a positional prompt.

Update the example output and SBOM docs to match.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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