Skip to content

Commit d6e4379

Browse files
authored
Merge pull request #2410 from lprimak/pin-python-hashes
chore: pin python pre-commit workflow dependency with hash
2 parents e5362ae + 60ee386 commit d6e4379

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/pre-commit.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,17 @@ jobs:
3939
architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified
4040
- name: Install dependencies # https://pip.pypa.io/en/stable/
4141
run: |
42-
python -m pip install --upgrade pip==25.3
43-
pip install pre-commit==4.5.0
42+
echo "pre-commit==4.5.0 --hash=sha256:25e2ce09595174d9c97860a95609f9f852c0614ba602de3561e267547f2335e1
43+
cfgv==3.5.0 --hash=sha256:a8dc6b26ad22ff227d2634a65cb388215ce6cc96bbcc5cfde7641ae87e8dacc0
44+
identify==2.6.1 --hash=sha256:53863bcac7caf8d2ed85bd20312ea5dcfc22226800f6d6881f232d861db5a8f0
45+
nodeenv==1.9.1 --hash=sha256:ba11c9782d29c27c70ffbdda2d7415098754709be8a7056d79a737cd901155c9
46+
pyyaml==6.0.3 --hash=sha256:c458b6d084f9b935061bc36216e8a69a7e293a2f1e68bf956dcd9e6cbcd143f5
47+
virtualenv==20.35.4 --hash=sha256:c21c9cede36c9753eeade68ba7d523529f228a403463376cf821eaae2b650f1b
48+
distlib==0.4.0 --hash=sha256:9659f7d87e46584a30b5780e43ac7a2143098441670ff0a49d5f9034c54a6c16
49+
filelock==3.20.0 --hash=sha256:339b4732ffda5cd79b13f4e2711a31b0365ce445d95d243bb996273d072546a2
50+
platformdirs==4.5.0 --hash=sha256:e578a81bb873cbb89a41fcc904c7ef523cc18284b7e3b3ccf06aca1403b7ebd3" \
51+
> pre-commit-requirements.txt
52+
pip install --require-hashes -r pre-commit-requirements.txt
4453
- name: set PY
4554
run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> "$GITHUB_ENV"
4655
- uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0

0 commit comments

Comments
 (0)