Skip to content

Commit

Permalink
try using go tool from action (#21)
Browse files Browse the repository at this point in the history
Signed-off-by: Tom Hennen <tomhennen@google.com>
  • Loading branch information
TomHennen authored Jan 24, 2025
1 parent d42b8d7 commit 7176dcd
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions actions/vsa_creator/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ runs:
using: "Composite"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.24'
- id: determine_level
# 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?
run: |
cd ${{ github.action_path }}
echo "source_level=$(./determine_source_level_gh.sh ${{ github.sha }} ${{ github.repository }} ${{ github.ref_name }})" >> $GITHUB_OUTPUT
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
shell: bash
- id: create_vsa
# Run the script from the action directory so it has access to the template...
Expand Down

0 comments on commit 7176dcd

Please sign in to comment.