Skip to content

Unable to access sso enabled github repository #345

Open
@arungskumar

Description

@arungskumar

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions