aws-secretsmanager-get-secrets
aws-secretsmanager-get-secrets copied to clipboard
Return secrets as outputs instead of values
Issue #14: Environment variables vs outputs
Description of changes: Secrets are now returned as action outputs. This results in the following improvements:
- User side:
- Less concern needed over which steps to separate in a different job to avoid access to environment variables
- Full control over where the returned secrets are used
- Codebase side:
- No more need to clean up environment variable secrets, as the GitHub Actions toolkit will handle the outputs.
README.md, action.yml and code comments have been updated accordingly. Tests are passing.
If you prefer reviewing less files and compiling the source code yourselves, I have created a parallel PR(#37) containing only the code changes without the built dist files.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
@ecraw-amzn Is there something I still need to do before this PR can be reviewed and merged?
Thanks for the PR, @Olfi01 - we are evaluating this as a part of issue #14
@jbct can we merge this. ~Currently, we are facing issues due to the Secrets Cleanup right after the fetch.~
Nevermind, the documentation wasn't clear we shouldn't use vars., but use env. instead to access the variables.
Is there anything holding this feature up?
Bump
We've encountered this issue again. What is the status of the PR?
Bump
We've encountered this issue again. What is the status of the PR?
Since it has been left unresolved for over a year now, some conflicts have mounted up. I don't know if I'll get around to fixing it anytime soon, though I imagine the conflict can't be too difficult to manage.