Gitsync Secret for GitHub
Add a secret for gitsync on GitHub
This quick-start describes how we have/add a secret for gitsync with a repo on GitHub.
PrimeHub support volumes of type git
, in other words, we can use a volume located on a repository via gitsync. What if the repository is private only? Then we need a secret
to have proper privileges for access the repo.
Generate deploy public key on GitHub
We need to deploy our public key on the GitHub. There is a nice guide from GitHub instructing how to deploy a public key on the repository, following the guide to generate a key and deploy it on a repo on GitHub.
Add a key as a secret on PrimeHub
Once we have deployed our public key on the repo, we can add the key as a secret on PrimeHub.
Log in as an administrator and switch to Admin Portal.
Enter
Secrets
management and click+ Add
for adding a secret.Fill
Name
,Display Name
(Optional) and selectType
Git Sync
.Fill
Secret
with your public key.Click
Confirm
to save the secret.
Now we can add a volume pointing to our private repo on GitHub and select the secret for authorization.
Last updated