mirror of
https://github.com/juanfont/headscale.git
synced 2026-11-19 20:04:32 +09:00
.github: verify actions.lock on pull requests
This commit is contained in:
1 parent
963dcf353f
commit
520eb6f9c7
1 file changed
+21
@@ -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
|
||||
Reference in new issue
Block a user