Skip to content

Commit 7176dcd

Browse files
authored
try using go tool from action (#21)
Signed-off-by: Tom Hennen <[email protected]>
1 parent d42b8d7 commit 7176dcd

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

actions/vsa_creator/action.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@ runs:
66
using: "Composite"
77
steps:
88
- uses: actions/checkout@v4
9+
- uses: actions/setup-go@v5
10+
with:
11+
go-version: '1.24'
912
- id: determine_level
10-
# TODO: This doesn't currently work if there are no rulesets enabled. Using the tool from https://github.com/slsa-framework/slsa-source-poc/pull/6 should fix that?
1113
run: |
12-
cd ${{ github.action_path }}
13-
echo "source_level=$(./determine_source_level_gh.sh ${{ github.sha }} ${{ github.repository }} ${{ github.ref_name }})" >> $GITHUB_OUTPUT
14+
echo "source_level=$(go run github.com/slsa-framework/slsa-source-poc/sourcetool@main --commit ${{ github.sha }} --owner ${{ github.repository_owner }} --repo ${{ github.event.repository.name }} --branch ${{ github.ref_name }})" >> $GITHUB_OUTPUT
1415
shell: bash
1516
- id: create_vsa
1617
# Run the script from the action directory so it has access to the template...

0 commit comments

Comments
 (0)