|
54 | 54 | - uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0 |
55 | 55 | with: |
56 | 56 | node-version: 22 |
| 57 | + # setup-node v6 enables dependency caching by default when it |
| 58 | + # detects a package manager — a cache-poisoning vector, worst in the |
| 59 | + # jobs that mint App tokens or publish. Disabled on every setup-node |
| 60 | + # step in this workflow (also keeps pre-v6 behavior). |
| 61 | + package-manager-cache: false |
57 | 62 | - name: Install deps for version scripts |
58 | 63 | run: npm install --no-audit --no-fund |
59 | 64 | - name: Compute version and tag |
@@ -128,6 +133,7 @@ jobs: |
128 | 133 | - uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0 |
129 | 134 | with: |
130 | 135 | node-version: 22 |
| 136 | + package-manager-cache: false |
131 | 137 | registry-url: "https://registry.npmjs.org" |
132 | 138 | - name: Install Python |
133 | 139 | uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0 |
@@ -190,6 +196,7 @@ jobs: |
190 | 196 | - uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0 |
191 | 197 | with: |
192 | 198 | node-version: 22 |
| 199 | + package-manager-cache: false |
193 | 200 | - name: Install Python |
194 | 201 | uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0 |
195 | 202 | with: |
@@ -270,6 +277,7 @@ jobs: |
270 | 277 | - uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0 |
271 | 278 | with: |
272 | 279 | node-version: 22 |
| 280 | + package-manager-cache: false |
273 | 281 | - name: Setup |
274 | 282 | run: npm install --no-audit --no-fund |
275 | 283 | - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 |
@@ -345,6 +353,7 @@ jobs: |
345 | 353 | - uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0 |
346 | 354 | with: |
347 | 355 | node-version: 22 |
| 356 | + package-manager-cache: false |
348 | 357 | - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 |
349 | 358 | with: |
350 | 359 | pattern: spm-artifacts-* |
@@ -419,6 +428,7 @@ jobs: |
419 | 428 | - uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0 |
420 | 429 | with: |
421 | 430 | node-version: 22 |
| 431 | + package-manager-cache: false |
422 | 432 | registry-url: "https://registry.npmjs.org" |
423 | 433 | - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 |
424 | 434 | with: |
@@ -482,6 +492,7 @@ jobs: |
482 | 492 | - uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0 |
483 | 493 | with: |
484 | 494 | node-version: 22 |
| 495 | + package-manager-cache: false |
485 | 496 | - name: Assert ios-spm manifest pins this release |
486 | 497 | run: | |
487 | 498 | # Guard against the tag pointing at a STALE manifest — e.g. a |
|
0 commit comments