From 520eb6f9c7f90bad7a5358ea818267edf4d0b4de Mon Sep 17 00:00:00 2001 From: Kristoffer Dalby Date: Thu, 12 Nov 2026 09:11:52 +0000 Subject: [PATCH] .github: verify actions.lock on pull requests --- .github/workflows/check-generated.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/check-generated.yml b/.github/workflows/check-generated.yml index e6b21597a..e8ff7edbe 100644 --- a/.github/workflows/check-generated.yml +++ b/.github/workflows/check-generated.yml @@ -61,3 +61,24 @@ jobs: else echo "✅ All generated files are up to date." fi + + # actions.lock is generated from GitHub, not from the tree, so it is + # verified upstream rather than regenerated and diffed. + actions-lock: + runs-on: ubuntu-latest + permissions: + contents: read + defaults: + run: + shell: bash + steps: + - uses: actions/checkout@v7.0.1 + with: + persist-credentials: false + - uses: NixOS/nix-installer-action@v1.0.0 + # The flake's own nixpkgs, so flake.lock moves the version rather than a + # second pin someone has to remember. + - name: Verify actions.lock + env: + GH_TOKEN: ${{ github.token }} + run: nix run --inputs-from . nixpkgs#gh-actions-lock -- --no-interactive --verify