terraform-github-actions-deploy

Create secure GitHub Actions pipelines for Terraform and Terragrunt deployments.

4|Updated Mar 6, 2026
One-click install
npx skills add https://github.com/accolver/skill-maker --skill terraform-github-actions-deploy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: terraform-github-actions-deploy
Source: https://github.com/accolver/skill-maker/tree/main/terraform-github-actions-deploy
Command: npx skills add https://github.com/accolver/skill-maker --skill terraform-github-actions-deploy

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

Create secure GitHub Actions workflows for Terraform or Terragrunt deployments.

Core Features & Use Cases

  • PR plan on infrastructure changes to validate changes before merge.
  • Apply on merge with robust access controls using Workload Identity Federation or OIDC.
  • Per-environment workflows and reusable templates to standardize deployments.
  • Security hardening with pinned actions and integration of scanners like tfsec and checkov.

Quick Start

Ask your agent to generate Terraform/Terragrunt deployment workflows for your repository and tailor them to your environment.

Frequently Asked Questions about terraform-github-actions-deploy

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up secure GitHub Actions workflows for Terraform deployments?

To set up secure GitHub Actions workflows for Terraform, generate pipelines that enforce SHA-pinned actions, proper permissions, and concurrency controls. These workflows validate infrastructure changes with a PR plan and execute automatic apply on merge using Workload Identity Federation or OIDC.

Does this CI/CD pipeline support Terragrunt and Workload Identity Federation?

Yes, this CI/CD pipeline supports Terragrunt deployments alongside Terraform. It uses Workload Identity Federation or OIDC for robust access controls, applying per-environment safeguards during the automatic apply on merge process.

How can I run a Terraform plan on pull requests before merging infrastructure code?

To run a Terraform plan on pull requests, configure a workflow triggered on pull_request events for your infrastructure/ directory. This validates infrastructure changes before merge by automatically executing the plan and checking for issues.

How do I integrate tfsec and checkov security scans into my Terraform GitHub Actions?

To integrate tfsec and checkov security scans into your Terraform GitHub Actions, generate workflows that automatically include these scanners. This security hardening ensures your infrastructure code is checked for vulnerabilities during the CI/CD process.

What is the best way to manage per-environment Terraform deployments with GitHub Actions?

The best way to manage per-environment Terraform deployments is using per-environment workflows and reusable templates. This standardizes deployments and enforces robust access controls with per-environment safeguards during the apply step.

Why should I pin GitHub Actions by SHA for Terraform CI/CD pipelines?

You should pin GitHub Actions by SHA for Terraform CI/CD pipelines to enforce security hardening. This prevents unauthorized modifications from affecting your infrastructure deployments, complementing proper permissions and concurrency controls.