Skip to content

Commit 23f6bf5

Browse files
authored
use the tool to create the output, unsigned, vsa (#32)
Signed-off-by: Tom Hennen <[email protected]>
1 parent a16165d commit 23f6bf5

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

actions/vsa_creator/action.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,7 @@ runs:
1111
go-version: '1.23'
1212
- id: determine_level
1313
run: |
14-
echo "source_level=$(go run github.com/slsa-framework/slsa-source-poc/sourcetool@latest checklevel --commit ${{ github.sha }} --owner ${{ github.repository_owner }} --repo ${{ github.event.repository.name }} --branch ${{ github.ref_name }})" >> $GITHUB_OUTPUT
15-
shell: bash
16-
- id: create_vsa
17-
# Run the script from the action directory so it has access to the template...
18-
# TODO: determine_level just wants the plain github.repository, but create_vsa wants the URL. That's not great, we should fix it.
19-
run: |
20-
mkdir -p metadata
21-
cd ${{ github.action_path }}
22-
./create_vsa.sh ${{ github.sha }} https://github.com/${{ github.repository }} ${{ github.ref }} ${{ steps.determine_level.outputs.source_level }} > ${{ github.workspace }}/metadata/unsigned_vsa.json
14+
echo "source_level=$(go run github.com/slsa-framework/slsa-source-poc/sourcetool@latest 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
2315
shell: bash
2416
- id: summary
2517
run: |

0 commit comments

Comments
 (0)