Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 914 Bytes

README.md

File metadata and controls

29 lines (22 loc) · 914 Bytes

Policy Checker

This is a tool that can be used both locally and in CI to determine if your repository is compliant with your Organisation's Policy as Code.

Policy location and versions are determined by:

  • Terraform: Scans policy_checker.json file in your repository looking for 3 keys:
    {
        "source": "https://github.com/appvia/policy",
        "version": "1.0.1",
        "config": "infra/generic/config.yaml"
    }
  • Kubernetes: Not yet implemented

Usage

The following env vars can be set (defaulted to false) depending on the checks you wish to run:

  • RUN_CHECKOV_POLICIES: true
  • RUN_KYVERNO_POLICIES: true
$ docker run --rm -v ${PWD}:/workdir -e RUN_CHECKOV_POLICIES=true ghcr.io/appvia/policy-checker

Examples