feat: add new ignoreNotFound
input to prevent the action from crashing when requested secrets do not exist
#506
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Adding an optional input
ignoreNotFound
to make the action keep going even though one of the requested secret is not found (404).We have a specific case where this is useful (necessary to be honest) and we thought it would be a nice improvement to your action codebase, since it is sometimes wanted to have a "always exit success" mecanism in GitHub Actions ecosystem.
Let me know what you think! Of course I can adapt my changes to whatever you prefer, like passing the new input variable from
action.js
to thegetSecrets
function instead of importingcore
in thesecrets.js
file (wasn't sure what was the best practice there).Checklist
dist/index.js
(This is only done for releases by vault-action maintainers)Community Note
reaction
to the original pull request comment to help the community and maintainers
prioritize this request
followers and do not help prioritize the request