5
0
Fork 0
mirror of https://github.com/hashicorp/vault-action.git synced 2025-11-10 00:26:55 +00:00

rename parameter path to auth_path, set its default to 'jwt-github-actions'

This commit is contained in:
Gokalp Ozcan 2023-07-31 15:52:36 +10:00
parent de717b95f1
commit 1a8566e499
2 changed files with 4 additions and 3 deletions

View file

@ -17,8 +17,9 @@ inputs:
role: role:
description: 'Vault role for specified auth method' description: 'Vault role for specified auth method'
required: false required: false
path: auth_path:
description: 'Custom Vault path, if the auth method was mounted at a different path' description: 'Custom Vault auth path, if the auth method was mounted at a different path'
default: 'jwt-github-actions'
required: false required: false
token: token:
description: 'The Vault Token to be used to authenticate with Vault' description: 'The Vault Token to be used to authenticate with Vault'

View file

@ -11,7 +11,7 @@ const defaultKubernetesTokenPath = '/var/run/secrets/kubernetes.io/serviceaccoun
* @param {import('got').Got} client * @param {import('got').Got} client
*/ */
async function retrieveToken(method, 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` path = `v1/auth/${path}/login`
switch (method) { switch (method) {