{"id":20397980,"url":"https://github.com/beacon-biosignals/terraform-action","last_synced_at":"2026-03-19T15:39:39.651Z","repository":{"id":262682700,"uuid":"887445826","full_name":"beacon-biosignals/terraform-action","owner":"beacon-biosignals","description":"GitHub actions for Terraform","archived":false,"fork":false,"pushed_at":"2025-02-18T19:54:23.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":15,"default_branch":"main","last_synced_at":"2025-02-18T20:42:07.089Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/beacon-biosignals.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}},"created_at":"2024-11-12T18:57:12.000Z","updated_at":"2025-02-18T19:54:25.000Z","dependencies_parsed_at":"2025-02-18T20:33:19.222Z","dependency_job_id":"d505f6ad-24c3-451e-a544-aa91662bcebc","html_url":"https://github.com/beacon-biosignals/terraform-action","commit_stats":null,"previous_names":["beacon-biosignals/terraform-action"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beacon-biosignals%2Fterraform-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beacon-biosignals%2Fterraform-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beacon-biosignals%2Fterraform-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beacon-biosignals%2Fterraform-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/beacon-biosignals","download_url":"https://codeload.github.com/beacon-biosignals/terraform-action/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241945526,"owners_count":20046869,"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","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-11-15T04:17:41.514Z","updated_at":"2026-03-19T15:39:39.645Z","avatar_url":"https://github.com/beacon-biosignals.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Terraform Action\n\nProvides a GitHub action for performing Terraform subcommands apply or destroy. For more\ndetails see the README for the respective subcommand actions:\n\n- [`apply`](./apply)\n- [`destroy`](./destroy)\n\n## Example\n\n```yaml\n---\non:\n  pull_request:\n    types:\n      - opened\n      - closed\njobs:\n  apply:\n    name: Apply\n    if: ${{ github.event.action == 'opened' }}\n    # These permissions are needed to:\n    # - Checkout the repository\n    permissions:\n      contents: read\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v6\n      - uses: hashicorp/setup-terraform@v4\n        with:\n          terraform_version: \"~1.13\"\n          # Graceful termination on cancellation is not compatible with the wrapper\n          terraform_wrapper: false\n      - name: Deploy Terraform resources\n        id: terraform\n        uses: beacon-biosignals/terraform-action/apply@v1\n        with:\n          workspace: ${{ github.event.number }}\n          variables: |-\n            name: Demo\n\n  destroy:\n    name: Destroy\n    if: ${{ github.event.action == 'closed' }}\n    # These permissions are needed to:\n    # - Checkout the repository\n    permissions:\n      contents: read\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v6\n      - uses: hashicorp/setup-terraform@v4\n        with:\n          terraform_version: \"~1.13\"\n          # Graceful termination on cancellation is not compatible with the wrapper\n          terraform_wrapper: false\n      - name: Destroy Terraform resources\n        id: terraform\n        uses: beacon-biosignals/terraform-action/destroy@v1\n        with:\n          workspace: ${{ github.event.number }}\n          variables: |-\n            name: Demo\n```\n\n## Permissions\n\nNo [job permissions](https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs) are required to run this action.\n\n## Cancellation and `hashicorp/setup-terraform`\n\nThese actions attempt to forward signals used by Github Actions to cancel running jobs to Terraform in order to allow Terraform to exit gracefully.  If Terraform does _not_ exit gracefully, it may leave lockfiles or incorrect state around.\n\nThese actions _do not_ install Terraform for you; if you are installing Terraform using the `setup-terraform` action, you _must_ set `terraform_wrapper: false` as in the examples above.  Otherwise, the `terraform` executable is a Node wrapper which is incapable of forwarding any signals to the actual `terraform` binary.  See [this discussion](https://github.com/orgs/community/discussions/26311#discussioncomment-7571648) for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeacon-biosignals%2Fterraform-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbeacon-biosignals%2Fterraform-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeacon-biosignals%2Fterraform-action/lists"}