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.60.3 to 0.62.1 #427

Closed

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Nov 22, 2022

Bumps github.com/anchore/syft from 0.60.3 to 0.62.1.

Release notes

Sourced from github.com/anchore/syft's releases.

v0.62.1

Changelog

v0.62.1 (2022-11-21)

Full Changelog

Bug Fixes

v0.62.0

Changelog

v0.62.0 (2022-11-18)

Full Changelog

Added Features

Bug Fixes

v0.61.0

Changelog

v0.61.0 (2022-11-18)

Full Changelog

Added Features

Bug Fixes

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [github.com/anchore/syft](https://github.com/anchore/syft) from 0.60.3 to 0.62.1.
- [Release notes](https://github.com/anchore/syft/releases)
- [Changelog](https://github.com/anchore/syft/blob/main/.goreleaser.yaml)
- [Commits](anchore/syft@v0.60.3...v0.62.1)

---
updated-dependencies:
- dependency-name: github.com/anchore/syft
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot requested a review from a team as a code owner November 22, 2022 05:04
@paketo-bot paketo-bot added the semver:patch A change requiring a patch version bump label Nov 22, 2022
@sophiewigmore
Copy link
Member

It seems like as of Syft v0.61.0, something has changed with the Syft tool formats such that the default Syft JSON schema version shipped by Syft is now getting used when a user tries to use the latest Syft version, rather than getting shoehorned into using 3.0.1 like before.

Specifically, this test fails:

it("writes the SBOM in the latest Syft format (3.*)", func() {
buffer := bytes.NewBuffer(nil)
_, err := io.Copy(buffer, sbom.NewFormattedReader(bom, sbom.Format(syft.JSONFormatID)))
Expect(err).NotTo(HaveOccurred())
var syftOutput syftOutput
err = json.Unmarshal(buffer.Bytes(), &syftOutput)
Expect(err).NotTo(HaveOccurred(), buffer.String())
Expect(syftOutput.Schema.Version).To(MatchRegexp(`3\.\d+\.\d+`), buffer.String())
Expect(syftOutput.Source.Type).To(Equal("directory"), buffer.String())
Expect(syftOutput.Source.Target).To(Equal("testdata/"), buffer.String())
Expect(syftOutput.Artifacts[0].Name).To(Equal("collapse-white-space"), buffer.String())
Expect(syftOutput.Artifacts[1].Name).To(Equal("end-of-stream"), buffer.String())
Expect(syftOutput.Artifacts[2].Name).To(Equal("insert-css"), buffer.String())
Expect(syftOutput.Artifacts[3].Name).To(Equal("once"), buffer.String())
Expect(syftOutput.Artifacts[4].Name).To(Equal("pump"), buffer.String())
Expect(syftOutput.Artifacts[5].Name).To(Equal("wrappy"), buffer.String())
rerunBuffer := bytes.NewBuffer(nil)
_, err = io.Copy(rerunBuffer, sbom.NewFormattedReader(bom, sbom.Format(syft.JSONFormatID)))
Expect(err).NotTo(HaveOccurred())
Expect(rerunBuffer.String()).To(Equal(buffer.String()))
})
because the schema version used is actually 6.0.0.

I think we need to invest some time into getting the new Syft versions working in packit. This also relates to this thread about Packit user ability to get latest schema versions: https://paketobuildpacks.slack.com/archives/C011S6EL49L/p1664913833543899

@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Nov 29, 2022

Superseded by #429.

@dependabot dependabot bot closed this Nov 29, 2022
@dependabot dependabot bot deleted the dependabot/go_modules/github.com/anchore/syft-0.62.1 branch November 29, 2022 05:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver:patch A change requiring a patch version bump
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants