terraform-security-scan

Automate security scanning of Terraform configurations for Azure infrastructure.

19|5|Updated Jan 12, 2026
One-click install
npx skills add https://github.com/thomast1906/github-copilot-skills-terraform --skill terraform-security-scan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: terraform-security-scan
Source: https://github.com/thomast1906/github-copilot-skills-terraform/tree/main/.github/skills/terraform-security-scan
Command: npx skills add https://github.com/thomast1906/github-copilot-skills-terraform --skill terraform-security-scan

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill automates the security scanning and compliance verification of Terraform configurations for Azure, helping teams identify vulnerabilities and misconfigurations before deployment.

Core Features & Use Cases

  • Static security analysis with tfsec for Terraform Azure configurations
  • Compliance alignment with Azure Security Benchmark and CIS Azure Foundations
  • CI/CD integration for pull request gates and pre-deployment checks in Azure Pipelines or GitHub Actions

Quick Start

Install tfsec and checkov, then run tfsec . and checkov -d . --framework terraform --check CKV_AZURE

Frequently Asked Questions about terraform-security-scan

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

FAQPage Schema
How do I automate Terraform security scans for Azure in a CI/CD pipeline?

Automate Terraform security scans for Azure by integrating this Skill as a pull request gate or pre-deployment check in Azure Pipelines or GitHub Actions. It runs static analysis with tfsec and checkov to identify vulnerabilities before deployment.

What compliance benchmarks are covered when scanning Azure Terraform configurations?

Scanning Azure Terraform configurations covers Azure CAF, CIS Azure Foundations, and TF security benchmarks. This ensures your infrastructure meets strict compliance requirements before code is merged or deployed.

Do I need to install tfsec and checkov before running Terraform compliance checks?

Yes, you need tfsec and checkov installed in your execution environment via package managers or CI runners before running Terraform compliance checks. The Skill automates the scan execution but relies on these external tools being present.

Can I use this to run pre-deployment security checks for Terraform on Azure?

Yes, you can use this Skill to run pre-deployment security checks for Terraform on Azure. It targets CI/CD workflows to identify misconfigurations and vulnerabilities in your infrastructure code prior to release.

What is the best way to check Terraform code against the CIS Azure Foundations benchmark?

The best way to check Terraform code against the CIS Azure Foundations benchmark is using checkov with the framework flag. This Skill orchestrates checkov to validate configurations against CIS standards and Azure security benchmarks.

Why run static security analysis on Terraform before deploying Azure infrastructure?

Run static security analysis on Terraform before deploying Azure infrastructure to catch misconfigurations and vulnerabilities early. Integrating these scans into CI/CD gates prevents non-compliant code from reaching production environments.