package
0.0.0-20210330190653-bcf66f086d94
Repository: https://github.com/google/googlesource-auth-tools.git
Documentation: pkg.go.dev

# README

git-credential-secretmanager

A Git credential helper for accessing GCP Secret Manager secrets.

Usage

Flag based configuration

$ git config --global credential.https://github.com.helper "secretmanager --version=<secret manager version>"
$ git config --global credential.https://github.com.username <username>

Environment variable based configuration

$ git config --global credential.https://github.com.helper secretmanager
$ git config --global credential.https://github.com.username <username>
$ export GIT_SECRET_MANAGER_VERSION="<secret manager version>"

Where <username> is the remote username you want to use and <secret manager version> is a GCP Secret Manager Version ID.