{"id":13707175,"url":"https://github.com/chainguard-dev/terraform-infra-common","last_synced_at":"2026-02-11T16:05:17.379Z","repository":{"id":211658507,"uuid":"729571690","full_name":"chainguard-dev/terraform-infra-common","owner":"chainguard-dev","description":"A repository containing a collection of \"glue\" modules for encapsulating common Cloud Run patterns.","archived":false,"fork":false,"pushed_at":"2026-02-10T14:26:00.000Z","size":17444,"stargazers_count":28,"open_issues_count":22,"forks_count":42,"subscribers_count":3,"default_branch":"main","last_synced_at":"2026-02-10T18:55:33.417Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://registry.terraform.io/modules/chainguard-dev/common/infra/latest","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chainguard-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-12-09T16:47:26.000Z","updated_at":"2026-02-10T14:26:05.000Z","dependencies_parsed_at":"2024-04-01T17:42:16.912Z","dependency_job_id":"e6896ea1-f697-4291-a461-2e9ed796c026","html_url":"https://github.com/chainguard-dev/terraform-infra-common","commit_stats":null,"previous_names":["chainguard-dev/terraform-cloudrun-glue","chainguard-dev/terraform-infra-common","chainguard-dev/terraform-common-infra"],"tags_count":289,"template":false,"template_full_name":null,"purl":"pkg:github/chainguard-dev/terraform-infra-common","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chainguard-dev%2Fterraform-infra-common","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chainguard-dev%2Fterraform-infra-common/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chainguard-dev%2Fterraform-infra-common/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chainguard-dev%2Fterraform-infra-common/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chainguard-dev","download_url":"https://codeload.github.com/chainguard-dev/terraform-infra-common/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chainguard-dev%2Fterraform-infra-common/sbom","scorecard":{"id":273025,"data":{"date":"2025-08-11","repo":{"name":"github.com/chainguard-dev/terraform-infra-common","commit":"478227cd2b83a90e7ca7e63b127bcec48083d1ce"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":8.3,"checks":[{"name":"Maintained","score":10,"reason":"30 commit(s) and 4 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":10,"reason":"all changesets reviewed","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Token-Permissions","score":10,"reason":"GitHub workflow tokens follow principle of least privilege","details":["Info: jobLevel 'actions' permission set to 'read': .github/workflows/actionlint.yaml:18","Info: jobLevel 'actions' permission set to 'read': .github/workflows/boilerplate.yaml:18","Info: jobLevel 'contents' permission set to 'read': .github/workflows/digest-bot.yaml:20","Info: jobLevel 'actions' permission set to 'read': .github/workflows/documentation.yaml:13","Info: jobLevel 'actions' permission set to 'read': .github/workflows/documentation.yaml:68","Info: jobLevel 'contents' permission set to 'read': .github/workflows/donotsubmit.yaml:18","Info: jobLevel 'contents' permission set to 'read': .github/workflows/go-test.yaml:19","Info: jobLevel 'contents' permission set to 'read': .github/workflows/main.yaml:16","Info: jobLevel 'actions' permission set to 'read': .github/workflows/style.yaml:22","Info: jobLevel 'actions' permission set to 'read': .github/workflows/style.yaml:46","Info: jobLevel 'contents' permission set to 'read': .github/workflows/style.yaml:66","Info: jobLevel 'pull-requests' permission set to 'read': .github/workflows/style.yaml:67","Info: jobLevel 'actions' permission set to 'read': .github/workflows/style.yaml:96","Info: jobLevel 'contents' permission set to 'read': .github/workflows/validate.yaml:15","Info: jobLevel 'contents' permission set to 'read': .github/workflows/validate.yaml:38","Info: jobLevel 'actions' permission set to 'read': .github/workflows/validate.yaml:64","Info: found token with 'none' permissions: .github/workflows/actionlint.yaml:1","Info: found token with 'none' permissions: .github/workflows/boilerplate.yaml:1","Info: found token with 'none' permissions: .github/workflows/digest-bot.yaml:1","Info: found token with 'none' permissions: .github/workflows/documentation.yaml:1","Info: found token with 'none' permissions: .github/workflows/donotsubmit.yaml:1","Info: found token with 'none' permissions: .github/workflows/go-test.yaml:1","Info: found token with 'none' permissions: .github/workflows/main.yaml:1","Info: found token with 'none' permissions: .github/workflows/style.yaml:1","Info: found token with 'none' permissions: .github/workflows/validate.yaml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":10,"reason":"all dependencies are pinned","details":["Info:  19 out of  19 GitHub-owned GitHubAction dependencies pinned","Info:  37 out of  37 third-party GitHubAction dependencies pinned","Info:   2 out of   2 goCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Security-Policy","score":10,"reason":"security policy file detected","details":["Info: security policy file detected: github.com/chainguard-dev/.github/SECURITY.md:1","Info: Found linked content: github.com/chainguard-dev/.github/SECURITY.md:1","Info: Found disclosure, vulnerability, and/or timelines in security policy: github.com/chainguard-dev/.github/SECURITY.md:1","Info: Found text in security policy: github.com/chainguard-dev/.github/SECURITY.md:1"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Branch-Protection","score":8,"reason":"branch protection is not maximal on development and all release branches","details":["Info: 'allow deletion' disabled on branch 'main'","Info: 'force pushes' disabled on branch 'main'","Warn: required approving review count is 1 on branch 'main'","Warn: codeowners review is not required on branch 'main'","Info: status check found to merge onto on branch 'main'","Info: PRs are required in order to make changes on branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":1,"reason":"SAST tool is not run on all commits -- score normalized to 1","details":["Warn: 5 commits out of 30 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-17T13:49:55.103Z","repository_id":211658507,"created_at":"2025-08-17T13:49:55.104Z","updated_at":"2025-08-17T13:49:55.104Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29337030,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-11T16:00:30.228Z","status":"ssl_error","status_checked_at":"2026-02-11T16:00:25.398Z","response_time":97,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-02T22:01:23.648Z","updated_at":"2026-02-11T16:05:17.374Z","avatar_url":"https://github.com/chainguard-dev.png","language":"Go","funding_links":[],"categories":["HCL"],"sub_categories":[],"readme":"# terraform-infra-common\n\n[\u003cimg alt=\"Static Badge\" src=\"https://img.shields.io/badge/terraform-%235835CC.svg?style=for-the-badge\u0026logo=terraform\u0026logoColor=white\u0026link=https%3A%2F%2Fregistry.terraform.io%2Fmodules%2Fchainguard-dev%2Fcommon%2Finfra%2Flatest\"\u003e](https://registry.terraform.io/modules/chainguard-dev/common/infra/latest)\n\nA repository containing a collection of common infrastructure modules for\nencapsulating common Cloud Run and GCP patterns.\n\n## Usage\n\nTo use components in this library, you must provide the `project` in a\n`provider.google` resource in your top-level main.tf:\n\n```hcl\nprovider \"google\" {\n  project = var.project\n}\n```\n\n## Resource Labeling Convention\n\nAll modules in this repository follow a consistent labeling pattern for GCP cost allocation and resource organization:\n\n```hcl\nlocals {\n  default_labels = {\n    basename(abspath(path.module)) = var.name\n    terraform-module               = basename(abspath(path.module))\n    product                        = var.product\n    team                           = var.team\n  }\n\n  merged_labels = merge(local.default_labels, var.labels)\n}\n```\n\nThis pattern:\n- **Enables cost tracking** to break down each module by use\n- **Maintains consistency** across all infrastructure modules\n- **Supports team attribution** through team labels (with backward compatibility for deprecated squad)\n- **Allows custom labels** via the `labels` variable\n- **Provides module identification** via the `terraform-module` label\n- **Sets both squad and team labels** to the same value for resource tagging\n\nThe `basename(abspath(path.module))` automatically derives the module name (e.g., \"gke\", \"redis\", \"workqueue\") without requiring hardcoded values.\n\n### Team vs Squad\n\nAll modules support both `team` and `squad` variables for backward compatibility:\n- Use `team` for new code (preferred)\n- `squad` is deprecated but still supported\n- `team` takes precedence if both are provided\n- If neither is specified, both labels default to \"unknown\"\n\n## Submitting Changes\n\nThese modules are canonically located within a private Chainguard repository, and are continuously pushed from there to this repository.\n\nIf you would like to submit a PR, please do make one against this repository.\nAfter the review process, someone at Chainguard will merge it into our internal repository,\nand the change will then be pushed here.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchainguard-dev%2Fterraform-infra-common","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchainguard-dev%2Fterraform-infra-common","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchainguard-dev%2Fterraform-infra-common/lists"}