Skip to content

Commit

Permalink
Merge pull request #140 from smlx/explicit-gitignore
Browse files Browse the repository at this point in the history
fix: explicitly gitignore the temporary sbom file
  • Loading branch information
smlx committed Mar 21, 2024
2 parents d406208 + 5cd184f commit 74ec7e1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Move sbom to avoid dirty git
run: |
mkdir -p ./dist
mv "$GITHUB_SBOM_PATH" ./dist/sbom.spdx.json
run: mv "$GITHUB_SBOM_PATH" ./sbom.spdx.json
env:
GITHUB_SBOM_PATH: ${{ steps.sbom.outputs.fileName }}
- uses: goreleaser/goreleaser-action@7ec5c2b0c6cdda6e8bbb49444bc797dd33d74dd8 # v5.0.0
Expand All @@ -80,4 +78,4 @@ jobs:
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_SBOM_PATH: ./dist/sbom.spdx.json
GITHUB_SBOM_PATH: ./sbom.spdx.json
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/dist
/cover.out
/sbom.spdx.json
2 changes: 1 addition & 1 deletion .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,4 @@ docker_signs:
release:
extra_files:
- glob: "{{ .Env.GITHUB_SBOM_PATH }}"
name_template: "go-cli-github.v{{ .Version }}.sbom.spdx.json"
name_template: "{{ .ProjectName }}.v{{ .Version }}.sbom.spdx.json"

0 comments on commit 74ec7e1

Please sign in to comment.