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 (without a passphrase)
  2. Add the public key to your account
  3. Add the private key as a secret using the secrets management page
  4. Copy the secret's UUID into your build manifest's secrets list.
  5. 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: # ...
secrets:
- c043e12e-a297-4ece-b09c-bb5a99dc4094
sources:
- git@git.sr.ht:~yourname/your-private-repo

About this wiki

commit 32db95c473a18296039b9b2a596fa8a6b5e9d55a
Author: Maxwell G <maxwell@gtmx.me>
Date:   2025-04-29T17:43:00-05:00

builds: update matrix for Fedora 43
Clone this wiki
https://git.sr.ht/~sircmpwn/sr.ht-docs (read-only)
git@git.sr.ht:~sircmpwn/sr.ht-docs (read/write)