build: lint: Consider commits by expired keys as valid
Signed-off-by: Christoph Heiss <christoph@c8h4.io>
This commit is contained in:
parent
416710c7c8
commit
3bf53080cf
5
Makefile
5
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; \
|
||||
|
|
Loading…
Reference in a new issue