Fix build auth by adding config to the build job environment

This re-fixes the work that was done for pull request #3442 and then broken in commit SHA: 415379e45dadb32385771ceae701d8b9f204f2b8