Skip to content

Commit 9a60aef

Browse files
authored
try checklevelprov in action (#57)
Signed-off-by: Tom Hennen <[email protected]>
1 parent dc0d9d3 commit 9a60aef

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

actions/slsa_with_provenance/action.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ runs:
2020
path: ${{ github.workspace }}/metadata/prev_bundle.intoto.jsonl
2121
- id: determine_level
2222
run: |
23-
go run github.com/slsa-framework/slsa-source-poc/sourcetool@9db86884defc341b81cda6099e72e1d6ccc0d701 prov --prev_att_path ${{ github.workspace }}/metadata/prev_bundle.intoto.jsonl --commit ${{ github.sha }} --prev_commit ${{ github.event.before }} --owner ${{ github.repository_owner }} --repo ${{ github.event.repository.name }} --branch ${{ github.ref_name }} >> ${{ github.workspace }}/metadata/unsigned_prov.json
23+
go run github.com/slsa-framework/slsa-source-poc/sourcetool@dc0d9d3269c17312141a64a28fbda43aae9a3274 checklevelprov --prev_bundle_path ${{ github.workspace }}/metadata/prev_bundle.intoto.jsonl --commit ${{ github.sha }} --prev_commit ${{ github.event.before }} --owner ${{ github.repository_owner }} --repo ${{ github.event.repository.name }} --branch ${{ github.ref_name }} --output_unsigned_bundle ${{ github.workspace }}/metadata/unsigned_bundle.jsonl
2424
shell: bash
2525
- id: summary
2626
run: |
2727
echo "## Unsigned Provenance" >> $GITHUB_STEP_SUMMARY
28-
cat ${{ github.workspace }}/metadata/unsigned_prov.json >> $GITHUB_STEP_SUMMARY
28+
cat ${{ github.workspace }}/metadata/unsigned_bundle.jsonl >> $GITHUB_STEP_SUMMARY
2929
shell: bash
3030
- id: install_witness
3131
# This is a bit of a hack, running witness happens to also install it.
@@ -38,17 +38,17 @@ runs:
3838
- id: sign_prov
3939
# Use witness to sign that provenance...
4040
run: |
41-
witness sign -f ${{ github.workspace }}/metadata/unsigned_prov.json -t "application/vnd.in-toto+json" -o ${{ github.workspace }}/metadata/signed_prov.json \
41+
witness sign -f ${{ github.workspace }}/metadata/unsigned_bundle.jsonl -t "application/vnd.in-toto+json" -o ${{ github.workspace }}/metadata/signed_bundle.jsonl \
4242
--signer-fulcio-url https://fulcio.sigstore.dev \
4343
--signer-fulcio-oidc-client-id sigstore \
4444
--signer-fulcio-oidc-issuer https://oauth2.sigstore.dev/auth \
4545
--timestamp-servers https://freetsa.org/tsr
4646
echo "## Signed Prov" >> $GITHUB_STEP_SUMMARY
47-
cat ${{ github.workspace }}/metadata/signed_prov.json >> $GITHUB_STEP_SUMMARY
47+
cat ${{ github.workspace }}/metadata/signed_bundle.jsonl >> $GITHUB_STEP_SUMMARY
4848
shell: bash
4949
- uses: slsa-framework/slsa-source-poc/actions/store_note@main
5050
with:
51-
path: ${{ github.workspace }}/metadata/signed_prov.json
51+
path: ${{ github.workspace }}/metadata/signed_bundle.jsonl
5252
- uses: actions/upload-artifact@v4
5353
if: always()
5454
with:

actions/vsa_creator/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ runs:
1616
shell: bash
1717
- id: determine_level
1818
run: |
19-
echo "source_level=$(go run github.com/slsa-framework/slsa-source-poc/sourcetool@922b9965dae9c3e8c9e2c5a5f30c720a4fe11354 checklevel --commit ${{ github.sha }} --owner ${{ github.repository_owner }} --repo ${{ github.event.repository.name }} --branch ${{ github.ref_name }} --output_unsigned_vsa ${{ github.workspace }}/metadata/unsigned_vsa.json)" >> $GITHUB_OUTPUT
19+
echo "source_level=$(go run github.com/slsa-framework/slsa-source-poc/sourcetool@dc0d9d3269c17312141a64a28fbda43aae9a3274 checklevel --commit ${{ github.sha }} --owner ${{ github.repository_owner }} --repo ${{ github.event.repository.name }} --branch ${{ github.ref_name }} --output_unsigned_vsa ${{ github.workspace }}/metadata/unsigned_vsa.json)" >> $GITHUB_OUTPUT
2020
shell: bash
2121
- id: summary
2222
run: |

0 commit comments

Comments
 (0)