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

Replace grype with trivy for cyclonedx generation #288

Merged
merged 2 commits into from
Jan 15, 2024

Conversation

bomoko
Copy link
Contributor

@bomoko bomoko commented Jan 14, 2024

As it stands, we're using trivy as the sbom scanner in insights-handler, but generating sboms with syft on the remote side.

This has lead to issues with format incompatibilities across the two tools - specifically, an update to the cyclonedx format wasn't tracked in both tools and lead to a fatal crash in the handler.

This brings the insights generation in line, tooling wise, by replacing grype with trivy for sbom generation.

@bomoko bomoko marked this pull request as ready for review January 14, 2024 23:29
Copy link
Member

@shreddedbacon shreddedbacon left a comment

Choose a reason for hiding this comment

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

I'm not super familiar with trivy scanning, but reading the documentation for trivy scanning with cyclonedx, I am satisfied that this PR solves the problem of transferring from syft to trivy.

@shreddedbacon shreddedbacon changed the title Replaces grype with trivy for cyclonedx generation Replace grype with trivy for cyclonedx generation Jan 15, 2024
@shreddedbacon shreddedbacon merged commit e381c44 into main Jan 15, 2024
2 checks passed
@shreddedbacon shreddedbacon deleted the hotfix/replace_syft_with_trivy branch January 15, 2024 04:20
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.

2 participants