-
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: produce an sbom for each binary built (#62)
* remove replacements in .goreleaser.yml Signed-off-by: nscuro <[email protected]> * remove builds for x86 Signed-off-by: nscuro <[email protected]> * generate sbom for each binary built during release Signed-off-by: nscuro <[email protected]> * update cyclonedx-cli to 0.17.2 Signed-off-by: nscuro <[email protected]> Closes #61
- Loading branch information
Showing
5 changed files
with
35 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,18 +42,11 @@ jobs: | |
run: | | ||
mkdir -p "$HOME/.local/bin" | ||
echo "$HOME/.local/bin" >> $GITHUB_PATH | ||
wget -O "$HOME/.local/bin/cyclonedx" https://github.com/CycloneDX/cyclonedx-cli/releases/download/v0.17.0/cyclonedx-linux-x64 | ||
wget -O "$HOME/.local/bin/cyclonedx" https://github.com/CycloneDX/cyclonedx-cli/releases/download/v0.17.2/cyclonedx-linux-x64 | ||
chmod +x "$HOME/.local/bin/cyclonedx" | ||
- name: Checkout Repository | ||
uses: actions/checkout@v2 | ||
- name: Build | ||
run: make build | ||
- name: Test | ||
run: make test | ||
- name: Generate SBOM | ||
uses: CycloneDX/[email protected] | ||
with: | ||
include-stdlib: true | ||
json: true | ||
resolve-licenses: true | ||
version: "^v0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,14 +17,6 @@ jobs: | |
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.17 | ||
- name: Generate SBOM | ||
uses: CycloneDX/[email protected] | ||
with: | ||
include-stdlib: true | ||
json: true | ||
output: bom.json | ||
resolve-licenses: true | ||
version: "^v0" | ||
- name: Docker login | ||
uses: docker/login-action@v1 | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,4 +24,6 @@ dist/ | |
|
||
# SBOMs generated during CI | ||
/bom.json | ||
/*.bom.json | ||
/bom.xml | ||
/*.bom.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters