Developer Connect GitHub OAuth
Use this once after the Terraform change creating the
githubDeveloper Connect connection intrusted-buildsapplies through Atlantis. The connection is created without credentials and waits inPENDING_USER_OAUTH; a browser authorization completes it. Config lives interraform/gcp/projects/trusted-builds/developer-connect.tf.Quick check
gcloud developer-connect connections describe github \ --project=trusted-builds --location=northamerica-northeast1 \ --format='value(installationState.stage)'COMPLETEmeans there is nothing to do here.
Authorize
Get the next-action link:
gcloud developer-connect connections describe github \ --project=trusted-builds --location=northamerica-northeast1 \ --format='value(installationState.stage, installationState.actionUri)'Open the
actionUriin a browser as the GitHub account that ownsjonpulsifer/infra, authorize the Developer Connect GitHub App, and when GitHub asks where to install it, scope the installation to thejonpulsifer/infrarepository only.Re-run the describe until
installationState.stagereadsCOMPLETE. Developer Connect stores the OAuth token as a Secret Manager secret it creates intrusted-builds; the token never touches git or Terraform state.
After authorization
The connection's
appInstallationIdandauthorizerCredentialare server-populated. The Terraform config leaves both undeclared, so the follow-up plan for the repository link shows the connection unchanged — if the Atlantis plan on that PR shows any change togoogle_developer_connect_connection.github, stop and investigate before applying.
Linked references 1
Runbooks/Developer Connect GitHub OAuth — one-time browser authorization that moves the trusted-builds GitHub connection from PENDING_USER_OAUTH to COMPLETE