Offer additional logging when key doesn't match regex

This commit is contained in:
Sean Killeen 2021-03-17 11:57:02 -04:00 committed by GitHub
parent 4b6f4eb000
commit aa78d71de6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -53,6 +53,7 @@ try {
const parts = key.match(/\bgithub\.com[:/]([_.a-z0-9-]+\/[_.a-z0-9-]+)/);
if (!parts) {
console.log(`WARN: key '{key}' does not match the appropriate format; skipping git configuration`);
return;
}