https://github.com/quixoticmonk/conformity-template-scanner
GitHub action which scans Terraform/CloudFormation templates using cloud conformity template scanner api.
https://github.com/quixoticmonk/conformity-template-scanner
conformity iac-scanner trendmicro
Last synced: about 2 months ago
JSON representation
GitHub action which scans Terraform/CloudFormation templates using cloud conformity template scanner api.
- Host: GitHub
- URL: https://github.com/quixoticmonk/conformity-template-scanner
- Owner: quixoticmonk
- License: mit
- Created: 2024-01-24T00:07:06.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-18T18:37:07.000Z (over 2 years ago)
- Last Synced: 2025-03-05T15:27:09.699Z (over 1 year ago)
- Topics: conformity, iac-scanner, trendmicro
- Language: Python
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
# Conformity Template Scanner
[](https://api.securityscorecards.dev/projects/github.com/quixoticmonk/conformity-template-scanner)
A GitHub action to scan your infrastructure templates modelled either in Terraform or CloudFormation. The type of resources scanned depends on the currently supported list from Cloud Conformity.
## Pre-requisites
- You have a Cloud Conformity API key
- You know the Cloud Conformity region
## Usage
```yaml
- name: Initiate scan
uses: quixoticmonk/conformity-template-scanner@v1
with:
conformity_region: "us-1"
conformity_api_key: ${{secrets.conformity_api_key}}
template_type: "terraform-template"
template_path: "infra/tf_plan.json"
```
## Input
| Input | Description |
|--------------------|-----------------------------------|
| conformity_region | Your Cloud Conformity region |
| conformity_api_key | Your Cloud Conformity API key |
| template_type | Your infrastructure template type |
| template_path | Path of the template to scan |
## Output
The action reviews the generated CloudFormation template or Terraform plan against the conformity api to provide you a categorized output of rules , their risk levels and status. The script is further configured to fail with an exit code of 1 in case of high or Very_high findings.
The output generated will be a json the format below
```bash
{
"DNS Compliant S3 Bucket Names": {
"risk": "LOW",
"status": "SUCCESS"
},
"Enable S3 Block Public Access for S3 Buckets": {
"risk": "MEDIUM",
"status": "FAILURE"
},
.....
"Secure Transport": {
"risk": "MEDIUM",
"status": "FAILURE"
},
"Server Side Encryption": {
"risk": "HIGH",
"status": "FAILURE"
},
"Tags": {
"risk": "LOW",
"status": "FAILURE"
}
}
{'VERY_HIGH': 10, 'MEDIUM': 3, 'LOW': 7, 'HIGH': 1}
```