https://github.com/zombiezen/terraform-google-github-identity
https://github.com/zombiezen/terraform-google-github-identity
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/zombiezen/terraform-google-github-identity
- Owner: zombiezen
- License: apache-2.0
- Created: 2023-12-04T00:20:32.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-04T00:45:13.000Z (about 2 years ago)
- Last Synced: 2025-04-03T08:31:01.551Z (9 months ago)
- Language: HCL
- Homepage: https://registry.terraform.io/modules/zombiezen/github-identity/google/latest
- Size: 11.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Terraform for GitHub Actions Workload Identity Federation
This is a Terraform module to set up
[keyless authentication from GitHub Actions](https://cloud.google.com/blog/products/identity-security/enabling-keyless-authentication-from-github-actions).
## Example
```terraform
terraform {
required_version = "~> 1.0"
}
provider "google" {
project = "PROJECTID"
}
module "github_identity_pool" {
source = "zombiezen/github-identity/google"
version = "0.1.2"
attribute_condition = "assertion.repository=='octocat/example'"
service_accounts = {
main = {
subject = "octocat/example"
service_account_name = google_service_account.github_actions.name
}
}
}
resource "google_service_account" "github_actions" {
account_id = "github"
display_name = "GitHub Actions"
}
```
## License
[Apache 2.0](LICENSE)