mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
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:
@@ -47,7 +47,10 @@ echo "------------------------------------------------------------"
|
|||||||
|
|
||||||
# Create a dummy gpg keyring from the set of MAINTAINERS.
|
# Create a dummy gpg keyring from the set of MAINTAINERS.
|
||||||
while IFS="" read -r username || [ -n "$username" ]; do
|
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[@]}")
|
done < <(printf '%s\n' "${maintainers[@]}")
|
||||||
|
|
||||||
# Make sure all of the keys in the keyring have a github=... comment.
|
# Make sure all of the keys in the keyring have a github=... comment.
|
||||||
|
|||||||
Reference in New Issue
Block a user