Questions tagged [deploy-keys]

Deploy keys are HTTPS tokens or SSH keys that grant secure read-only access to a single repository from an external host like a build server or CI/CD server.

Deploy keys is a feature of major Git hostings. The keys grant limited access to limited number of repositories; they're configured (and can be revoked) independent of user account. See the following resources:

15 questions
15
votes
2 answers

Install multiple private packages from Github using Poetry and deploy keys

I want to install multiple private Github repositories as python packages into my repository using poetry. This works fine when running poetry install locally as I have my public SSH key added to Github which allows poetry to access the private…
Joachim
  • 567
  • 1
  • 7
  • 20
12
votes
2 answers

Does deprecation of basic password authentication affect GitHub deploy keys?

I received an email from GitHub stating: You recently used a password to access the repository at username/repo with git using git/2.24.3 (Apple Git-128). Basic authentication using a password to Git is deprecated and will soon no longer work.…
stevec
  • 41,291
  • 27
  • 223
  • 311
11
votes
2 answers

AWS CodeBuild GitHub Deploy Keys

With AWS CodeBuild you define GitHub as the source. If your repo is private, you can pass a personal token. I've built a CodeBuild process and confirmed this worked. What I'd like to do is not use a personal token, instead use a GitHub Deploy Key…
Josh
  • 8,219
  • 13
  • 76
  • 123
8
votes
1 answer

Gitlab Fingerprint has already been taken, Deploy keys projects deploy key fingerprint has already been taken

I want to deploy two projects in the same VPS.i've successfully deployed one project and added Deploy keys to the GitLab repository.but when I try to add the same ssh key to my other repositories Deploy keys it says, Fingerprint has already been…
Ruhith Udakara
  • 2,236
  • 1
  • 18
  • 24
4
votes
1 answer

How to clone repo using deploy key?

I successfully created a deploy key for a private repository using the method outlined here. Now when I run git clone repo_url I would expect it to clone? But it doesn't. A pop up appears expecting git credentials (standard email/password1). Where…
stevec
  • 41,291
  • 27
  • 223
  • 311
2
votes
1 answer

Use deploy key in GitHub Actions to install dependency from private repo

Dependencies in package.json: "dependencies": { "my-repo": "git+ssh://github.com/org-name/my-repo.git" }, GitHub Actions: name: Test on: [push, pull_request] jobs: test: name: Test runs-on: ubuntu-18.04 steps: - name:…
niftygrifty
  • 3,452
  • 2
  • 28
  • 49
2
votes
0 answers

How to pull MULTIPLE private repos from GitHub when deploying Heroku app?

How can I deploy a Heroku app with multiple package.json dependencies that are private repositories? This past answer of mine explains how to use a GitHub deploy key on a private repository to enable a Heroku app to pull it as a package.json…
GirkovArpa
  • 4,427
  • 4
  • 14
  • 43
2
votes
1 answer

Git over ssh is ignoring the ssh config

So, I've been messing around with this for a little while now, but git is still acting up. While ssh works just fine now, git is seemingly ignoring my ssh config but I at least know it works when I specify the port and key with a sshCommand in the…
1
vote
1 answer

How can I use Deploy key for authentication to use Github API?

I was given with Deploy key of a repository. How can I use Github API to use deploy key for Authorization. Is there any python module to achieve this? Note : I cannot use personal access tokens.
0
votes
0 answers

Ansible GIT sub-modules and deploy keys doesnt work together?

My objective is to check out a repository and all submodules within it using multiple deploy keys. The git module recursive option does not work, it does not seem to support multiple key_files. - name: Checkout foo repository git: repo:…
JazzCat
  • 4,243
  • 1
  • 26
  • 40
0
votes
2 answers

Github deploy key not working on organization repository

I use deploy key on my repos without any problem... now i want to create deploy key for a repo that belongs to an organization (that I'm a member of), i did it the usual way: generate new ssh key: ssh-keygen -t ed25519 -C "test@example.com" adding…
Vamp808
  • 51
  • 1
  • 7
0
votes
1 answer

Run ssh-keygen in Ruby to generate VCS deploy keys?

I run this command to generate valid deploy keys for my private repos: ssh-keygen -b 2048 -t rsa -C "mystring" The command prompts me for a path and a password (which I leave empty), and generates to files. A mykey: -----BEGIN OPENSSH PRIVATE…
Cjoerg
  • 1,271
  • 3
  • 21
  • 63
0
votes
1 answer

How to use deploy keys to automatically clone the same repository on multiple servers?

I have created a deploy key from a server instance, say host A for repository R1. Now I am scaling to 3 servers, i.e. to host B and host C and want to access R1 from them. How to use deploy keys when it comes to multiple server instances? Do I have…
0
votes
0 answers

Testing an ssh key to github.com via ssh command

Github's documentation explains that there is this command that you can run to validate a key: ssh -T git@github.com I have also experimented and seen that you can run ssh -T git@github.com verify to get some info. Is there a command you can exec…
jamesatha
  • 7,280
  • 14
  • 37
  • 54
0
votes
0 answers

Github still asking for credentials despite successful creation of deploy key?

I have created a deploy key according to the windows instructions here But instead of using the deploy key that has just been set up, git push instead asks for credentials, first with a pop up, then with an SSH pop up, then in the git bash command…
stevec
  • 41,291
  • 27
  • 223
  • 311