git-resource
git-resource copied to clipboard
Unable to access sso enabled github repository
Hi, When trying to access a github repository, where sso is enabled on its organization and authorized ssh key, we notice below error in the concourse resource
run check step: run check step: check: resource script '/opt/resource/check []' failed: exit status 128
stderr:
Identity added: /tmp/git-resource-private-key (USER_NAME@MACHINE)
Cloning into '/tmp/git-resource-repo-cache'...
warning: Could not find remote branch master to clone.
fatal: Remote branch master not found in upstream origin
Also, when tried locally able to connect and access the same repository. Here is the resource config from the pipeline,
name: REPOSITORY_NAME
type: git
source:
uri: [email protected]:ORG_NAME/REPO_NAME.git
private_key: |
-----BEGIN OPENSSH PRIVATE KEY-----
b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAABFwAAAAdzc2gtcn
<MORE TEXT>
mZ/ffjs/Nib8GDkAAAAWYXI1Zjl5ZkBMLVBUTjlZQkpHNUotTQECAwQF
-----END OPENSSH PRIVATE KEY-----
Could you please help me out in getting this issue fixed. Thanks.
Regards, Arun
@arungskumar have you tried using RSA algorithm to generate the key instead of Ed25519 ?