From 1a8566e4991e0342b47105cf829359539fc78d98 Mon Sep 17 00:00:00 2001 From: Gokalp Ozcan Date: Mon, 31 Jul 2023 15:52:36 +1000 Subject: [PATCH] rename parameter path to auth_path, set its default to 'jwt-github-actions' --- action.yml | 5 +++-- src/auth.js | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/action.yml b/action.yml index 367062d..cd79007 100644 --- a/action.yml +++ b/action.yml @@ -17,8 +17,9 @@ inputs: role: description: 'Vault role for specified auth method' required: false - path: - description: 'Custom Vault path, if the auth method was mounted at a different path' + auth_path: + description: 'Custom Vault auth path, if the auth method was mounted at a different path' + default: 'jwt-github-actions' required: false token: description: 'The Vault Token to be used to authenticate with Vault' diff --git a/src/auth.js b/src/auth.js index 331083a..bca9f58 100644 --- a/src/auth.js +++ b/src/auth.js @@ -11,7 +11,7 @@ const defaultKubernetesTokenPath = '/var/run/secrets/kubernetes.io/serviceaccoun * @param {import('got').Got} client */ async function retrieveToken(method, client) { - let path = core.getInput('path', { required: false }) || method; + let path = core.getInput('auth_path', { required: false }) || method; path = `v1/auth/${path}/login` switch (method) {