Skip to content

Commit 0fffe8b

Browse files
committed
fix(ci): put syft on release path
1 parent 522852c commit 0fffe8b

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ jobs:
3333
id: syft
3434
uses: anchore/sbom-action/download-syft@v0
3535

36+
- name: Add Syft to PATH
37+
run: echo "$(dirname '${{ steps.syft.outputs.cmd }}')" >> "$GITHUB_PATH"
38+
3639
- name: Generate Homebrew tap token
3740
id: tap-token
3841
uses: actions/create-github-app-token@v3
@@ -51,7 +54,6 @@ jobs:
5154
env:
5255
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5356
HOMEBREW_TAP_GITHUB_TOKEN: ${{ steps.tap-token.outputs.token }}
54-
SYFT_CMD: ${{ steps.syft.outputs.cmd }}
5557

5658
- name: Attest release artifacts
5759
uses: actions/attest@v4

.goreleaser.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ signs:
5959
artifacts: checksum
6060

6161
sboms:
62-
- cmd: '{{ .Env.SYFT_CMD }}'
62+
- cmd: syft
6363
artifacts: archive
6464

6565
homebrew_casks:

0 commit comments

Comments
 (0)