From 38e22e446d3be96cfe221bc77cf8d9f7bdaff51b Mon Sep 17 00:00:00 2001 From: Luke Hinds Date: Thu, 22 Feb 2024 13:40:09 +0000 Subject: [PATCH] Refactor approach Signed-off-by: Luke Hinds --- .github/workflows/train_and_inference.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/train_and_inference.yml b/.github/workflows/train_and_inference.yml index 230b7cb..56d4f4e 100644 --- a/.github/workflows/train_and_inference.yml +++ b/.github/workflows/train_and_inference.yml @@ -17,7 +17,7 @@ jobs: uses: actions/setup-python@v2 with: python-version: 3.12.2 - + - name: Install dependencies run: | python -m pip install --upgrade pip @@ -52,10 +52,10 @@ jobs: id-token: write contents: write steps: - - name: Get outputs - id: hash - run: echo "::set-output name=hash::$(echo 'hash-'$(sha256sum dataset.tgz | cut -d ' ' -f 1) 'hash-'$(sha256sum model.pth | cut -d ' ' -f 1))" - - name: Run SLSA Generator - uses: slsa-framework/slsa-github-generator/.github/workflows/generator_generic_slsa3.yml@v1.9.0 - with: - base64-subjects: ${{ steps.hash.outputs.hash }} + - name: Get outputs + id: hash + run: echo "::set-output name=hash::$(echo 'hash-'$(sha256sum dataset.tgz | cut -d ' ' -f 1) 'hash-'$(sha256sum model.pth | cut -d ' ' -f 1))" + - name: Run SLSA Generator + uses: slsa-framework/slsa-github-generator/.github/workflows/generator_generic_slsa3.yml@v1.9.0 + with: + base64-subjects: ${{ steps.hash.outputs.hash }} \ No newline at end of file