This issue was reported in another thread ENVs shown by printenv don't match build envs printed to console - #15 by mobilevet
The common trait is that they’re both buildpack images.
A solution is still unknown, but at least there’s a pattern to 28
.