From 89063f1961e9e38540badd60807fff79853da7a5 Mon Sep 17 00:00:00 2001 From: Mihai Maruseac Date: Fri, 5 Jan 2024 10:23:33 -0800 Subject: [PATCH] Fix SLSA for ML workflow (#87) I forgot to also update this one to activate the environment the proper way. Signed-off-by: Mihai Maruseac --- .github/workflows/slsa_for_ml.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/slsa_for_ml.yml b/.github/workflows/slsa_for_ml.yml index e3b7a416..d4cb1627 100644 --- a/.github/workflows/slsa_for_ml.yml +++ b/.github/workflows/slsa_for_ml.yml @@ -42,8 +42,9 @@ jobs: env: MODEL_TYPE: ${{ github.event.inputs.model_type }} run: | - set -euo pipefail - bash .github/workflows/scripts/venv_activate.sh + set -exuo pipefail + python -m venv venv + .github/workflows/scripts/venv_activate.sh python slsa_for_models/main.py "$MODEL_TYPE" - uses: actions/upload-artifact@c7d193f32edcb7bfad88892161225aeda64e9392 # v4.0.0 with: