From ad4f4169c8cae63b526236134d95169027f66b26 Mon Sep 17 00:00:00 2001 From: mptfire Date: Mon, 16 Nov 2026 23:43:08 +0100 Subject: [PATCH] checks: pin actions/checkout to v5.1.0's commit and the archlinux container to its digest Supply-chain hardening from the 2026-11-16 security audit (S-1): tag-pinned actions and a floating container image are the two CI inputs that can move under a PR without any code change. Pin the action to the v5.1.0 commit (fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09, what @v5 resolves to today) and the container to the image index digest resolved on 2026-11-16 (the amd64 image inside is from 2026-11-09); bump the digest deliberately to update, and refresh archlinux-keyring first so an older base can still verify a newer packager key. Assisted-By: pi coding agent (adversarial audit, 2026-11-16) --- .github/workflows/checks.yml | 14 +++++++++++--- ci/linux-omarchy-mobile/checks.yml | 6 ++++-- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 0b4a48e6f..d44e876b9 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -24,7 +24,8 @@ jobs: name: Policy (identifiers, blobs, sign-offs) runs-on: ubuntu-24.04 steps: - - uses: actions/checkout@v5 + # actions/checkout v5.1.0 + - uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 with: fetch-depth: 0 - name: tools/pr-check @@ -40,11 +41,17 @@ jobs: tests: name: Tests (tests/all, every package) runs-on: ubuntu-24.04 - container: archlinux:latest + # archlinux image index resolved on 2026-11-16 (the amd64 image inside is + # from 2026-11-09); bump deliberately: + # docker buildx imagetools inspect archlinux:latest + container: archlinux@sha256:d4594bb2300cba11f41c2f27923eb56f63d9988909c402f9c95517d1e362c899 timeout-minutes: 45 steps: - name: Packages the tests use run: | + # An older pinned base can carry a keyring older than a packager's + # newest key; refresh it before anything else verifies signatures. + pacman -Sy --noconfirm --needed archlinux-keyring pacman -Syu --noconfirm --needed git base-devel e2fsprogs zstd lz4 openssl \ python python-dbus python-gobject dbus nodejs dtc cpio file jq busybox \ xz gzip qt6-declarative qt6-svg shellcheck rsync android-tools unzip @@ -58,7 +65,8 @@ jobs: https://archive.archlinux.org/packages/s/simdjson/simdjson-1:5.0.5-1-x86_64.pkg.tar.zst node --version fi - - uses: actions/checkout@v5 + # actions/checkout v5.1.0 + - uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 - name: A normal user (some tests check what a user may not do) run: | useradd -m ci diff --git a/ci/linux-omarchy-mobile/checks.yml b/ci/linux-omarchy-mobile/checks.yml index 183923cf4..41759b52d 100644 --- a/ci/linux-omarchy-mobile/checks.yml +++ b/ci/linux-omarchy-mobile/checks.yml @@ -26,7 +26,8 @@ jobs: runs-on: ubuntu-24.04 timeout-minutes: 60 steps: - - uses: actions/checkout@v5 + # actions/checkout v5.1.0 + - uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 with: path: linux fetch-depth: 0 @@ -36,7 +37,8 @@ jobs: # replays it, so a fix merged since then would never be seen. - name: The base, now run: git -C linux fetch --no-tags origin "+refs/heads/${{ github.event.pull_request.base.ref }}:refs/remotes/origin/base" - - uses: actions/checkout@v5 + # actions/checkout v5.1.0 + - uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 with: repository: derekross/omarchy-mobile path: omarchy-mobile