Skip to content

Commit 3d2b66d

Browse files
authored
ci: tests: build: Generate OpenVEX and submit to SCITT
Related: openvex/generate-vex#1
1 parent f0c7eb8 commit 3d2b66d

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

.github/workflows/tests.yml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,6 @@ jobs:
116116
payload: ${{ steps.in-toto-cyclonedx.outputs.attestation }}
117117
private-key-pem: private-key.pem
118118
scitt-url: https://scitt.unstable.chadig.com
119-
- name: Remove private key used in keypair to sign SCITT statement
120-
run: |
121-
rm -v private-key.pem
122119
- name: Create Pull Request
123120
if: ${{ steps.generate-sbom.outputs.changed }}
124121
uses: peter-evans/[email protected]
@@ -129,6 +126,25 @@ jobs:
129126
delete-branch: true
130127
author: GitHub Actions <[email protected]>
131128
add-paths: sbom
129+
- name: Install vexctl
130+
uses: openvex/setup-vexctl@main
131+
- uses: openvex/generate-vex@31b415924ea0d72ed5f2640f1dee59dea6c2770b
132+
name: Run vexctl
133+
id: vexctl
134+
with:
135+
product: pkg:github/${{ github.repository }}@${{ github.sha }}
136+
- name: Submit SBOM to SCITT
137+
id: scitt-submit-openvex
138+
uses: pdxjohnny/scitt-api-emulator@github-action
139+
with:
140+
issuer: did:web:raw.githubusercontent.com:pdxjohnny:httptest:public-keys:authorized_keys
141+
subject: pkg:github/${{ github.repository }}@${{ github.sha }}
142+
payload: ${{ steps.vexctl.outputs.openvex }}
143+
private-key-pem: private-key.pem
144+
scitt-url: https://scitt.unstable.chadig.com
145+
- name: Remove private key used in keypair to sign SCITT statement
146+
run: |
147+
rm -v private-key.pem
132148
133149
unittest:
134150
runs-on: ${{ matrix.os }}

0 commit comments

Comments
 (0)