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:
parent
03e876754d
commit
5032f998a0
7
.github/workflows/release.yml
vendored
7
.github/workflows/release.yml
vendored
@ -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
3
.gitignore
vendored
@ -33,3 +33,6 @@ _testmain.go
|
||||
.DS_Store
|
||||
|
||||
.vscode
|
||||
|
||||
# SBOMs generated during CI
|
||||
/bom.json
|
||||
|
@ -2,6 +2,8 @@
|
||||
project_name: gosec
|
||||
|
||||
release:
|
||||
extra_files:
|
||||
- glob: ./bom.json
|
||||
github:
|
||||
owner: securego
|
||||
name: gosec
|
||||
|
Loading…
Reference in New Issue
Block a user