Is there a way to prevent a build step having access to particular environment variables?
Answered
I want to be able to prevent a particular build step in a build configuration from having access to certain environment variables (secrets). These variable are required in the initial steps of the build configuration only. The following steps generate logs that I would like to expose publicly, so I want to protect against those secrets being echoed into the logs.
Is there a way to do this? I was thinking using dependent builds or a custom build step may be an option.
Please sign in to leave a comment.
Hello Simon,
While, I am afraid, there is no built-in way to stop certain parameters from being available to the certain steps, you could update the parameter values to have them empty after they are no longer needed (please see the article on the matter here). Would this work for you?