How to add a generated SBOM to the archives
?
#4425
-
When not specifying the For example (via): project_name: example
builds:
- env: [CGO_ENABLED=0]
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
gitlab_urls:
use_package_registry: true
sboms:
- artifacts: archive This uploads the SBOMs to the release. However, when we specify project_name: example
builds:
- env: [CGO_ENABLED=0]
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
archives:
- format: tar.gz
builds:
- default
gitlab_urls:
use_package_registry: true
sboms:
- artifacts: archive We can see that SBOMs are no longer present in the release. Edit: this may be mis-configuration as I don't see anything in there. Alternatively, see https://gitlab.com/tanna.dev/dependency-management-data/-/releases/v0.52.5 and https://gitlab.com/tanna.dev/dependency-management-data/-/blob/v0.52.5/.goreleaser.yaml |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
if you remove the this is one more thing that could be improved in #4407 that said, sboms are created after the archives, so they can't be included in them |
Beta Was this translation helpful? Give feedback.
Thank you, the
args
was the last thing 👏To confirm, the final
.goreleaser.yaml
I needed, on v1.20.0 was: