I setup a resource with a private_key but all i get when I push is:
acquiring lock on: builds
waiting for lock
failed to broadcast the change to lock state!
err: exit status 128
git-err: ERROR: Repository not found.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
I have done some digging trying to figure out the issue, what I tried was replacing /opt/go/out $1 >&3 < $payload in /opt/resource/out by:
ssh -v git@github.com
And it works fine with the key added to the ssh agent.
I also did another test after the first failure which worked too:
I setup a resource with a
private_key
but all i get when I push is:I have done some digging trying to figure out the issue, what I tried was replacing
/opt/go/out $1 >&3 < $payload
in/opt/resource/out
by:And it works fine with the key added to the ssh agent.
I also did another test after the first failure which worked too:
The issue seems to only arise when the go app is the one executing git.