Skip to content

Conversation

einalien
Copy link
Owner

@einalien einalien commented Nov 1, 2026 •

Summary

Extend the GitHub Actions CI workflow with static code analysis and security checks for the OpenTofu infrastructure.

Changes

  • Add TFLint with recommended Terraform-language rules.
  • Add Checkov to scan OpenTofu configurations and GitHub Actions workflows.
  • Pin tool versions for reproducible CI runs.
  • Exclude generated .terraform/ directories from security scans.
  • Declare required OpenTofu versions in reusable modules.
  • Use the system Python installation with a virtual environment for Checkov on Debian 13.
  • Add python3-venv to the runner's cloud-init dependencies.

Validation

  • Existing OpenTofu formatting and validation checks pass.
  • TFLint completes successfully.
  • Checkov completes successfully.
  • GitHub Actions CI passes on the self-hosted runner.

@einalien einalien self-assigned this Nov 1, 2026
@einalien einalien added the enhancement New feature or request label Nov 1, 2026
@einalien einalien merged commit 9eb519f into main Nov 1, 2026
1 check passed
@einalien einalien deleted the feat/ci-static-analysis branch November 1, 2026 02:09
Sign in to join this conversation on GitHub.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant