Alternative Authentication Methods for Accessing GitHub in Spring Cloud Config #138777
Replies: 1 comment
-
GitHub Apps offer a secure and granular method of repository access. Here are the Steps: Create a GitHub App: Go to GitHub -> Settings -> Developer settings -> GitHub Apps. Install the newly created GitHub App in the repository you want Spring Cloud Config to access. Generate a JWT from your GitHub App’s private key and App ID.
You can then automate token retrieval using Spring components or custom startup scripts to avoid manual handling of the token. Hope this helps!! |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Question
Body
I'm exploring ways to access GitHub repositories in Spring Cloud Config without using personal access tokens. Here is my current configuration:
spring:
cloud:
config:
server:
git:
uri: https://github.com/abc/xyz
clone-on-start: true
search-paths: configs
default-label: main
Could you suggest alternative authentication methods that I can use for GitHub in this setup?
Beta Was this translation helpful? Give feedback.
All reactions