mirror of
https://github.com/hashicorp/vault-action.git
synced 2025-11-07 15:16:56 +00:00
12 lines
No EOL
252 B
JavaScript
12 lines
No EOL
252 B
JavaScript
const got = require('got');
|
|
|
|
(async () => {
|
|
const result = await got(`localhost:8200/v1/secret/config`, {
|
|
method: 'POST',
|
|
headers: {
|
|
'X-Vault-Token': 'testtoken'
|
|
}
|
|
});
|
|
|
|
console.log(result.body);
|
|
})(); |