File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change 5151 # https://github.com/pypa/setuptools/issues/3269
5252 export DEB_PYTHON_INSTALL_LAYOUT=deb
5353 fi
54+
55+ # Set up virtual environment
5456 python3 -m venv venv
5557 source venv/bin/activate
56- python3 -m pip install -r "$GITHUB_ACTION_PATH/requirements.txt"
58+
59+ # Download artifact
60+ python3 -m pip download -r "$GITHUB_ACTION_PATH/requirements.txt"
61+
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
67+
68+ # Install artifact
69+ python3 -m pip install commit_check-*.whl PyGithub-*.whl
70+
5771 python3 "$GITHUB_ACTION_PATH/main.py"
5872 env :
5973 MESSAGE : ${{ inputs.message }}
You can’t perform that action at this time.
0 commit comments