how do I configure GithubAppPrivateKeySecret #19141
-
I see there is a variable to set argo-cd/util/settings/settings.go Line 331 in 5059982 but what i can't figure out is how to set it. I have GitOps repos in couple of different github orgs which deploy to the same cluster. I have created a Github App and installed in each or which necessary access. My current setup creates a repo-cred secret for each repo. Since I use the same GitHub app if I could share the GithubAppPrivateKeySecret my setup could be more clear. |
Beta Was this translation helpful? Give feedback.
Answered by
rochana-atapattu
Jul 22, 2024
Replies: 2 comments
-
anyone looking for the answer configs:
cm:
dex.config: |
connectors:
# GitHub example
- type: github
id: github
name: GitHub
config:
clientID: $dex-github-client-secret:clientID
clientSecret: $dex-github-client-secret:clientSecret
orgs:
- name: xxxxxxx
repositories: |
- githubAppPrivateKeySecret:
name: argo-cd-github-app-creds
key: githubAppPrivateKey
githubAppID: xxxxx
githubAppInstallationID: xxxxxxx
type: git
url: "https://github.com/example/repo" |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
rochana-atapattu
-
Hi - sorry to bring up an old thread, but where are you getting the private key? from what I've read, ArgoCD doesn't support RSA keys, but GitHub Action private token is only RSA. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
anyone looking for the answer