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:
5151 # https://github.com/pypa/setuptools/issues/3269
5252 export DEB_PYTHON_INSTALL_LAYOUT=deb
5353 fi
54+
55+ # Set up virtual environment
56+ python3 -m venv venv
57+ source venv/bin/activate
58+
5459 # Download artifact
5560 python3 -m pip download -r "$GITHUB_ACTION_PATH/requirements.txt"
5661
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
5967
6068 # Install artifact
6169 python3 -m pip install commit_check-*.whl PyGithub-*.whl
62- python3 -m venv venv
63- source venv/bin/activate
70+
6471 python3 "$GITHUB_ACTION_PATH/main.py"
6572 env :
6673 MESSAGE : ${{ inputs.message }}
You can’t perform that action at this time.
0 commit comments