From 5e85489bafe31e46e6f107e2791ab911fcd091a2 Mon Sep 17 00:00:00 2001 From: xa-x Date: Mon, 16 Nov 2026 01:04:00 +0300 Subject: [PATCH] Update the pinned GitHub Actions to their latest releases The v0.3.0 release run warned that actions/checkout v4 targets Node.js 20, which GitHub now forces onto Node.js 24. Every action moves to its newest release, pinned to that release's commit, and pages.yml (which still used tags) is pinned the same way. Two of the new versions change a default, and each is set back to what the workflows did before: - attest-build-provenance v4 also writes an artifact storage record when it pushes to the registry. That is an organisation feature and this repository belongs to a user, so it is turned off. - upload-pages-artifact v4 and later leave dotfiles out; site/dist has a .nojekyll file, so include-hidden-files keeps the artifact as it was. Co-Authored-By: Claude Fable 5.2 --- .github/workflows/ci.yml | 4 ++-- .github/workflows/pages.yml | 14 ++++++++------ .github/workflows/release.yml | 20 +++++++++++--------- 3 files changed, 21 insertions(+), 17 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 02fbd0a..5573a2c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,8 +23,8 @@ jobs: image: ghcr.io/tursodatabase/libsql-server:latest ports: ["8080:8080"] steps: - - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 - - uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + - uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0 with: bun-version: 1.4.4 - run: bun install --frozen-lockfile diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 54fb95b..2d14b3a 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -27,21 +27,23 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: Check out the component packages, whose docs the site includes - uses: actions/checkout@v4 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: repository: abdullah-bl/onebase-components path: site/.components - - uses: oven-sh/setup-bun@v2 + - uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0 with: bun-version: 1.4.4 - run: bun install --frozen-lockfile - run: bun site/build.ts - - uses: actions/configure-pages@v5 - - uses: actions/upload-pages-artifact@v3 + - uses: actions/configure-pages@45bfe0192ca1faeb007ade9deae92b16b8254a0d # v6.0.0 + - uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0 with: path: site/dist + # site/dist has a .nojekyll file; newer versions of this action leave dotfiles out unless asked. + include-hidden-files: true deploy: needs: build @@ -51,4 +53,4 @@ jobs: url: ${{ steps.deployment.outputs.page_url }} steps: - id: deployment - uses: actions/deploy-pages@v4 + uses: actions/deploy-pages@368f82528645a54fb793d4d04e342629a3f51346 # v5.0.1 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8d3d657..500b057 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,8 +19,8 @@ jobs: release: runs-on: ubuntu-latest steps: - - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 - - uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + - uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0 with: bun-version: 1.4.4 - name: The tag is the version in the code @@ -44,7 +44,7 @@ jobs: done cd release && sha256sum onebase-* > SHA256SUMS - name: Attest the binaries - uses: actions/attest-build-provenance@977bb373ede98d70efdf65b84cb5f73e068dcc2a # v3 + uses: actions/attest-build-provenance@4d101475d8b20a2381f78447822ac1eab6504dd8 # v4.2.2 with: subject-path: release/onebase-* - name: Publish release @@ -56,17 +56,17 @@ jobs: needs: release runs-on: ubuntu-latest steps: - - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 - - uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3 - - uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3 - - uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + - uses: docker/setup-qemu-action@99012661954931238ded8c8b007157a8430204e1 # v4.4.0 + - uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1 + - uses: docker/login-action@8aa5831fb8d48d8f76594c7ddde61ae58019f550 # v4.8.0 with: registry: ghcr.io username: ${{ github.actor }} password: ${{ github.token }} - name: Build and push id: push - uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6 + uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7.4.0 with: context: . platforms: linux/amd64,linux/arm64 @@ -75,8 +75,10 @@ jobs: ghcr.io/${{ github.repository }}:${{ github.ref_name }} ghcr.io/${{ github.repository }}:latest - name: Attest the image - uses: actions/attest-build-provenance@977bb373ede98d70efdf65b84cb5f73e068dcc2a # v3 + uses: actions/attest-build-provenance@4d101475d8b20a2381f78447822ac1eab6504dd8 # v4.2.2 with: subject-name: ghcr.io/${{ github.repository }} subject-digest: ${{ steps.push.outputs.digest }} push-to-registry: true + # A storage record is an organisation feature; this repository belongs to a user. + create-storage-record: false