I am setting up a bitbucket pipeline for my go application and I have to go get a package from a private bitbucket repository.
I am trying to setup a gitconfig in my pipeline to use ssh instead of https
git config --global url.ssh://git@bitbucket.org/.insteadOf https://bitbucket.org/
When I print my git config in the pipeline I can see that the value is correctly set, the problem is that when I do my go get my private repo, it seems to try to fetch via https instead of ssh.
Is there a way to force the pipeline to use the git config I set?