Skip to content

Conversation

@MartinideLimon
Copy link

Add support for scanning OpenTofu configuration files (.tofu and .tofu.json extensions) alongside existing Terraform support.

Changes:

  • Add new input types: OpenTofuHCL, OpenTofuPlan, OpenTofuState, and OpenTofu aggregate type
  • Implement OpenTofuDetector with separate detection logic for .tofu files
  • Update parser to recognize .tofu and .tofu.json extensions
  • Register OpenTofu detector in Auto mode for automatic detection
  • Add comprehensive tests for OpenTofu file and directory detection

OpenTofu is a Terraform-compatible open-source IaC tool. This implementation
maintains separation between Terraform and OpenTofu types, while reusing the same HCL parser since they are compatible.

@MartinideLimon MartinideLimon requested review from a team as code owners October 24, 2025 16:24
@MartinideLimon MartinideLimon requested review from mihai-snyk and removed request for a team October 24, 2025 16:24
@CLAassistant
Copy link

CLAassistant commented Oct 24, 2025

CLA assistant check
All committers have signed the CLA.

@snyk-io
Copy link

snyk-io bot commented Oct 24, 2025

Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
Licenses 0 0 0 0 0 issues
Code Security 0 0 0 0 0 issues
Open Source Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants