{"id":35038439,"url":"https://github.com/bruceharrison1984/terraform-push-module","last_synced_at":"2026-05-22T03:04:18.390Z","repository":{"id":255417398,"uuid":"849565150","full_name":"bruceharrison1984/terraform-push-module","owner":"bruceharrison1984","description":"GitHub action for pushing private Terraform modules to TFC/TFE","archived":false,"fork":false,"pushed_at":"2025-02-15T00:33:24.000Z","size":351,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-28T22:00:01.241Z","etag":null,"topics":["hcp-terraform","hcp-terraform-module","module","terraform","tfe","tfe-module"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/bruceharrison1984.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":"2024-08-29T20:26:39.000Z","updated_at":"2024-08-31T13:57:54.000Z","dependencies_parsed_at":"2024-11-14T10:48:12.045Z","dependency_job_id":null,"html_url":"https://github.com/bruceharrison1984/terraform-push-module","commit_stats":null,"previous_names":["bruceharrison1984/terraform-push-module"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/bruceharrison1984/terraform-push-module","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bruceharrison1984%2Fterraform-push-module","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bruceharrison1984%2Fterraform-push-module/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bruceharrison1984%2Fterraform-push-module/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bruceharrison1984%2Fterraform-push-module/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bruceharrison1984","download_url":"https://codeload.github.com/bruceharrison1984/terraform-push-module/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bruceharrison1984%2Fterraform-push-module/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33326662,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-21T12:23:38.849Z","status":"online","status_checked_at":"2026-05-22T02:00:06.671Z","response_time":265,"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":["hcp-terraform","hcp-terraform-module","module","terraform","tfe","tfe-module"],"created_at":"2025-12-27T08:06:21.244Z","updated_at":"2026-05-22T03:04:18.344Z","avatar_url":"https://github.com/bruceharrison1984.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# terraform-push-module\n\n\u003e [!IMPORTANT]  \n\u003e This Github Action will upload a **private** Terraform module to HCP Terraform or Terraform Enterprise.\n\u003e\n\u003e **Public modules are not supported since the workflow doesn't make sense for a CI/CD context.**\n\n- The module _must_ adhere to [Hashicorp Standard Module guidelines](https://developer.hashicorp.com/terraform/language/modules/develop/structure)\n  - At a minimum, your HCL entry point must be in the root of the repository\n- Only `**/*.tf` and `**/README.md` will be included in the uploaded bundle\n  - Nested sub-modules will be included in the bundle\n- Only single modules can be used, module mono-repos are not supported\n- Version numbers are entirely managed by you, there is no auto-incrementing\n- If a module fails to upload, the version will be deleted from HCP/TFE to avoid conflicts on subsequent runs\n\n## Configuration\n\n### Inputs\n\n| Setting          | Description                                                            | Example                      | Required |\n| ---------------- | ---------------------------------------------------------------------- | ---------------------------- | -------- |\n| serverUri        | The root URI of the HCP Terraform/Enterprise server                    | `https://app.terraform.io`   | Y        |\n| organizationName | The name of the organization this module belongs to                    | `my-org`                     | Y        |\n| moduleName       | The name of the module                                                 | `my-special-module`          | Y        |\n| versionString    | The version tag that will be applied to the module (semver-compatible) | `v1.0.1 \\| 1.0.1`            | Y        |\n| providerName     | The name of the provider associated with this module                   | `aws \\| gcp \\| azure \\| etc` | Y        |\n| authToken        | HCP/TFE token with sufficient permissions to manage modules            | `\u003chcp-token\u003e`                | Y        |\n| isNoCode         | Enable `no-code` workflows for this module. Default is `false`         | `true/false`                 | Y        |\n\n### Outputs\n\n| Name            | Description                                                                             |\n| --------------- | --------------------------------------------------------------------------------------- |\n| archiveFilepath | The file path to the tarball that contains the module code that was uploaded to HCP/TFE |\n| moduleVersion   | The name of the module that was created                                                 |\n| moduleName      | The version number of the module that was created                                       |\n\n## Example\n\n\u003e [!TIP]  \n\u003e Utilize the `actions/upload-artifact` action to save the module tarball as a GitHub artifact after upload to TFC/TFE\n\n```yaml\nname: Terraform Module Push\n\non:\n  workflow_dispatch:\n\njobs:\n  actionlint:\n    name: Push Terraform Module\n    runs-on: ubuntu-22.04\n    steps:\n      - name: Checkout\n        uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5\n      - id: terraform-push-module\n        uses: bruceharrison1984/terraform-push-module@main ## ensure using latest version\n        with:\n          serverUri: https://app.terraform.io\n          organizationName: my-hcp-org\n          moduleName: gcp-artifact-registry\n          authToken: ${{ secrets.TFE_TOKEN }} ## token should be securely stored in GitHub Secrets\n          providerName: aws\n          versionString: v0.0.2 ## version should be sourced from environment\n          isNoCode: \"false\"\n      ## optionally save the tarball to Github Artifacts\n      - uses: actions/upload-artifact@v4\n        with:\n          name: ${{ steps.terraform-push-module.outputs.moduleName }}@${{ steps.terraform-push-module.outputs.moduleVersion }}\n          path: ${{ steps.terraform-push-module.outputs.archiveFilepath }}\n```\n\n## Job Summary\n\nA detailed job summary and link to the created module can be found in the Github Action Summary page:\n![summary_preview](/media/summary_preview.jpg)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbruceharrison1984%2Fterraform-push-module","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbruceharrison1984%2Fterraform-push-module","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbruceharrison1984%2Fterraform-push-module/lists"}