Skip to content

Environment variables "leak" into Docker container action. Why? How to prevent? #25738

Answered by madhead
madhead asked this question in Actions
Discussion options

You must be logged in to vote

This is what a support told me on my request to clarify the behavior:

Thank you for reaching out to GitHub Support and sorry to hear you’ve experienced this issue.

I’ve reached out to the Actions team and they confirmed that most (if not all) environment variables from the runner are passed through to a container when run to allow access to things like secrets and other custom environment variables.

I’m afraid there are currently no plans to change the behaviour around environment variables in these Actions - sorry about that.

We really appreciate feedback on how we can make GitHub even better and the best way to report any feature requests is directly to us through our feedback form: Sh…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
2 replies
@madhead
Comment options

@bdw429s
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants