approle: do not require secret_id (#522)

* approle: support bind_secret_id

* add changelog
This commit is contained in:
John-Michael Faircloth 2024-02-28 11:15:56 -06:00 committed by GitHub
parent d1720f055e
commit a727ce205a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 1 deletions

View file

@ -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': {