Uploaded image for project: 'OpenShift Pipelines'
  1. OpenShift Pipelines
  2. SRVKP-1570

git-ssh push fails with default service account `pipeline`

XMLWordPrintable

    • 1
    • False
    • False
    • Undefined
    • Pipelines Sprint 204, Pipelines Sprint 205, Pipelines Sprint 206, Pipelines Sprint 207, Pipelines Sprint 208, Pipelines Sprint 209, Pipelines Sprint 210

      Try to run this example!

      oc create -f https://gist.githubusercontent.com/praveen4g0/db589be7ccf0d26b4435ccb922f67674/raw/f738742bbdcf15b558230f37505474b9444f4e83/git-ssh.yaml
      

      Here I am using custom service account!

      now try to start pipelinerun from UI/from cli and use service account pipeline

      Before that link secret to our service account!

      oc secret link serviceaccount/pipeline secrets/<secretname>  -n  namespace
      

      I see below error

      + git push origin HEAD:docker-to-quay
      Warning: Permanently added 'github.com,140.82.113.3' (RSA) to the list of known hosts.
      git@github.com: Permission denied (publickey).
      fatal: Could not read from remote repository.
      Please make sure you have the correct access rights
      and the repository exists.
      

      Reproducible on OSP1.4 , 1.5

            concaf Shubham Minglani
            pthangad Praveen Kumar Reddy Thangadancha (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: