Skip to content

How can provide credentials for an external service? #455

Answered by gsmet
jonnybbb asked this question in Q&A
Discussion options

You must be logged in to vote

I'm not sure I understand your use case:

  1. do you want a way to pass common credentials to the GitHub App at startup?
  2. or do you want a way to have credentials per repository that would be somehow stored as secrets on GitHub?

1/ is easy: you can use Quarkus' config framework to inject environment variables into config: https://quarkus.io/guides/config-reference .

2/ I don't think you have many options there. GitHub secrets are not available to GitHub Apps and there's no way to get the values from the API. The only option I see is to encrypt the secrets with GPG and host them in the repo.

Note that if GitHub Actions are more practical for you, we also have https://github.com/quarkiverse/qua…

Replies: 1 comment 1 reply

Comment options

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

Answer selected by jonnybbb
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