Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    Terraform CI/CD Pipeline Setup (GitHub Actions)

    by Saizul Amin

    1

    This skill gives your agent a proven procedure plus scripts that check the facts, so you get the same correct answer every time, with exact fixes instead of vague advice.

    $8

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    Terraform CI/CD Pipeline Setup (GitHub Actions)

    Terraform CI/CD Pipeline Setup (GitHub Actions)

    Example session with this skill installed

    Run the Terraform CI/CD Pipeline Setup skill on my project and give me a prioritised list of what to fix, with exact changes.

    • Read your context and instructions
    • Compiled the terraform ci cd

    Here is what the Terraform CI/CD Pipeline Setup (GitHub Actions) skill produced.

    Demo: real, unedited output of the skill's bundled script on a sample input from its test suite.

    Output

    CRITICAL .github/workflows/tf.yml:1 pull_request_target checks out PR code: untrusted code runs with secrets and cloud credentials  [ci.pr_target_checkout]
    CRITICAL .github/workflows/tf.yml:16 ARM_CLIENT_SECRET has a literal value in the workflow (value hidden): rotate it now and use OIDC  [ci.literal_credentials]
    HIGH     .github/workflows/tf.yml:11 job terraform runs apply on pull_request events: unreviewed, unmerged code changes infrastructure (guard it with if: github.event_name == 'push' && github.ref == 'refs/heads/main')  [ci.apply_on_pr]
    HIGH     .github/workflows/tf.yml:25 -lock=false lets two runs write the same state at once  [ci.lock_disabled]
    HIGH     .github/workflows/tf.yml:36 OIDC login without `permissions: id-token: write`: the job cannot request a token  [ci.oidc_permission]
    MEDIUM   .github/workflows/tf.yml:1 no permissions: block; the GITHUB_TOKEN gets the repository default. Set least privilege, e.g. contents: read, pull-requests: write, id-token: write  [ci.permissions]
    MEDIUM   .github/workflows/tf.yml:8 TF_LOG debug/trace output can print secrets and request bodies into the job log  [ci.tf_log]
    MEDIUM   .github/workflows/tf.yml:11 job terraform applies without an environment: add one with required reviewers as the approval gate  [ci.no_environment]
    MEDIUM   .github/workflows/tf.yml:11 job terraform applies without a concurrency group: parallel runs queue on the state lock or fail  [ci.no_concurrency]
    MEDIUM   .github/workflows/tf.yml:14 AWS_ACCESS_KEY_ID comes from a long-lived secret: switch to OIDC federation (no stored cloud keys)  [ci.static_credentials]
    MEDIUM   .github/workflows/tf.yml:15 AWS_SECRET_ACCESS_KEY comes from a long-lived secret: switch to OIDC federation (no stored cloud keys)  [ci.static_credentials]
    MEDIUM   .github/workflows/tf.yml:21 hashicorp/setup-terraform@main follows a branch; pin a release tag or a full commit SHA  [ci.mutable_action]
    MEDIUM   .github/workflows/tf.yml:22 example-org/tf-helper has no version; pin a release tag or a full commit SHA  [ci.mutable_action]
    MEDIUM   .github/workflows/tf.yml:25 job terraform: apply without a saved plan file applies changes nobody reviewed; use `plan -out=tfplan` and `apply tfplan`  [ci.apply_without_plan]
    LOW      .github/workflows/tf.yml:1 plan file uploaded as an artifact: it contains sensitive values in plain text; set a short retention-days and restrict who can download it  [ci.plan_artifact]
    LOW      .github/workflows/tf.yml:24 add -input=false (or TF_INPUT: false) so a missing variable fails instead of hanging  [ci.input]
    LOW      .github/workflows/tf.yml:25 add -input=false (or TF_INPUT: false) so a missing variable fails instead of hanging  [ci.input]
    
    17 finding(s)
    

    What you do next

    1. Fix the highest-severity items first.
    2. Ask your agent to apply the fixes it suggests, then run the skill again to confirm.
    3. Keep the skill installed and re-run it whenever the project changes.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Build and review CI/CD pipelines for Terraform/OpenTofu - plan on pull requests with the plan posted as a comment, apply only from main through a protected environment with required reviewers, apply exactly the saved plan, concurrency groups, -input=false, no -lock=false, and short-lived cloud credentials through OIDC federation (AWS IAM roles, Azure workload identity, Google workload identity federation) instead of stored keys. Ships a GitHub Actions workflow, an AWS trust policy and Terraform for the OIDC provider and plan/apply roles, plus an audit script that flags long-lived keys, OIDC without id-token write, apply on pull_request, pull_request_target checking out PR code, missing environment or concurrency, branch-pinned actions, TF_LOG debug and weak trust policies (no sub, wildcard repos or branches, no aud).

    Who it's for

    Use when the user wants to automate terraform plan/apply in GitHub Actions or GitLab CI, set up OIDC for Terraform, remove AWS access keys from CI, or review an existing Terraform pipeline.

    What's inside

    • Tested, offline Python script(s): ci_workflow_audit.py (deterministic results, standard library only unless noted)
    • Reference guides: pipelines.md, oidc.md
    • Step-by-step agent instructions in SKILL.md covering: When to use; When not to use; Workflow; Decision points

    Why it's worth it

    Generic prompts guess. This skill gives your agent a proven procedure plus scripts that check the facts, so you get the same correct answer every time, with exact fixes instead of vague advice. See the real demo below.

    Works with every major AI agent

    Built on the open SKILL.md standard: Claude Code, Codex CLI, Cursor, VS Code Copilot, Gemini CLI, Windsurf and 20+ other agents.

    Requirements

    • Python 3.8+ for the bundled scripts
    • No API keys, no account, runs locally

    Open source: saizul/terraform-iac-skills on GitHub (MIT licence, by Saizul Amin).

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse All Claude Skills.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Frequently Asked Questions

    Build and review CI/CD pipelines for Terraform/OpenTofu - plan on pull requests with the plan posted as a comment, apply only from main through a protected environment with required reviewers, apply exactly the saved plan, concurrency groups, -input=false, no -lock=false, and short-lived cloud cr...

    This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

    Connect your AI agent to Agensi through MCP, then ask it to use Terraform CI/CD Pipeline Setup (GitHub Actions) on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.