Skip to content

Commit 2500d8e

Browse files
committed
Pin actions/setup-python to hash
GitHub has recently added support for requiring pinning hashes in actions (https://github.blog/changelog/2025-08-15-github-actions-policy-now-supports-blocking-and-sha-pinning-actions/). This is more secure - tags can be changed - and prevents CI from breaking on a bad update. The policy applies transitively to all used actions, which breaks this action when the policy is enabled (https://github.com/astral-sh/uv/actions/runs/17008660079/job/48221734296). This PR switches to using a hash for the action. If desired, renovate can be configured to update the hash (`pinDigests: true`)
1 parent d417ba7 commit 2500d8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ runs:
139139
- name: Install Python 3
140140
if: steps.pre-installed-python.outputs.python-path == ''
141141
id: new-python
142-
uses: actions/setup-python@v5
142+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
143143
with:
144144
python-version: 3.x
145145
- name: Create Docker container action

0 commit comments

Comments
 (0)