.github: verify actions.lock on pull requests

This commit is contained in:
Kristoffer Dalby committed 2026-11-12 14:03:30 +01:00
1 parent 963dcf353f
commit 520eb6f9c7
1 file changed
+21
+21
View File
@@ -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