serenis-health/Evaluate Terraform policies
Evaluates Open Policy Agent (OPA) policies against a Terraform Plan
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| policy-files | A list of file paths or directories containing OPA policies to evaluate. | yes | — |
| plan-file-path | The file path to the Terraform plan file to be evaluated. | yes | — |
| opa-package-name | The OPA package name to use for evaluation. | no | data.terraform |
| deny-key | The key in the OPA policy evaluation that indicates a denial. | no | deny |
| warn-key | The key in the OPA policy evaluation that indicates a warning. | no | warn |
| exit-on-deny | Whether to exit with a non-zero code if any deny policies are triggered. | no | true |
| exit-on-warn | Whether to exit with a non-zero code if any warn policies are triggered. | no | false |
| opa-version | The version of Open Policy Agent to use. | no | latest |
Outputs
| name | description |
|---|---|
| has-denies | Indicates if any deny policies were triggered. |
| denies | A list of messages from denied policies. |
| has-warnings | Indicates if any warn policies were triggered. |
| warnings | A list of messages from warned policies. |
| allowed | Indicates if the policy evaluation did not result in any denies. |