Skip to content

Commit 8391131

Browse files
committed
fix: create virtual env then verify attestations
1 parent c9a3b05 commit 8391131

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

action.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff 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 }}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy