-
Notifications
You must be signed in to change notification settings - Fork 473
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
Action overrides AWS env vars for subsequent running action #73
Comments
Hi @nicolaevladescu , I don't know the order of precedence that GitHub Actions follows for setting env variables in Docker actions (I can't find it documented anywhere), but it appears that env vars set in the workflow's environment override values in the action's Do you see the same behavior for any kind of environment variable, not just ones set by this action? For example, does "bar" take precedence over both "foo" and "baz" below?
With respect to resetting the environment variables, individual GitHub Action jobs each have a fresh environment, so you can do:
|
Hi. Thank you for the suggestions, yeah it seems it's out of the control of this action. I will try to find out the precedence from GitHub. Thanks for the feedback! |
Hi.
I am using
aws-actions/configure-aws-credentials@v1
and doing some ECR steps, after which i run a custom action similar to the below code, in which i set some env vars forawscli
with different AWS credentials (key_id+secret) than those used with this action.The vars are present both as standalone and those prefixed with
INPUT_
, but after seeing the output ofaws configure list
andaws sts get-caller-identity
i find out that the credentials are not those i set manually, but those populated byconfigure-aws-credentials
from previous steps.So my questions are:
configure-aws-credentials
action?The text was updated successfully, but these errors were encountered: