mirror of
https://github.com/hashicorp/vault-action.git
synced 2025-11-10 00:26:55 +00:00
Move secret masking immediately after instantiation
This commit is contained in:
parent
c290aa607a
commit
281bdb5baf
2 changed files with 208 additions and 205 deletions
411
dist/index.js
vendored
411
dist/index.js
vendored
File diff suppressed because it is too large
Load diff
|
|
@ -70,10 +70,10 @@ async function exportSecrets() {
|
|||
}
|
||||
|
||||
const vaultToken = await retrieveToken(vaultMethod, got.extend(defaultOptions));
|
||||
core.setSecret(vaultToken)
|
||||
defaultOptions.headers['X-Vault-Token'] = vaultToken;
|
||||
const client = got.extend(defaultOptions);
|
||||
|
||||
core.setSecret(vaultToken)
|
||||
if (outputToken === true) {
|
||||
core.setOutput('vault_token', `${vaultToken}`);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue