Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump github.com/anchore/syft from 0.94.0 to 0.97.1 #83

Merged
merged 1 commit into from
Nov 29, 2023

Conversation

crazy-max
Copy link
Member

fixes #82

Full diff: anchore/syft@v0.94.0...v0.97.1

sbom.Encode is not a thing anymore and the encoding interface has been split since anchore/syft#2186.

Full diff: anchore/syft@v0.94.0...v0.97.1

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
@@ -38,7 +38,12 @@ func (s Scanner) Scan() error {
return err
}

output, err := syft.Encode(result, spdxjson.Format())
enc, err := spdxjson.NewFormatEncoderWithConfig(spdxjson.DefaultEncoderConfig())
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

@crazy-max crazy-max Nov 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if we should provide this as an option so user can choose a specific version/format. Maybe a BUILDKIT_SCAN_FORMAT that would default to spdxjson. If user wants to pin to a specific version of this format it could then set BUILDKIT_SCAN_FORMAT=spdxjson:2.2.

Ofc we would have only one format available atm but it lets doors open for others in the future?

@cdupuis @jedevc Thoughts?

Copy link
Collaborator

@jedevc jedevc Nov 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think allowing specifying formats would be good IMO, it also opens the route to doing CycloneDX at some point (not worth blocking this PR on though IMO).

I'm not quite sure what the user-interface to this should be though - ideally, we could put it in the --attestation type=sbom,format=... or somewhere like that? Or maybe it's more generic, and we should allow passing arbitrary parameters, which we discussed at some point on the buildkit repo.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or maybe it's more generic, and we should allow passing arbitrary parameters, which we discussed at some point on the buildkit repo.

Yes generic attributes that could be inferred as an env var like BUILDKIT_SCAN_<name> and then used with --attestation type=sbom,<name>=... on client-side would be handy.

@crazy-max crazy-max requested review from cdupuis and jedevc November 22, 2023 19:04
@crazy-max crazy-max marked this pull request as ready for review November 22, 2023 19:04
@crazy-max crazy-max merged commit c91781e into docker:master Nov 29, 2023
9 checks passed
@crazy-max crazy-max deleted the update-syft branch November 29, 2023 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dependabot can't resolve github.com/anchore/syft anymore
2 participants