Skip to content

Commit fa7a8e3

Browse files
authored
Disable uv caching for stubsabot (#16335)
1 parent ff2ee1e commit fa7a8e3

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎.github/workflows/stubsabot.yml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ jobs:
2828
- uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
2929
with:
3030
version-file: "requirements-tests.txt"
31+
# A compromised dependency in a test job on main could poison the shared
32+
# uv cache. Restoring it here could execute attacker-controlled code
33+
# with access to stubsabot's SSH key and GitHub token.
34+
enable-cache: false
3135
- name: Git config
3236
run: |
3337
git config --global user.name stubsabot

0 commit comments

Comments
 (0)