Skip to content

Commit c9d83d1

Browse files
authored
ci: disable cache for publish workflow (#115)
1 parent 3f978ab commit c9d83d1

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/publish.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,15 @@ jobs:
1919
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
2020
with:
2121
node-version: 24
22+
# disable cache, to avoid cache poisoning (https://docs.zizmor.sh/audits/#cache-poisoning)
23+
package-manager-cache: false
2224
- run: corepack enable
2325
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
2426
with:
2527
node-version: 24
2628
registry-url: "https://registry.npmjs.org"
27-
cache: "pnpm"
28-
cache-dependency-path: "**/pnpm-lock.yaml"
29+
# disable cache, to avoid cache poisoning (https://docs.zizmor.sh/audits/#cache-poisoning)
30+
package-manager-cache: false
2931
- run: pnpm install --frozen-lockfile --prefer-offline
3032
- run: pnpm build
3133
- run: node scripts/publish.ts "$GITHUB_REF_NAME"

0 commit comments

Comments
 (0)