google / google/osv-scanner

Remove dedicated SBOM flag in favor of `-L` and friends

Open
#1,960 2 comments 0 reactions 0 assignees View on GitHub
backlog enhancement
Dominant language
Go
Stars
11k
Forks
792
Avg merge
1d 20h
Merged PRs (30d)
48

Description

The [`--sbom` flag](https://google.github.io/osv-scanner/usage/scan-source#specify-sbom) was introduced while we were still figuring out how to handle scanning in different contexts and stuff like resolving patterns to files (like with `requirements.txt`) rather than just 1:1 mappings.

Nowadays we shouldn't need a dedicated flag (in fact right now you can use `-L` instead of `-sbom` and get the same results), and it makes it hard to move forward with #1846 due to its slightly special-but-unneeded behaviour.

We should start by deprecating the `--sbom` flag in favor of `-L`, and go from there

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.