From 18fb16c63c89a9292215d7a11cdd8cf635d547c6 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Mon, 2 Nov 2026 01:01:38 +0000 Subject: [PATCH] Pin checkout v7, BuildKit, and the Arch image. actions/checkout moves to v7.0.1, which is on main. The recipes BuildKit image uses the same digest as release, and menci/archlinuxarm:latest is pinned to the index digest resolved on 2026-11-02. Release scripts take the image digest from the environment instead of an inline expression. Co-authored-by: aien-spark --- .github/workflows/ci.yml | 20 ++++++++++++-------- .github/workflows/release.yml | 13 ++++++++----- 2 files changed, 20 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b63cd39..b34eab5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,7 +19,7 @@ jobs: pins: runs-on: ubuntu-24.04-arm steps: - - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - run: sh scripts/check-pins.sh @@ -28,7 +28,7 @@ jobs: runs-on: ubuntu-24.04-arm timeout-minutes: 30 steps: - - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - name: Birth omc from the seed (scripts/omc-from-seed.sh) @@ -77,7 +77,7 @@ jobs: runs-on: ubuntu-24.04-arm timeout-minutes: 30 steps: - - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - name: Fetch the pinned archive once @@ -122,7 +122,7 @@ jobs: runs-on: ubuntu-24.04-arm timeout-minutes: 30 steps: - - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - uses: cachix/install-nix-action@75c75c31ebece974e48ebc36b4ad125bd97bd97b # v31.11.3 @@ -149,7 +149,7 @@ jobs: runs-on: ubuntu-24.04-arm timeout-minutes: 90 steps: - - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - name: Install Guix (Ubuntu package) and authorize the official substitute servers @@ -183,12 +183,13 @@ jobs: runs-on: ubuntu-24.04-arm timeout-minutes: 30 steps: - - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false + # menci/archlinuxarm:latest index digest, resolved 2026-11-02 (tag last pushed 2026-11-01). - name: makepkg in Arch Linux ARM (menci/archlinuxarm), .SRCINFO must match run: | - docker run --rm -v "$PWD/aur:/src:ro" menci/archlinuxarm:latest bash -euc ' + docker run --rm -v "$PWD/aur:/src:ro" menci/archlinuxarm@sha256:627906fdc1d96fb8d83ba7b38906344577cbd108375b1724ce99e3b0991f8f33 bash -euc ' uname -m # pacman 7 sandboxes downloads with Landlock, which the runner kernel refuses inside docker. sed -i "s/^\[options\]/[options]\nDisableSandbox/" /etc/pacman.conf @@ -209,10 +210,13 @@ jobs: runs-on: ubuntu-24.04-arm timeout-minutes: 30 steps: - - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false + # Same BuildKit index digest as release.yml (moby/buildkit:buildx-stable-1, v0.33.1). - uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0 + with: + driver-opts: image=moby/buildkit@sha256:cec9f139f45e93c5c69c60f8b07cfad9f43f4ef6b6a6cd917527fea5ff2e3dea - name: Build the image from the seed inside BusyBox run: docker buildx build --platform linux/arm64 --load -t omc:ci docker/ - name: The image compiles examples/hello.om diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9786f90..ac71c6b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,7 +14,7 @@ jobs: permissions: contents: read steps: - - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - name: Birth omc from the seed @@ -53,7 +53,7 @@ jobs: digest: ${{ steps.push.outputs.digest }} tag: ${{ steps.tag.outputs.tag }} steps: - - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0 @@ -99,9 +99,11 @@ jobs: subject-digest: ${{ steps.push.outputs.digest }} push-to-registry: true - name: The pushed image (by digest) compiles hello.om + env: + DIGEST: ${{ steps.push.outputs.digest }} run: | set -eu - docker run --rm -i "ghcr.io/aien-dev/omc@${{ steps.push.outputs.digest }}" < examples/hello.om > hello + docker run --rm -i "ghcr.io/aien-dev/omc@$DIGEST" < examples/hello.om > hello chmod +x hello; out=$(./hello); echo "hello prints: $out"; [ "$out" = "omega 55" ] publish: @@ -111,7 +113,7 @@ jobs: contents: write packages: read steps: - - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0 @@ -126,13 +128,14 @@ jobs: - name: gh attestation verify (binary, .deb, SBOM, image) env: GH_TOKEN: ${{ github.token }} + DIGEST: ${{ needs.image.outputs.digest }} run: | set -eu cd dist && sha256sum -c SHA256SUMS gh attestation verify omc-linux-arm64 --repo "$GITHUB_REPOSITORY" gh attestation verify omc_*_arm64.deb --repo "$GITHUB_REPOSITORY" gh attestation verify omc-linux-arm64 --repo "$GITHUB_REPOSITORY" --predicate-type https://spdx.dev/Document/v2.3 - gh attestation verify "oci://ghcr.io/aien-dev/omc@${{ needs.image.outputs.digest }}" --repo "$GITHUB_REPOSITORY" + gh attestation verify "oci://ghcr.io/aien-dev/omc@$DIGEST" --repo "$GITHUB_REPOSITORY" - name: Publish the GitHub Release env: GH_TOKEN: ${{ github.token }}