Gitsync Secret for GitHub
Last updated
Last updated
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.
We need to deploy our public key on the GitHub. There is a nice guide from GitHub instructing , following the guide to generate a key and deploy it on a repo on GitHub.
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 .
Enter Secrets
management and click + Add
for adding a secret.
Fill Name
, Display Name
(Optional) and select Type
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.