Pack self-hosted runner issue

Hi everyone,

I’m having an issue when runner the buildpack pack command on a self-hosted ubuntu runner.

When applying the command pack build myimage:tag --path ./demo-angular/deploy --buildpack '' --builder paketobuildpacks/builder:base --verbose, I got the error message I’m having is ERROR: getting config path: getting pack home: getting user home: $HOME is not defined

When I run the same command directly on the runner, it works fine and build the image. The $HOME env variable is set for the user running the runner.

After some research it might be related to a $GOHOME go variable but I couldn’t find a way to fix that.

Anyone already had a similar issue ? Any advices on where to look at to fix or debug further ?

Thanks !

Indeed if I unset $HOME manually, I can reproduce the issue. However this variable is properly set both for root and the only interactive user on this VM.
Is a process from github runner somehow resetting this variable ?