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