jtarchie / github-pullrequest-resource

Provides a Github pull request resource for concourse CI.
MIT License
141 stars 102 forks source link

Clone URI defaults to HTTPS when an SSH private key is set #205

Open silverlyra opened 6 years ago

silverlyra commented 6 years ago

Describe the bug The uri in the source configuration defaults to https://github.com/…, even when private_key is set.

To Reproduce

resource_types:
- name: pull-request
  type: docker-image
  source:
    repository: jtarchie/pr
resources:
- name: pr
  type: pull-request
  source:
    access_token: ((github-token))
    private_key: ((deploy-key))
    repo: …

Expected behavior uri should default to git@github.com/(repo).git