Skip to content

Commit eb1b512

Browse files
authored
fix(ci): prevent cache poisoning (#798)
1 parent 8a68464 commit eb1b512

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/build-plugin.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,11 @@ jobs:
3333
with:
3434
persist-credentials: false
3535

36-
- uses: actions/setup-node@v4
36+
- uses: actions/setup-node@v5
3737
with:
3838
node-version-file: .nvmrc
39+
# Releases should be isolated. PRs can poison the cache.
40+
package-manager-cache: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} # zizmor: ignore[cache-poisoning] # zizmor is wrong now
3941
- run: yarn install --frozen-lockfile
4042
- run: yarn run build
4143

0 commit comments

Comments
 (0)