{"id":30735515,"url":"https://github.com/addresscloud/terraform-cloud-action","last_synced_at":"2025-09-03T20:05:43.495Z","repository":{"id":39893483,"uuid":"220467241","full_name":"addresscloud/terraform-cloud-action","owner":"addresscloud","description":"An action to run a Terraform Cloud workspace","archived":false,"fork":false,"pushed_at":"2023-04-21T02:37:08.000Z","size":1142,"stargazers_count":13,"open_issues_count":15,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-02T18:49:51.427Z","etag":null,"topics":["actions","github-actions","terraform","terraform-cloud"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/addresscloud.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}},"created_at":"2019-11-08T12:57:55.000Z","updated_at":"2024-10-29T14:30:19.000Z","dependencies_parsed_at":"2023-02-05T02:45:28.336Z","dependency_job_id":null,"html_url":"https://github.com/addresscloud/terraform-cloud-action","commit_stats":{"total_commits":198,"total_committers":3,"mean_commits":66.0,"dds":0.3282828282828283,"last_synced_commit":"c9bf0f5c033a88c8e3cd5943382b21b672be866c"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/addresscloud/terraform-cloud-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/addresscloud%2Fterraform-cloud-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/addresscloud%2Fterraform-cloud-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/addresscloud%2Fterraform-cloud-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/addresscloud%2Fterraform-cloud-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/addresscloud","download_url":"https://codeload.github.com/addresscloud/terraform-cloud-action/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/addresscloud%2Fterraform-cloud-action/sbom","scorecard":{"id":166005,"data":{"date":"2025-08-11","repo":{"name":"github.com/addresscloud/terraform-cloud-action","commit":"c9bf0f5c033a88c8e3cd5943382b21b672be866c"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.7,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"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":"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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/nodejs.yml: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":"Code-Review","score":0,"reason":"Found 0/18 approved changesets -- score normalized to 0","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":"Pinned-Dependencies","score":3,"reason":"dependency not pinned by hash detected -- score normalized to 3","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/nodejs.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/addresscloud/terraform-cloud-action/nodejs.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/nodejs.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/addresscloud/terraform-cloud-action/nodejs.yml/master?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   1 out of   1 npmCommand 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":"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":"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"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: Mozilla Public 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":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 12 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"}},{"name":"Vulnerabilities","score":0,"reason":"44 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-7r3h-m5j6-3q42","Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-cph5-m8f7-6c5x","Warn: Project is vulnerable to: GHSA-wf5p-g6vw-rhxx","Warn: Project is vulnerable to: GHSA-jr5f-v2jv-69x6","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-x9w5-v3q2-3rhw","Warn: Project is vulnerable to: GHSA-w8qv-6jwh-64r5","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq","Warn: Project is vulnerable to: GHSA-434g-2637-qmqr","Warn: Project is vulnerable to: GHSA-49q7-c7j4-3p7m","Warn: Project is vulnerable to: GHSA-977x-g7h5-7qgw","Warn: Project is vulnerable to: GHSA-f7q4-pwc6-w24p","Warn: Project is vulnerable to: GHSA-fc9h-whq2-v747","Warn: Project is vulnerable to: GHSA-vjh7-7g9h-fjfh","Warn: Project is vulnerable to: GHSA-2j2x-2gpw-g8fm","Warn: Project is vulnerable to: GHSA-74fj-2j2h-c42q","Warn: Project is vulnerable to: GHSA-pw2r-vq6v-hr8c","Warn: Project is vulnerable to: GHSA-jchw-25xp-jwwc","Warn: Project is vulnerable to: GHSA-cxjh-pqwp-8mfp","Warn: Project is vulnerable to: GHSA-4q6p-r6v2-jvc5","Warn: Project is vulnerable to: GHSA-ww39-953v-wcq6","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-76p3-8jx3-jpfq","Warn: Project is vulnerable to: GHSA-3rfm-jhwj-7488","Warn: Project is vulnerable to: GHSA-hhq3-ff78-jv3g","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-r683-j2x4-v87g","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j","Warn: Project is vulnerable to: GHSA-g6ww-v8xp-vmwg","Warn: Project is vulnerable to: GHSA-h7cp-r72f-jxh6","Warn: Project is vulnerable to: GHSA-v62p-rq8g-8h59","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-4wf5-vphf-c2xc","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-16T14:52:58.363Z","repository_id":39893483,"created_at":"2025-08-16T14:52:58.363Z","updated_at":"2025-08-16T14:52:58.363Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273501981,"owners_count":25117095,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-03T02:00:09.631Z","response_time":76,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["actions","github-actions","terraform","terraform-cloud"],"created_at":"2025-09-03T20:02:59.111Z","updated_at":"2025-09-03T20:05:43.473Z","avatar_url":"https://github.com/addresscloud.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# terraform-cloud-action\n\n[![standard-readme compliant](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme) [![Build Status](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Faddresscloud%2Fterraform-cloud-action%2Fbadge%3Fref%3Dmaster\u0026style=flat-square)](https://actions-badge.atrox.dev/addresscloud/terraform-cloud-action/goto?ref=master) [![codecov](https://codecov.io/gh/addresscloud/terraform-cloud-action/branch/master/graph/badge.svg)](https://codecov.io/gh/addresscloud/terraform-cloud-action)\n\n\u003e An action to run Terraform Cloud workspaces\n\nThis action submits a run to a Terraform Cloud workspace which performs a plan and apply. The action can be configured to return a success once the run is succesfully submitted, or it can wait for the plan to be applied by periodically polling Terraform Cloud for run status updates.\n\n## Table of Contents\n\n- [Usage](#usage)\n- [Maintainers](#maintainers)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Usage\n\nTerraform Cloud requires a .tar.gz archive containing the Terraform configuration, and build artifacts if required. The example shows a GitHub workflow archiving Lambda functions (in the `build` directory) alongside a Terraform configuration (in the `infrastructure` directory) for deployment. The archive is then passed to the action for deployment by Terraform Cloud.\n\n```yml\n- name: Create tar gz file\n  run: tar --exclude *.terraform* -zcvf build.tar.gz build infrastructure\n\n- name: Terraform Cloud\n  uses: addresscloud/terraform-cloud-action@v1.0.0\n  with:\n    tfToken: ${{ secrets.TERRAFORM_TOKEN }}\n    tfOrg: '\u003cORGANISATION\u003e'\n    tfWorkspace: 'my-lambda-service'\n    filePath: './build.tar.gz'\n    identifier: ${{ github.sha }}\n```\n\nIf the `awaitApply` variable is set then once a run is confirmed the Action will poll Terraform Cloud and return success when the run status is either `planned_and_finished` or `applied`. In this example the Action will poll for updates every 60 seconds, for a maximum of 5 times. If the limit is reached before the run is complete the Action will return an error.\n\n```yml\n- name: Create tar gz file\n  run: tar --exclude *.terraform* -zcvf build.tar.gz build infrastructure\n\n- name: Terraform Cloud\n  uses: addresscloud/terraform-cloud-action@v1.0.0\n  with:\n    tfToken: ${{ secrets.TERRAFORM_TOKEN }}\n    tfOrg: '\u003cORGANISATION\u003e'\n    tfWorkspace: 'my-lambda-service'\n    filePath: './build.tar.gz'\n    identifier: ${{ github.sha }}\n    awaitApply: true\n    awaitInterval: 60\n    retryLimit: 5\n```\n\n\n### Inputs\n\nThe inputs below are required by the action to submit the run to Terraform Cloud. Additional workspace variables and settings should be configured using the Terraform Cloud UI. \n\n#### `tfToken`\n \n**Required** - Terraform Cloud access token.\n\n#### `tfOrganization`\n\n**Required** - Terraform Cloud Organization.\n\n#### `tfWorkspace`\n\n**Required** - Name of existing Terraform Cloud workspace.\n\n#### `filePath`\n\n**Required** - Path to .tar.gz archive with Terraform configuration.\n\n#### `identifier`\n\n**Required** - Unique identifier for the run (e.g. git commit sha). Reduced to 7 characters for brevity.\n\n#### `awaitApply`\n\nWait for run to apply before completing.\n\nDefault: false\n\n#### `awaitInterval`\n\nDuration to wait (seconds) between sunsequent run status requests.\n\nDefault: 60\n\n#### `retryLimit`\n\nNumber of times to retry Terraform Cloud API requests.\n\nDefault: 5\n\n### Outputs\n\n#### `runId` \n\nThe identfier of the run in Terraform Cloud.\n\n#### `status`\n\nThe status of the run in Terraform Cloud.\n\n### Note on Terraform Modules\n\nIf your repository contains multiple modules, upload the top-level directory and configure the root workspace path in the Terraform Cloud UI. For example, to deploy \n`infrastructure/dev/services/lambda/main.tf` which has references to modules in `infrastructure/modules/services/lambda/module.tf` upload the entire `infrastructure` directory and configure `infrastructure/dev/services/lambda/` as the root of the workspace in the Terraform Cloud UI.\n\n## Maintainers\n\n[@tomasholderness](https://github.com/tomasholderness)\n\n## Contributing\n\nPRs accepted with unit tests.\n\nTo run tests:\n\n```sh\nnpm run test\n```\n\nTo check code lint:\n\n```sh\nnpm run lint\n```\n\nSmall note: If editing the README, please conform to the [standard-readme](https://github.com/RichardLitt/standard-readme) specification.\n\nThis Action was based on the example Terraform Enterprise script at: https://github.com/hashicorp/terraform-guides/tree/master/operations/automation-script\n\n## License\n\nMPL-2.0 © 2020 Addresscloud Limited\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faddresscloud%2Fterraform-cloud-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faddresscloud%2Fterraform-cloud-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faddresscloud%2Fterraform-cloud-action/lists"}