mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
Merge pull request #5144 from cyphar/keyring-check-no-keys
keyring: validate: allow maintainers to have no keys
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