Skip to content

Commit 8f459ab

Browse files
authored
make sure metadata dir exists (#46)
Signed-off-by: Tom Hennen <[email protected]>
1 parent 8d50a54 commit 8f459ab

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

actions/slsa_with_provenance/action.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,14 @@ runs:
99
- uses: actions/setup-go@v5
1010
with:
1111
go-version: '1.23'
12+
- id: setup
13+
run: mkdir -p metadata
1214
- uses: slsa-framework/slsa-source-poc/actions/get_note@main
1315
with:
1416
commit: ${{ github.event.before }}
1517
path: ${{ github.workspace }}/metadata/prev_bundle.intoto.jsonl
1618
- id: determine_level
1719
run: |
18-
mkdir -p metadata
1920
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
2021
shell: bash
2122
- id: summary

actions/vsa_creator/action.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@ runs:
99
- uses: actions/setup-go@v5
1010
with:
1111
go-version: '1.23'
12+
- id: setup
13+
run: mkdir -p metadata
1214
- id: determine_level
1315
run: |
14-
mkdir -p metadata
1516
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
1617
shell: bash
1718
- id: summary

0 commit comments

Comments
 (0)