mirror of
https://github.com/hashicorp/vault-action.git
synced 2026-04-09 21:50:05 +00:00
chore: make vault action consumable (#43)
* chore: make vault action consumable * fix prefixless queries to default to data * fix the right build entrypoint * make output more forgiving and shore up selectors * clarify doc language * add npmtoken
This commit is contained in:
parent
9878eba70a
commit
a7527a3e8a
11 changed files with 7819 additions and 244 deletions
15
src/index.js
15
src/index.js
|
|
@ -1,10 +1,7 @@
|
|||
const core = require('@actions/core');
|
||||
const { exportSecrets } = require('./action');
|
||||
const auth = require('./auth');
|
||||
const secrets = require('./secrets');
|
||||
|
||||
(async () => {
|
||||
try {
|
||||
await core.group('Get Vault Secrets', exportSecrets);
|
||||
} catch (error) {
|
||||
core.setFailed(error.message);
|
||||
}
|
||||
})();
|
||||
module.exports = {
|
||||
auth,
|
||||
secrets
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue