5
0
Fork 0
mirror of https://github.com/hashicorp/vault-action.git synced 2025-11-14 18:13:45 +00:00
vault-action/src/index.js
Richard Simpson 25885cbbc9 feat: add generic auth
Adds the ability to authenticate against any normal Vault endpoint by added the uthPayload input.

When an unrecognized method is provided, the action will attempt to hit 1/auth/<method>/login with the provided uthPayload and parse out the token in the response
2020-04-04 12:55:25 -05:00

10 lines
No EOL
246 B
JavaScript

const core = require('@actions/core');
const { exportSecrets } = require('./action');
(async () => {
try {
await core.group('Get Vault Secrets', exportSecrets);
} catch (error) {
core.setFailed(error.message);
}
})();