Skip to content

Multiple Keys for Different Repos #5193

Answered by stefanprodan
agluck91 asked this question in Q&A
Discussion options

You must be logged in to vote

This is what the Get Started guide shows but for a public repo. In your case you also need to generate a secret with a PAT from a user in that org and set it in the GitRepository.spec.secretRef.

To generate the secret:

flux -n flux-system create secret git my-org-token \
 --url=/~https://github.com/org/repo --username=flux --password=$GITHUB_ORG_PAT

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@agluck91
Comment options

Answer selected by agluck91
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants