mirror of
https://github.com/hashicorp/vault-action.git
synced 2026-04-08 05:00:05 +00:00
approle: do not require secret_id (#522)
* approle: support bind_secret_id * add changelog
This commit is contained in:
parent
d1720f055e
commit
a727ce205a
2 changed files with 5 additions and 1 deletions
|
|
@ -17,7 +17,7 @@ async function retrieveToken(method, client) {
|
|||
switch (method) {
|
||||
case 'approle': {
|
||||
const vaultRoleId = core.getInput('roleId', { required: true });
|
||||
const vaultSecretId = core.getInput('secretId', { required: true });
|
||||
const vaultSecretId = core.getInput('secretId', { required: false });
|
||||
return await getClientToken(client, method, path, { role_id: vaultRoleId, secret_id: vaultSecretId });
|
||||
}
|
||||
case 'github': {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue