keyring: validate: allow maintainers to have no keys

Some maintainers appear to have removed their PGP keys, which causes
"gpg --import" during "make validate-keyring" to fail. The solution is
to switch to a non-fatal warning if no keys were imported.

Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
(cherry picked from commit 936a59b07f)
Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
This commit is contained in:
Aleksa Sarai
2026-03-05 00:42:04 +11:00
parent efc715fb7c
commit 732adedbe4
+4 -1
View File
@@ -47,7 +47,10 @@ echo "------------------------------------------------------------"
# Create a dummy gpg keyring from the set of MAINTAINERS.
while IFS="" read -r username || [ -n "$username" ]; do
curl -sSL "https://github.com/$username.gpg" | gpg_user "$username" --import
keydata="$(curl -sSL "https://github.com/$username.gpg")"
if ! gpg_user "$username" --import <<<"$keydata"; then
log "WARNING: $username does not have any GPG keys on GitHub."
fi
done < <(printf '%s\n' "${maintainers[@]}")
# Make sure all of the keys in the keyring have a github=... comment.