From f495ad34580d03b9473949af3de0cc2b3c816861 Mon Sep 17 00:00:00 2001 From: dominicusin Date: Wed, 25 Nov 2026 05:07:09 +0200 Subject: [PATCH] ci: verify pinned submodule commits before Hugo deploy --- .github/workflows/hugo.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/hugo.yml b/.github/workflows/hugo.yml index 7abf5b41..2f895b61 100644 --- a/.github/workflows/hugo.yml +++ b/.github/workflows/hugo.yml @@ -52,6 +52,15 @@ jobs: git submodule update --init themes/blowfish node scripts/ensure-awesome-sparse.cjs || true + - name: Verify pinned submodule commits + run: | + git submodule status themes/blowfish awesome > /tmp/submodules.txt || true + cat /tmp/submodules.txt + if grep -q '^+' /tmp/submodules.txt; then + echo "::error::A submodule is checked out at a different commit than the pinned gitlink" + exit 1 + fi + - name: Generate wiki navigation run: | if [ "$INCLUDE_WIKI" = "1" ]; then