diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 920c6eca..275bc6f1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -109,7 +109,7 @@ jobs: install: "true" - name: Run shard ${{ matrix.shard }}/4 run: node scripts/run-tests.mjs --shard ${{ matrix.shard }}/4 --json shard-22-${{ matrix.shard }}.json - - uses: actions/upload-artifact@v4 + - uses: actions/upload-artifact@v7 if: always() with: name: test-shard-22-${{ matrix.shard }} @@ -160,7 +160,7 @@ jobs: with: node-version: 22 install: "false" - - uses: actions/download-artifact@v4 + - uses: actions/download-artifact@v8 with: pattern: test-shard-* path: shards @@ -182,7 +182,7 @@ jobs: - uses: foundry-rs/foundry-toolchain@dba66c27052e63476d886f22216e119ba7e615bf # v1 with: version: stable - - uses: actions/cache@v4 + - uses: actions/cache@v6 with: path: | ~/.foundry/cache @@ -243,7 +243,7 @@ jobs: - name: Deploy material identity (sha256, printed for the run log) run: sha256sum soroban/commitment-anchor/target/wasm32-unknown-unknown/release/cg_commitment_anchor.wasm - name: Upload deploy material - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: cg-commitment-anchor-wasm path: soroban/commitment-anchor/target/wasm32-unknown-unknown/release/cg_commitment_anchor.wasm diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 1b870423..edacfb0b 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -31,11 +31,11 @@ jobs: with: fetch-depth: 1 persist-credentials: false - - uses: github/codeql-action/init@74c1aea9df7c0f02e9b7bfe4a8935abf2e5e3aa6 # v3 + - uses: github/codeql-action/init@915412ff23e8b7659517e607487dbeae018f2934 # v4.39.5 with: languages: ${{ matrix.language }} build-mode: none queries: security-and-quality - - uses: github/codeql-action/analyze@74c1aea9df7c0f02e9b7bfe4a8935abf2e5e3aa6 # v3 + - uses: github/codeql-action/analyze@915412ff23e8b7659517e607487dbeae018f2934 # v4.39.5 with: category: "/language:${{ matrix.language }}" diff --git a/.github/workflows/dde.yml b/.github/workflows/dde.yml index 87d4a90f..fb0dfca8 100644 --- a/.github/workflows/dde.yml +++ b/.github/workflows/dde.yml @@ -117,7 +117,7 @@ jobs: # a green-shaped run whose reports silently went missing — evidence is # fail-closed, not best-effort. - name: Upload runner reports (SDK + wire) as run artifacts - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: dde-runner-reports path: | diff --git a/.github/workflows/dependency-review.yml b/.github/workflows/dependency-review.yml index 03548251..ac8d1ebf 100644 --- a/.github/workflows/dependency-review.yml +++ b/.github/workflows/dependency-review.yml @@ -42,7 +42,7 @@ jobs: fi - name: Dependency review (high and above) if: steps.graph.outputs.enabled == 'true' - uses: actions/dependency-review-action@2031cfc080254a8a887f58cffee85186f0e49e48 # v4.9.0 + uses: actions/dependency-review-action@bbc44d14a204704ccc493733616cd1e93a0321ec # v5.0.1 with: fail-on-severity: high comment-summary-in-pr: always diff --git a/.github/workflows/pages-deploy.yml b/.github/workflows/pages-deploy.yml index 835fdac2..42c1dfc6 100644 --- a/.github/workflows/pages-deploy.yml +++ b/.github/workflows/pages-deploy.yml @@ -42,8 +42,8 @@ jobs: ref: ${{ inputs.ref || github.ref }} fetch-depth: 1 persist-credentials: false - - uses: actions/configure-pages@v5 - - uses: actions/upload-pages-artifact@v3 + - uses: actions/configure-pages@v6 + - uses: actions/upload-pages-artifact@v5 with: path: docs deploy: @@ -61,7 +61,7 @@ jobs: fetch-depth: 1 persist-credentials: false - id: deployment - uses: actions/deploy-pages@v4 + uses: actions/deploy-pages@v5 - name: Post-deploy smoke (live URL) run: node scripts/smoke-pages.mjs "${{ steps.deployment.outputs.page_url }}" - name: Summary diff --git a/test/ci/workflow-yaml-contract.test.js b/test/ci/workflow-yaml-contract.test.js index 4a22fb4f..dcd0472c 100644 --- a/test/ci/workflow-yaml-contract.test.js +++ b/test/ci/workflow-yaml-contract.test.js @@ -335,6 +335,9 @@ test("dde artifact contract negative controls: each mutation applies AND bites, // newline-terminated `from` needles would silently never apply — a // control that never lands is a control that proves nothing. const raw = readFileSync(join(REPO, ".github/workflows/dde.yml"), "utf8").replaceAll("\r\n", "\n"); + // Derive the pin from the live workflow so a major bump cannot silently + // retire this control: a stale hard-coded needle would never apply. + const uploader = raw.match(/actions\/upload-artifact@v\d+/)?.[0]; const cases = [ { label: "retention silently drifts off 30", @@ -368,7 +371,7 @@ test("dde artifact contract negative controls: each mutation applies AND bites, }, { label: "the uploader loses its version pin", - from: "actions/upload-artifact@v4", + from: uploader, to: "actions/upload-artifact", expect: /exactly one artifact-upload step/, },