mirror of
https://github.com/hashicorp/vault-action.git
synced 2025-11-08 07:36:56 +00:00
approle: support bind_secret_id
This commit is contained in:
parent
d1720f055e
commit
14d227ff91
1 changed files with 1 additions and 1 deletions
|
|
@ -17,7 +17,7 @@ async function retrieveToken(method, client) {
|
||||||
switch (method) {
|
switch (method) {
|
||||||
case 'approle': {
|
case 'approle': {
|
||||||
const vaultRoleId = core.getInput('roleId', { required: true });
|
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 });
|
return await getClientToken(client, method, path, { role_id: vaultRoleId, secret_id: vaultSecretId });
|
||||||
}
|
}
|
||||||
case 'github': {
|
case 'github': {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue