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

Force go mod graph even when go list errors out #1349

Merged
merged 3 commits into from
Sep 1, 2024

Conversation

prabhu
Copy link
Collaborator

@prabhu prabhu commented Sep 1, 2024

go list -deps command could fail in enterprise environments for a few reasons such as:

  • Misconfiguration: private dependencies were not configured correctly
  • cdxgen invoked with only go.mod files without the full source code
  • Build errors

In such cases, we can force an SBOM creation by allowing only the use of go mod graph. The resulting SBOM might have false positives, which could be improved subsequently.

Signed-off-by: Prabhu Subramanian <[email protected]>
@prabhu prabhu merged commit 215df4f into master Sep 1, 2024
24 of 25 checks passed
@prabhu prabhu deleted the feature/go-mod-graph-fallback branch September 1, 2024 11:35
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.

1 participant