-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(): make secrets parameter optional #299
Conversation
Will this get merged soon? If not I need to create my own action in the next couple of days, but I'd rather avoid it! For my own testing I can just use (Thanks for this) |
I need a hashicorp maintainer to approve before it can be merged. @tvoran do you have any cycles to take a look / is there any interest in this change? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for opening this. LGTM, although I'm not keen on maintaining yarn.lock alongside package-lock.json unless we get some infrastructure around keeping them in sync (e.g. some kind of CI to ensure yarn import
gives a consistent result?). Could you delete it for now please?
Sorry about that! Should be done now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Sorry I forgot to mention in the previous comment, please could we also add a test? To help me verify, I wrote a little unit test, and you can just use this in action.test.js
if you like:
it('export only Vault token, no secrets', async () => {
mockExportToken("true")
await exportSecrets();
expect(core.exportVariable).toBeCalledTimes(1);
expect(core.exportVariable).toBeCalledWith('VAULT_TOKEN', 'EXAMPLE');
});
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
closes #289
tested this PR locally using act