mirror of
https://github.com/actions/setup-node.git
synced 2025-04-22 09:21:00 +00:00
remove access token parameter since we can just pass it with auth password:
This commit is contained in:
parent
67e3e414a2
commit
45faa6726d
2 changed files with 2 additions and 6 deletions
|
@ -19,9 +19,7 @@ inputs:
|
||||||
auth-user:
|
auth-user:
|
||||||
description: The user to use for auth
|
description: The user to use for auth
|
||||||
auth-password:
|
auth-password:
|
||||||
description: The password to auth with
|
description: The password or access token to use for auth
|
||||||
auth-access-token:
|
|
||||||
description: The access token to auth with if not using password
|
|
||||||
# TODO: add input to control forcing to pull from cloud or dist.
|
# TODO: add input to control forcing to pull from cloud or dist.
|
||||||
# escape valve for someone having issues or needing the absolute latest which isn't cached yet
|
# escape valve for someone having issues or needing the absolute latest which isn't cached yet
|
||||||
# Deprecated option, do not use. Will not be supported after October 1, 2019
|
# Deprecated option, do not use. Will not be supported after October 1, 2019
|
||||||
|
|
|
@ -76,9 +76,7 @@ async function writeRegistryToFile(
|
||||||
// Check if username and password/token provided
|
// Check if username and password/token provided
|
||||||
const authUser: string = core.getInput('auth-user');
|
const authUser: string = core.getInput('auth-user');
|
||||||
const authPassword: string = core.getInput('auth-password');
|
const authPassword: string = core.getInput('auth-password');
|
||||||
const authAccessToken: string = core.getInput('auth-access-token');
|
nodeAuthToken = await getAuthToken(authUrl, authUser, authPassword);
|
||||||
const authPass: string = authPassword || authAccessToken;
|
|
||||||
nodeAuthToken = await getAuthToken(authUrl, authUser, authPass);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Remove http: or https: from front of registry.
|
// Remove http: or https: from front of registry.
|
||||||
|
|
Loading…
Add table
Reference in a new issue