mirror of
https://github.com/hashicorp/vault-action.git
synced 2025-11-08 23:56:55 +00:00
chore: make role and secret required in approle
This commit is contained in:
parent
3872511436
commit
cb0fefd327
2 changed files with 4 additions and 6 deletions
|
|
@ -4,7 +4,6 @@ const got = require('got');
|
|||
|
||||
const AUTH_METHODS = ['approle', 'token'];
|
||||
async function exportSecrets() {
|
||||
|
||||
const vaultUrl = core.getInput('url', { required: true });
|
||||
const vaultNamespace = core.getInput('namespace', { required: false });
|
||||
|
||||
|
|
@ -19,8 +18,8 @@ async function exportSecrets() {
|
|||
let vaultToken = null;
|
||||
switch (vaultMethod) {
|
||||
case 'approle':
|
||||
const vaultRoleId = core.getInput('roleId', { required: false });
|
||||
const vaultSecretId = core.getInput('secretId', { required: false });
|
||||
const vaultRoleId = core.getInput('roleId', { required: true });
|
||||
const vaultSecretId = core.getInput('secretId', { required: true });
|
||||
core.debug('Try to retrieve Vault Token from approle');
|
||||
var options = {
|
||||
headers: {},
|
||||
|
|
|
|||
5
dist/index.js
vendored
5
dist/index.js
vendored
|
|
@ -4067,7 +4067,6 @@ const got = __webpack_require__(77);
|
|||
|
||||
const AUTH_METHODS = ['approle', 'token'];
|
||||
async function exportSecrets() {
|
||||
|
||||
const vaultUrl = core.getInput('url', { required: true });
|
||||
const vaultNamespace = core.getInput('namespace', { required: false });
|
||||
|
||||
|
|
@ -4082,8 +4081,8 @@ async function exportSecrets() {
|
|||
let vaultToken = null;
|
||||
switch (vaultMethod) {
|
||||
case 'approle':
|
||||
const vaultRoleId = core.getInput('roleId', { required: false });
|
||||
const vaultSecretId = core.getInput('secretId', { required: false });
|
||||
const vaultRoleId = core.getInput('roleId', { required: true });
|
||||
const vaultSecretId = core.getInput('secretId', { required: true });
|
||||
core.debug('Try to retrieve Vault Token from approle');
|
||||
var options = {
|
||||
headers: {},
|
||||
|
|
|
|||
Loading…
Reference in a new issue