output "workload_identity_provider" { description = "Give this to google-github-actions/auth as workload_identity_provider." value = google_iam_workload_identity_pool_provider.github.name } output "service_account" { description = "Give this to google-github-actions/auth as service_account." value = google_service_account.deploy.email } output "verify" { description = "How to prove only the named subjects can sign in, and that it is recorded." value = <<-EOT Run a workflow with id-token: write and google-github-actions/auth from an allowed branch or environment: gcloud commands succeed as ${google_service_account.deploy.email}. Run it from any other branch or environment: the token exchange is refused. In Logs Explorer, protoPayload.serviceName="iamcredentials.googleapis.com" shows each token minted, with the federated principal. EOT }