Skip to content

Commit c02105b

Browse files
committed
Fix cache poisoning vector in test.yml
Fixes Zizmor error[cache-poisoning]: runtime artifacts potentially vulnerable to a cache poisoning attack.
1 parent 375ca27 commit c02105b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ jobs:
6060
${{ matrix.python-version }}-v1-${{ hashFiles('**/pyproject.toml') }}-${{ hashFiles('**/tox.ini') }}
6161
restore-keys: |
6262
${{ matrix.python-version }}-v1-
63+
lookup-only: true
6364

6465
- name: Install dependencies
6566
run: |
@@ -149,6 +150,7 @@ jobs:
149150
${{ matrix.python-version }}-v1-${{ hashFiles('**/pyproject.toml') }}-${{ hashFiles('**/tox.ini') }}
150151
restore-keys: |
151152
${{ matrix.python-version }}-v1-
153+
lookup-only: true
152154

153155
- name: Install gdal-bin (for postgis)
154156
run: |
@@ -200,6 +202,7 @@ jobs:
200202
${{ matrix.python-version }}-v1-${{ hashFiles('**/pyproject.toml') }}-${{ hashFiles('**/tox.ini') }}
201203
restore-keys: |
202204
${{ matrix.python-version }}-v1-
205+
lookup-only: true
203206

204207
- name: Install dependencies
205208
run: |
@@ -240,6 +243,7 @@ jobs:
240243
${{ matrix.python-version }}-v1-${{ hashFiles('**/pyproject.toml') }}-${{ hashFiles('**/tox.ini') }}
241244
restore-keys: |
242245
${{ matrix.python-version }}-v1-
246+
lookup-only: true
243247

244248
- name: Install dependencies
245249
run: |

0 commit comments

Comments
 (0)