This repository contains reusable GitHub Actions workflows for managing Terragrunt operations.
- Terragrunt Plan (
terragrunt-plan.yml): Runsterragrunt planto preview infrastructure changes. - Terragrunt Format (
terragrunt-format.yml): Runsterragrunt hclfmtto format Terragrunt configuration files. - Terragrunt Apply (
terragrunt-apply.yml): Runsterragrunt applyto apply infrastructure changes.
TERRAGRUNT_GITHUB_TOKEN: GitHub token for managing repositories and teams.GCP_SERVICE_ACCOUNT_KEY(optional): GCP service account key for Terragrunt operations requiring GCP authentication.
To use these workflows in your repository, reference them in your GitHub Actions workflow file:
jobs:
terragrunt-plan:
uses: org-name/github-action-templates/.github/workflows/terragrunt-plan.yml@main
with:
working-directory: path/to/your/terragrunt/code
secrets:
TERRAGRUNT_GITHUB_TOKEN: ${{ secrets.TERRAGRUNT_GITHUB_TOKEN }}
GCP_SERVICE_ACCOUNT_KEY: ${{ secrets.GCP_SERVICE_ACCOUNT_KEY }}Replace org-name with your GitHub organization or username, and adjust the working-directory to point to your Terragrunt configuration files.