Closed
Description
Describe the feature
Currently the step will always export the credentials to the GitHub env, even when output-credentials
is set to true
(which exports them as step outputs then too)
configure-aws-credentials/src/helpers.ts
Lines 42 to 75 in b92d0d9
I'd like the GitHub env export to be controllable so as not to "polute" it.
Use Case
A lot of libraries/applications/programs nowadays end up picking up these creds, and I might prefer the obtained credentials to be scoped only to specific steps, or even specific commands within some step. In other words I'd like a more fine-grained/opt-in approach to be available.
Proposed Solution
I see two alternatives
- Make
output-credentials
exclusive: whenfalse
export only to env (as now), but whentrue
export only as step output. A renaming of the option might be in order too, since it's not clear what the output refers to. - Replace
output-credentials
with two new options, e.g.output-step
(defaulting tofalse
), andoutput-env
(defaulting totrue
). This would allow control of all possible combinations of outputs.
Other Information
No response
Acknowledgements
- I may be able to implement this feature request
- This feature might incur a breaking change