Skip to content

Commit c4a7f1e

Browse files
committed
Pass hashes when attesting OSV report
Signed-off-by: Adolfo García Veytia (Puerco) <[email protected]>
1 parent b321d03 commit c4a7f1e

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

.github/workflows/release.yaml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,10 +161,22 @@ jobs:
161161
env:
162162
GITHUB_TOKEN: ${{ github.token }}
163163
run: |
164-
vexflow assemble --repo=carabiner-dev/demo-repo --triage-repo=carabiner-dev/.vexflow-demo-repo > attestations/main.openvex.json
165-
bnd predicate attestations/main.openvex.json --subject="sha1:${{ github.sha }}" --out attestations/openvex.bundle.json --type="https://openvex.dev/ns/v0.2.0"
164+
vexflow assemble \
165+
--repo=carabiner-dev/demo-repo \
166+
--triage-repo=carabiner-dev/.vexflow-demo-repo > attestations/main.openvex.json
167+
168+
bnd predicate attestations/main.openvex.json \
169+
--subject="sha1:${{ github.sha }}" \
170+
--subject="gitCommit:${{ github.sha }}" \
171+
--out attestations/openvex.bundle.json \
172+
--type="https://openvex.dev/ns/v0.2.0"
173+
174+
bnd predicate attestations/osv-results.json \
175+
--subject="sha1:${{ github.sha }}" \
176+
--subject="gitCommit:${{ github.sha }}" \
177+
--out attestations/osv-results.bundle.json \
178+
--type="https://ossf.github.io/osv-schema/[email protected]"
166179
167-
bnd predicate attestations/osv-results.json --out attestations/osv-results.bundle.json --type="https://ossf.github.io/osv-schema/[email protected]"
168180
rm -f attestations/osv-results.json attestations/main.openvex.json
169181
170182
- name: Pack Attestations

0 commit comments

Comments
 (0)