Fix the SBOM generation step in the release action (#712)

This commit is contained in:
Cosmin Cojocar 2021-10-15 10:57:09 +02:00 committed by GitHub
parent 5a3a27afae
commit 69213955da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -22,12 +22,10 @@ jobs:
id: get_version id: get_version
run: echo ::set-env name=RELEASE_VERSION::$(echo ${GITHUB_REF:10}) run: echo ::set-env name=RELEASE_VERSION::$(echo ${GITHUB_REF:10})
- name: Generate SBOM - name: Generate SBOM
uses: CycloneDX/gh-gomod-generate-sbom@v1.0.0 uses: CycloneDX/gh-gomod-generate-sbom@v1
with: with:
json: true version: v1
output: bom.json args: mod -licenses -json -output bom.json
resolve-licenses: true
version: ^v0
- name: Release Binaries - name: Release Binaries
uses: goreleaser/goreleaser-action@v2 uses: goreleaser/goreleaser-action@v2
with: with: