We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
ignoreKeyNotFound
When programmatically passing in vault keys, if the key does not exist I would like the option for the resulting value to be a null or default value.
- name: Import Secrets uses: actions/[email protected] with: url: ${{ env.url }} method: approle roleId: ${{ env.role_id }} secretId: ${{ env.secret_id }} caCertificate: ${{ secrets.vault_ca_cert }} ignoreKeyNotFound: true # *** defaultValue: null # *** or 'string', defaults to null secrets: | ${{ env.secret_path }} credentials.${{ env.PREFIX }}.username | username ; ${{ env.secret_path }} credentials.${{ env.PREFIX }}.password | password ;
vault-action
Both approaches are messy/hacky and not scalable
The text was updated successfully, but these errors were encountered:
I looked through the code and have an idea on how to implement this, will try to open a PR in the coming days.
Sorry, something went wrong.
@xsfa Are you aware of the ignoreNotFound option? Does this solve the issue for you?
@fairclothjm I tried it, I believe this option only handles cases where the secret is not found, not when a key within the secret is not found.
No branches or pull requests
The Problem
When programmatically passing in vault keys, if the key does not exist I would like the option for the resulting value to be a null or default value.
Proposed Solution
Explored Alternatives
vault-action
Both approaches are messy/hacky and not scalable
The text was updated successfully, but these errors were encountered: