From 3bf53080cfa55b84cb5046ed0000b1112afad2c5 Mon Sep 17 00:00:00 2001 From: Christoph Heiss Date: Thu, 21 Sep 2023 19:51:05 +0200 Subject: [PATCH] build: lint: Consider commits by expired keys as valid Signed-off-by: Christoph Heiss --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index c992199..30ac58b 100644 --- a/Makefile +++ b/Makefile @@ -27,8 +27,11 @@ lint: $(call nix-run,shellcheck,--shell bash extra/bin/*.sh) f() { \ local result=0; \ + local ret; \ for h in $$(git log --format=%h | tac); do \ - if ! git verify-commit $$h 2>/dev/null; then \ + git verify-commit --raw $$h 2>&1 | grep -qP '^\[GNUPG:\] VALIDSIG (\S+ )+9C561D6430B28D6BDCBC9CEB73D5E7FDEE3DE49A$$'; \ + ret=$$?; \ + if [ $$ret -ne 0 ]; then \ echo "[!] found unsigned commit: $$h"; \ result=1; \ fi; \