mirror of
https://github.com/hashicorp/vault-action.git
synced 2026-04-07 04:29:26 +00:00
make "role" input optional (#291)
* make "role" input optional Per Vault documentation it doesn't have to be provided, and the auth provider's "default_role" parameter is required precisely for this case. https://www.vaultproject.io/api/auth/jwt
This commit is contained in:
parent
25c4aec690
commit
2f64a97498
2 changed files with 27 additions and 10 deletions
|
|
@ -25,7 +25,7 @@ async function retrieveToken(method, client) {
|
|||
case 'jwt': {
|
||||
/** @type {string} */
|
||||
let jwt;
|
||||
const role = core.getInput('role', { required: true });
|
||||
const role = core.getInput('role', { required: false });
|
||||
const privateKeyRaw = core.getInput('jwtPrivateKey', { required: false });
|
||||
const privateKey = Buffer.from(privateKeyRaw, 'base64').toString();
|
||||
const keyPassword = core.getInput('jwtKeyPassword', { required: false });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue