mirror of
https://gitea.com/actions/setup-maven.git
synced 2025-11-09 02:56:20 +08:00
Husky commit correct node modules
This commit is contained in:
21
node_modules/@octokit/rest/plugins/authentication/validate.js
generated
vendored
Normal file
21
node_modules/@octokit/rest/plugins/authentication/validate.js
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
module.exports = validateAuth;
|
||||
|
||||
function validateAuth(auth) {
|
||||
if (typeof auth === "string") {
|
||||
return;
|
||||
}
|
||||
|
||||
if (typeof auth === "function") {
|
||||
return;
|
||||
}
|
||||
|
||||
if (auth.username && auth.password) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (auth.clientId && auth.clientSecret) {
|
||||
return;
|
||||
}
|
||||
|
||||
throw new Error(`Invalid "auth" option: ${JSON.stringify(auth)}`);
|
||||
}
|
||||
Reference in New Issue
Block a user