mbainter / terraform-composite-actions

Contains composit GitHub actions for use with Terraform AWS Module workflows

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Terraform Composite GitHub :octocat: Actions

Contains composite GitHub actions used within Terraform AWS Module projects.



The clowdhaus/terraform-composite-actions/commit action will commit any changes back to your git-branch. When used in conjunction with clowdhaus/terraform-composite-actions/pre-commit, this action will ensure that pull-requests are well formatted and the automatically generated documentation is updated.

GitHub Token Permissions

A GitHub personal access token is required in order for the action to be able to successfully commit and push any changes back to the specified branch.


⚠️ Access Tokens & Pull-Requests from Forked Reposiories ⚠️

When using this action from a forked copy, it will only succeed if either of two conditions are met:

  1. The user who has forked the project must create a GitHub personal access token with the defined permissions and store it in their forked repository under the same name as the upstream secret (defined in the workflow file)
  2. The entity that presides over the source repository extends access to the secret (you should be mindful of what this means - extending secret access to forked repositories means those forks could potentially retrieve those secret values) via
    name: Commit changes
    runs-on: ubuntu-latest
      - name: Commit changes
        uses: clowdhaus/terraform-composite-actions/commit@main
          git-branch: ${{ github.event.pull_request.head.ref }}
          github-repository: ${{github.event.pull_request.head.repo.full_name}}
          github-token: ${{ secrets.YOUR_GITHUB_PAT }}


The clowdhaus/terraform-composite-actions/directories action will return a list of directories that contain a, where the presence of a file is loosely representative of a Terraform project root directory. This is useful for running a set of commands in each Terraform root directory under a given project.

    name: Get Terraform directories
    runs-on: ubuntu-latest
      - name: Sign AWS Lambda artifact
        uses: clowdhaus/terraform-composite-actions/directories@main
        id: search
      - name: Outputs
        run: echo "${{ }}"


The clowdhaus/terraform-composite-actions/pre-commit action will install the following tools which are intended to support the pre-commit hooks used within Terraform modules:

    name: Pre-commit hooks execute
    runs-on: ubuntu-latest
      - name: Sign AWS Lambda artifact
        uses: clowdhaus/terraform-composite-actions/pre-commit@main
          terraform-version: 1.2.0
          terraform-docs-version: v16.0.0
          install-hcledit: true
          hcledit-version: 0.2.3
          args: "--all-files --color always --show-diff-on-failure"


Apache-2.0 Licensed. See LICENSE.

ezoic increase your site revenue


Contains composit GitHub actions for use with Terraform AWS Module workflows

License:Apache License 2.0