Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,6 @@ jobs:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Export SBOM for binary in SPDX JSON format
# https://docs.github.com/en/rest/dependency-graph/sboms?apiVersion=2022-11-28
run: |
gh api \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
/repos/${{ github.repository }}/dependency-graph/sbom > sbom.spdx.json
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: goreleaser/goreleaser-action@e435ccd777264be153ace6237001ef4d979d3a7a # v6.4.0
id: goreleaser
with:
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
/dist
/cover.out
/sbom.spdx.json
16 changes: 8 additions & 8 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@ builds:
binary: another-binary
main: ./cmd/another-binary

checksum:
name_template: checksums.txt

sboms:
- ids:
- go-cli-github
- another-binary

changelog:
use: github-native

Expand All @@ -48,11 +56,3 @@ dockers_v2:
- latest
build_args:
BINARY: another-binary

release:
extra_files:
- glob: ./sbom.spdx.json
name_template: "{{ .ProjectName }}.v{{ .Version }}.sbom.spdx.json"

checksum:
name_template: checksums.txt
Loading