Just to be sure: your build hook uses the argument --build-arg git_personal_token=${git_personal_token} to pass the build environment variable into the image build?
In case of unclearity, please share the content of hooks/build as it will help to understand what you actualy use to build the image.