File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -51,16 +51,23 @@ runs:
51
51
# https://github.com/pypa/setuptools/issues/3269
52
52
export DEB_PYTHON_INSTALL_LAYOUT=deb
53
53
fi
54
+
55
+ # Set up virtual environment
56
+ python3 -m venv venv
57
+ source venv/bin/activate
58
+
54
59
# Download artifact
55
60
python3 -m pip download -r "$GITHUB_ACTION_PATH/requirements.txt"
56
61
57
- # Verifying artifact attestations
58
- gh attestation verify commit_check-*.whl -R commit-check/commit-check
62
+ # Verify artifact attestations
63
+ if ! gh attestation verify commit_check-*.whl -R commit-check/commit-check; then
64
+ echo "Artifact verification failed. Aborting installation."
65
+ exit 1
66
+ fi
59
67
60
68
# Install artifact
61
69
python3 -m pip install commit_check-*.whl PyGithub-*.whl
62
- python3 -m venv venv
63
- source venv/bin/activate
70
+
64
71
python3 "$GITHUB_ACTION_PATH/main.py"
65
72
env :
66
73
MESSAGE : ${{ inputs.message }}
You can’t perform that action at this time.
0 commit comments