Skip to content

Commit f93cfbe

Browse files
committed
feat: attest SBOM as well as binary artefacts
1 parent 8a94f1c commit f93cfbe

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/release.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,12 @@ jobs:
6161
env:
6262
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6363
GITHUB_SBOM_PATH: ./sbom.spdx.json
64-
# attest archives
64+
# attest artefacts
6565
- uses: actions/attest-build-provenance@db473fddc028af60658334401dc6fa3ffd8669fd # v2.3.0
6666
with:
67-
subject-path: "dist/*.tar.gz"
67+
subject-path: |
68+
dist/*.tar.gz
69+
sbom.spdx.json
6870
# parse artifacts to the format required for image attestation
6971
- run: |
7072
echo "digest=$(echo "$ARTIFACTS" | jq -r '.[]|select(.type=="Docker Manifest")|select(.name|test("go-cli-github:v"))|.extra.Digest')" >> "$GITHUB_OUTPUT"

0 commit comments

Comments
 (0)