build: lint: Consider commits by expired keys as valid

Signed-off-by: Christoph Heiss <christoph@c8h4.io>
This commit is contained in:
Christoph Heiss 2023-09-21 19:51:05 +02:00
parent 416710c7c8
commit 3bf53080cf
Signed by: c8h4
GPG key ID: 73D5E7FDEE3DE49A

View file

@ -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; \