ref: 034d92ce14251297c41f68cfbf7e37df5fe80d0f sr.ht-docs/builds.sr.ht/private-repos.md -rw-r--r-- 1000 bytes
034d92ceDrew DeVault Add YAMl frontmatter to all pages 2 years ago

#title: Private repos on builds.sr.ht

#Private repos in builds.sr.ht jobs

Warning! The list of commands run in a builds.sr.ht job, as well as their stdout and stderr, are visible to the public - even if the job uses a private repository. Take care not to leak any secrets this way.

builds.sr.ht can use private repos on git.sr.ht and elsewhere, but you have to configure each job with an SSH key that has access to your account.

  1. Generate an SSH key and add it to your account
  2. Add a secret using the secrets management page
  3. Copy the secret's UUID into your build manifest's secrets list.
  4. Update your sources list to use the SSH clone URL - not the https clone URL.

The resulting build manifest should look something like this:

image: # ...
- c043e12e-a297-4ece-b09c-bb5a99dc4094
- git@git.sr.ht:~yourname/your-private-repo