mirror of
https://github.com/actions/setup-node
synced 2025-04-09 18:35:51 +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:
|
||||
description: The user to use for auth
|
||||
auth-password:
|
||||
description: The password to auth with
|
||||
auth-access-token:
|
||||
description: The access token to auth with if not using password
|
||||
description: The password or access token to use for auth
|
||||
# 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
|
||||
# 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
|
||||
const authUser: string = core.getInput('auth-user');
|
||||
const authPassword: string = core.getInput('auth-password');
|
||||
const authAccessToken: string = core.getInput('auth-access-token');
|
||||
const authPass: string = authPassword || authAccessToken;
|
||||
nodeAuthToken = await getAuthToken(authUrl, authUser, authPass);
|
||||
nodeAuthToken = await getAuthToken(authUrl, authUser, authPassword);
|
||||
}
|
||||
|
||||
// Remove http: or https: from front of registry.
|
||||
|
|
Loading…
Add table
Reference in a new issue