anchore / anchore/syft

Support user specifying syft-json version

Open
#3,316 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
9.6k
Forks
954
Avg merge
23h 27m
Merged PRs (30d)
48

Description

Like we've done with other formats, we'd like to be able to have the user be able to select the syft-json version on the CLI:

```
syft myimage:latest -o json@16
```

This way we can add new schemas with breaking changes that are opt in, not the default, thus allows us to iterate on core format models without forcing a syft v2 build:

```
syft myimage:latest -o json@17-dev
```

Contributor guide

Open the contributing guide

Research direction

Start by inspecting how existing output formats accept user-selected versions on the CLI, then trace the corresponding format and schema selection paths. Run the CLI with the examples in this issue and verify that json@16 and json@17-dev select the requested schemas while the default remains unchanged.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.