{"id":13416765,"url":"https://github.com/gruntwork-io/terratest","last_synced_at":"2026-01-17T22:35:37.205Z","repository":{"id":37533006,"uuid":"53174289","full_name":"gruntwork-io/terratest","owner":"gruntwork-io","description":" Terratest is a Go library that makes it easier to write automated tests for your infrastructure code.","archived":false,"fork":false,"pushed_at":"2026-01-08T01:21:27.000Z","size":30001,"stargazers_count":7849,"open_issues_count":82,"forks_count":1370,"subscribers_count":111,"default_branch":"main","last_synced_at":"2026-01-12T15:49:06.080Z","etag":null,"topics":["aws","devops","docker","golang","packer","terraform","testing","testing-library"],"latest_commit_sha":null,"homepage":"https://terratest.gruntwork.io/","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/gruntwork-io.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":"NOTICE","maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"gruntwork-io"}},"created_at":"2016-03-05T00:26:17.000Z","updated_at":"2026-01-12T15:25:45.000Z","dependencies_parsed_at":"2023-10-14T17:27:33.595Z","dependency_job_id":"e8604c5f-0613-4aea-8d4d-017d1af3ba5c","html_url":"https://github.com/gruntwork-io/terratest","commit_stats":{"total_commits":2353,"total_committers":253,"mean_commits":9.300395256916996,"dds":0.8478538036549086,"last_synced_commit":"2851217e39f9479414749017faa4eddac97586ae"},"previous_names":["gruntwork-io/terraform-test"],"tags_count":423,"template":false,"template_full_name":null,"purl":"pkg:github/gruntwork-io/terratest","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gruntwork-io%2Fterratest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gruntwork-io%2Fterratest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gruntwork-io%2Fterratest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gruntwork-io%2Fterratest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gruntwork-io","download_url":"https://codeload.github.com/gruntwork-io/terratest/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gruntwork-io%2Fterratest/sbom","scorecard":{"id":49892,"data":{"date":"2025-08-04","repo":{"name":"github.com/gruntwork-io/terratest","commit":"22239bcfbf8858392ae35bd966fee2b3481346f0"},"scorecard":{"version":"v5.2.1-28-gc1d103a9","commit":"c1d103a9bb9f635ec7260bf9aa0699466fa4be0e"},"score":6.2,"checks":[{"name":"Token-Permissions","score":10,"reason":"GitHub workflow tokens follow principle of least privilege","details":["Info: topLevel 'contents' permission set to 'read': .github/workflows/ci.yml:43","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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#token-permissions"}},{"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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#code-review"}},{"name":"Maintained","score":10,"reason":"30 commit(s) and 1 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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#maintained"}},{"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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#cii-best-practices"}},{"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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#binary-artifacts"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#security-policy"}},{"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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#license"}},{"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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#fuzzing"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#branch-protection"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v0.50.0 not signed: https://api.github.com/repos/gruntwork-io/terratest/releases/225408734","Warn: release artifact v0.49.0 not signed: https://api.github.com/repos/gruntwork-io/terratest/releases/217396602","Warn: release artifact v0.48.2 not signed: https://api.github.com/repos/gruntwork-io/terratest/releases/198377563","Warn: release artifact v0.48.1 not signed: https://api.github.com/repos/gruntwork-io/terratest/releases/191269846","Warn: release artifact v0.48.0 not signed: https://api.github.com/repos/gruntwork-io/terratest/releases/190014891","Warn: release artifact v0.50.0 does not have provenance: https://api.github.com/repos/gruntwork-io/terratest/releases/225408734","Warn: release artifact v0.49.0 does not have provenance: https://api.github.com/repos/gruntwork-io/terratest/releases/217396602","Warn: release artifact v0.48.2 does not have provenance: https://api.github.com/repos/gruntwork-io/terratest/releases/198377563","Warn: release artifact v0.48.1 does not have provenance: https://api.github.com/repos/gruntwork-io/terratest/releases/191269846","Warn: release artifact v0.48.0 does not have provenance: https://api.github.com/repos/gruntwork-io/terratest/releases/190014891"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#signed-releases"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:49: update your workflow using https://app.stepsecurity.io/secureworkflow/gruntwork-io/terratest/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:54: update your workflow using https://app.stepsecurity.io/secureworkflow/gruntwork-io/terratest/ci.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:81: update your workflow using https://app.stepsecurity.io/secureworkflow/gruntwork-io/terratest/ci.yml/main?enable=pin","Warn: containerImage not pinned by hash: docs/Dockerfile:1: pin your Docker image by updating ruby:2.6.2-stretch to ruby:2.6.2-stretch@sha256:d5af6b19da8381014f59e79245ae242dd5ea8dfe1a8a6c0e2bc481366f1e92b9","Warn: containerImage not pinned by hash: examples/docker-compose-stdout-example/Dockerfile:2: pin your Docker image by updating ubuntu:20.04 to ubuntu:20.04@sha256:8feb4d8ca5354def3d8fce243717141ce31e2c428701f6682bd2fafe15388214","Warn: containerImage not pinned by hash: examples/docker-hello-world-example/Dockerfile:2: pin your Docker image by updating ubuntu:18.04 to ubuntu:18.04@sha256:152dc042452c496007f07ca9127571cb9c29697f42acbfad72324b2bb2e43c98","Warn: containerImage not pinned by hash: test-docker-images/gruntwork-amazon-linux-test/Dockerfile:2: pin your Docker image by updating amazonlinux:2017.12 to amazonlinux:2017.12@sha256:df609b745f6a886d7b0724a0be3e0d895e0075da0c6e9102194e5f523e527972","Warn: containerImage not pinned by hash: test-docker-images/gruntwork-centos-test/Dockerfile:1: pin your Docker image by updating centos/systemd:latest to centos/systemd:latest@sha256:09db0255d215ca33710cc42e1a91b9002637eeef71322ca641947e65b7d53b58","Warn: containerImage not pinned by hash: test-docker-images/gruntwork-ubuntu-test/Dockerfile:1: pin your Docker image by updating ubuntu:22.04 to ubuntu:22.04@sha256:1ec65b2719518e27d4d25f104d93f9fac60dc437f81452302406825c46fcc9cb","Warn: containerImage not pinned by hash: test-docker-images/moto/Dockerfile:1: pin your Docker image by updating ubuntu:16.04 to ubuntu:16.04@sha256:1f1a2d56de1d604801a9671f301190704c25d604a416f59e03c04f5c6ffee0d6","Warn: containerImage not pinned by hash: test/fixtures/docker-compose-with-buildkit/Dockerfile:2","Warn: containerImage not pinned by hash: test/fixtures/docker-with-buildkit/Dockerfile:2","Warn: containerImage not pinned by hash: test/fixtures/docker/Dockerfile:2","Warn: containerImage not pinned by hash: test/fixtures/docker/Dockerfile:7","Warn: downloadThenRun not pinned by hash: test-docker-images/gruntwork-amazon-linux-test/Dockerfile:22-24","Warn: pipCommand not pinned by hash: test-docker-images/gruntwork-amazon-linux-test/Dockerfile:22-24","Warn: pipCommand not pinned by hash: test-docker-images/gruntwork-amazon-linux-test/Dockerfile:27","Warn: pipCommand not pinned by hash: test-docker-images/gruntwork-centos-test/Dockerfile:24-26","Warn: pipCommand not pinned by hash: test-docker-images/gruntwork-centos-test/Dockerfile:24-26","Warn: pipCommand not pinned by hash: test-docker-images/gruntwork-centos-test/Dockerfile:24-26","Warn: pipCommand not pinned by hash: test-docker-images/gruntwork-ubuntu-test/Dockerfile:29-30","Warn: pipCommand not pinned by hash: test-docker-images/gruntwork-ubuntu-test/Dockerfile:29-30","Warn: pipCommand not pinned by hash: test-docker-images/moto/Dockerfile:4-11","Warn: pipCommand not pinned by hash: test-docker-images/moto/Dockerfile:4-11","Warn: pipCommand not pinned by hash: test-docker-images/moto/Dockerfile:4-11","Warn: pipCommand not pinned by hash: test-docker-images/moto/Dockerfile:4-11","Warn: pipCommand not pinned by hash: test-docker-images/moto/Dockerfile:4-11","Warn: downloadThenRun not pinned by hash: .github/workflows/ci.yml:60","Info:   0 out of   1 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 third-party GitHubAction dependencies pinned","Info:   0 out of  11 containerImage dependencies pinned","Info:   0 out of   2 downloadThenRun dependencies pinned","Info:   0 out of  12 pipCommand 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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#pinned-dependencies"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#sast"}},{"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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-14T23:31:27.539Z","repository_id":37533006,"created_at":"2025-08-14T23:31:27.539Z","updated_at":"2025-08-14T23:31:27.539Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28414732,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T08:38:59.149Z","status":"ssl_error","status_checked_at":"2026-01-14T08:38:43.588Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["aws","devops","docker","golang","packer","terraform","testing","testing-library"],"created_at":"2024-07-30T22:00:21.715Z","updated_at":"2026-01-17T22:35:37.190Z","avatar_url":"https://github.com/gruntwork-io.png","language":"Go","funding_links":["https://github.com/sponsors/gruntwork-io"],"categories":["Popular","Go","开源类库","Tools","Testing","Open source library","Continuous Integration","蓝队工具","Testing Tools","aws","testing","golang","Climbing"],"sub_categories":["测试","Tests","Miscellaneous","Test","Messaging","Community providers","IAC(Infrastructure-as-Code)扫描","Chess :chess_pawn:"],"readme":"# Terratest\n\n[![Maintained by Gruntwork.io](https://img.shields.io/badge/maintained%20by-gruntwork.io-%235849a6.svg)](https://gruntwork.io/?ref=repo_terratest)\n[![CircleCI](https://dl.circleci.com/status-badge/img/gh/gruntwork-io/terratest/tree/main.svg?style=svg\u0026circle-token=8abd167739d60e4c1b6c1502d2092339a6c6a133)](https://dl.circleci.com/status-badge/redirect/gh/gruntwork-io/terratest/tree/main)\n[![Go Report Card](https://goreportcard.com/badge/github.com/gruntwork-io/terratest)](https://goreportcard.com/report/github.com/gruntwork-io/terratest)\n[![go.dev reference](https://img.shields.io/badge/go.dev-reference-007d9c?logo=go\u0026logoColor=white\u0026style=flat-square)](https://pkg.go.dev/mod/github.com/gruntwork-io/terratest?tab=overview)\n![go.mod version](https://img.shields.io/github/go-mod/go-version/gruntwork-io/terratest)\n\nTerratest is a Go library that makes it easier to write automated tests for your infrastructure code. It provides a\nvariety of helper functions and patterns for common infrastructure testing tasks, including:\n\n- Testing Terraform code\n- Testing Packer templates\n- Testing Docker images\n- Executing commands on servers over SSH\n- Working with AWS APIs\n- Working with Azure APIs\n- Working with GCP APIs\n- Working with Kubernetes APIs\n- Testing Helm Charts\n- Making HTTP requests\n- Running shell commands\n- And much more\n\nPlease see the following for more info:\n\n- [Terratest Website](https://terratest.gruntwork.io)\n- [Getting started with Terratest](https://terratest.gruntwork.io/docs/getting-started/quick-start/)\n- [Terratest Documentation](https://terratest.gruntwork.io/docs/)\n- [Contributing to Terratest](https://terratest.gruntwork.io/docs/community/contributing/)\n- [Commercial Support](https://gruntwork.io/support/)\n\n## License\n\nThis code is released under the Apache 2.0 License. Please see [LICENSE](LICENSE) and [NOTICE](NOTICE) for more details.\n\nCopyright \u0026copy; 2025 Gruntwork, Inc.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgruntwork-io%2Fterratest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgruntwork-io%2Fterratest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgruntwork-io%2Fterratest/lists"}