https://github.com/claranet/terraform-modules-ci
Terraform modules common CI template (Github Actions)
https://github.com/claranet/terraform-modules-ci
actions ci claranet modules terraform
Last synced: 3 months ago
JSON representation
Terraform modules common CI template (Github Actions)
- Host: GitHub
- URL: https://github.com/claranet/terraform-modules-ci
- Owner: claranet
- License: apache-2.0
- Created: 2023-01-17T16:11:15.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2025-04-28T12:45:55.000Z (6 months ago)
- Last Synced: 2025-06-01T00:18:42.147Z (5 months ago)
- Topics: actions, ci, claranet, modules, terraform
- Language: Shell
- Homepage:
- Size: 57.6 KB
- Stars: 2
- Watchers: 5
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# Terraform Azure modules - Generic CI
## Usage
### CI for Terraform module
This CI pipeline does the following:
* Check the Terraform files format and syntax validation
* Lint the module, eventual sub-modules and examples with [TFLint](https://github.com/terraform-linters/tflint) tool.
* Code analysis with [tfsec](https://github.com/aquasecurity/tfsec)
* Check that the `README.md` file content match the module variables, requirements and examples.
* Validate the module for every compatible Terraform version and minimum and latest provider versions
### CI for Terraform projects
In the remote project add this in `.github/workflows/github-ci.yml`:
```yaml
---
name: CI
on: [push]
jobs:
ci:
uses: claranet/terraform-modules-ci/.github/workflows/ci-modules.yaml@main
...
```
#### Notes
* Ref `main` can be changed for testing purpose