This is a library for building git credential helpers for github apps.
Implement a SecretProvider
for whatever secret store you are using. Pass that into the NewAuthenticator
constructor
and run the Authenticate
function. The result is a string that should be written to stdout. Nothing else should be
written to stdout since stdin/stdout are the interface pipes for git credential commands.
To see an example implementation, we have an AWS Secrets Manager implementation that pulls the application ID, installation ID, and private key from AWS Secrets Manager.