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) {