Skip to content

How to add a generated SBOM to the archives? #4425

Answered by jamietanna
jamietanna asked this question in Q&A
Discussion options

You must be logged in to vote

Thank you, the args was the last thing 👏

To confirm, the final .goreleaser.yaml I needed, on v1.20.0 was:

archives:
  - format: zip
    id: w/version
    name_template: "dmd_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
    wrap_in_directory: false
  - format: zip
    id: wo/version
    name_template: "dmd_{{ .Os }}_{{ .Arch }}"
    wrap_in_directory: false
builds:
- binary: dmd
  flags:
    - -trimpath
  id: dmd
  ignore:
    - goarch: "386"
      goos: windows
  main: ./cmd/dmd
- binary: dmd-web
  flags:
    - -trimpath
  id: dmd-web
  ignore:
    - goarch: "386"
      goos: windows
  main: ./cmd/dmd-web
changelog:
  sort: asc
sboms:
  - id: spdx
    artifacts: archive
    ids:
      - w/version

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@jamietanna
Comment options

@caarlos0
Comment options

@caarlos0
Comment options

@jamietanna
Comment options

Answer selected by jamietanna
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants