Closed rellu closed 1 year ago
Thanks for the report @rellu. I believe your observations are correct and the Overwriting existing environment variable GOOGLE_GHA_CREDS_PATH
is not actually overwriting. This does looks like an upstream issue https://github.com/actions/runner/issues/1899
Thanks for the report @rellu. I believe your observations are correct and the
Overwriting existing environment variable GOOGLE_GHA_CREDS_PATH
is not actually overwriting. This does looks like an upstream issue actions/runner#1899
thanks for the link! It clearly looks like an upstream issue. Should we close this then?
I've tagged it as upstream
Closing as the upstream issue has been fixed: https://github.com/actions/runner/pull/1794
TL;DR
Getting consistent errors when I am calling
auth
andget-gke-credentials
actions through a composite action twice within a same job in a workflow.Expected behavior
No errors. Getting credentials should work no matter how or how many times I call it. This limits how these composite actions can be used.
Observed behavior
Looks to me that, when I call the composite action a second time it somehow uses the environment variables from the first pass eventhough the logs are clearly telling me that it will overwrite those environment variables.
Action YAML
Log output
Additional information
Not super experienced with github-actions. Not sure, if composite actions have some limitations that could cause this. Not sure, if this is a problem with this action or perhaps the "auth" action or perhaps an issue with github actions itself or an user error.