Skip to content

Commit

Permalink
Merge pull request #3029 from buildkite/tweak-ignored-env-handling
Browse files Browse the repository at this point in the history
Tweak BUILDKITE_IGNORED_ENV handling
  • Loading branch information
DrJosh9000 authored Oct 7, 2024
2 parents 79ed39a + ccd9572 commit dab74a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/job/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,7 @@ func (e *Executor) setUp(ctx context.Context) error {
// The job runner sets BUILDKITE_IGNORED_ENV with any keys that were ignored
// or overwritten. This shows a warning to the user so they don't get confused
// when their environment changes don't seem to do anything
if ignored, exists := e.shell.Env.Get("BUILDKITE_IGNORED_ENV"); exists {
if ignored, _ := e.shell.Env.Get("BUILDKITE_IGNORED_ENV"); ignored != "" {
e.shell.Headerf("Detected protected environment variables")
e.shell.Commentf("Your pipeline environment has protected environment variables set. " +
"These can only be set via hooks, plugins or the agent configuration.")
Expand Down

0 comments on commit dab74a6

Please sign in to comment.