-
-
Notifications
You must be signed in to change notification settings - Fork 1k
feat: sbom.disable #5787
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
feat: sbom.disable #5787
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds support for an "enabled" flag in the SBOM configuration, allowing users to toggle whether SBOM generation is performed.
- Documentation added to introduce the new "enabled" field with a default of true.
- A new Enabled field is added to the SBOM configuration and integrated into the processing logic.
- Tests are extended to cover different scenarios for the Enabled setting, and the catalogTask function is refactored for clarity.
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
File | Description |
---|---|
www/docs/customization/sbom.md | Updates documentation to include the new "enabled" flag in SBOM docs. |
pkg/config/config.go | Introduces the Enabled field with support for template and boolean values. |
internal/pipe/sbom/sbom_test.go | Adds unit tests to verify the behavior of the Enabled flag. |
internal/pipe/sbom/sbom.go | Implements defaulting for the Enabled flag and refactors catalogTask. |
Comments suppressed due to low confidence (1)
pkg/config/config.go:788
- The 'Enabled' field is defined as a string to support both literal booleans and template expressions. Consider adding an inline comment to clarify this design decision for future maintainers.
Enabled string `yaml:"enabled,omitempty" json:"enabled,omitempty" jsonschema:"oneof_type=string;boolean"`
Deploying goreleaser with
|
Latest commit: |
936b187
|
Status: | ✅ Deploy successful! |
Preview URL: | https://05a7533b.goreleaser.pages.dev |
Branch Preview URL: | https://sbom.goreleaser.pages.dev |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5787 +/- ##
=======================================
Coverage 82.93% 82.93%
=======================================
Files 163 163
Lines 16292 16297 +5
=======================================
+ Hits 13511 13516 +5
Misses 2190 2190
Partials 591 591 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
closes #5786