1
0
mirror of https://github.com/securego/gosec.git synced 2024-12-26 20:53:56 +02:00

Generate SBOM (#655)

* Generate SBOM

* Update release.yml

* Update .github/workflows/release.yml

Co-authored-by: Matthieu MOREL <mmorel-35@users.noreply.github.com>

* Publish bom.json

* Ignore SBOMs generated during CI

Co-authored-by: Matthieu MOREL <mmorel-35@users.noreply.github.com>
This commit is contained in:
Vinod Anandan 2021-06-21 09:50:44 +01:00 committed by GitHub
parent 03e876754d
commit 5032f998a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 0 deletions

View File

@ -21,6 +21,13 @@ jobs:
- name : Get release version
id: get_version
run: echo ::set-env name=RELEASE_VERSION::$(echo ${GITHUB_REF:10})
- name: Generate SBOM
uses: CycloneDX/gh-gomod-generate-sbom@v0.2.0
with:
json: true
output: bom.json
resolve-licenses: true
version: latest
- name: Release Binaries
uses: goreleaser/goreleaser-action@v2
with:

3
.gitignore vendored
View File

@ -33,3 +33,6 @@ _testmain.go
.DS_Store
.vscode
# SBOMs generated during CI
/bom.json

View File

@ -2,6 +2,8 @@
project_name: gosec
release:
extra_files:
- glob: ./bom.json
github:
owner: securego
name: gosec