From 45faa6726d8e2066a6464050cb8022a0092a429e Mon Sep 17 00:00:00 2001 From: Edward Romero Date: Tue, 23 Jun 2020 20:10:40 -0400 Subject: [PATCH] remove access token parameter since we can just pass it with auth password: --- action.yml | 4 +--- src/authutil.ts | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/action.yml b/action.yml index f97734bc..240d7d5d 100644 --- a/action.yml +++ b/action.yml @@ -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 diff --git a/src/authutil.ts b/src/authutil.ts index e5b4a7c7..b4d45b94 100644 --- a/src/authutil.ts +++ b/src/authutil.ts @@ -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.