Open Policy Agent bundle for automated governance.
Bundles are made available as GitHub releases.
Designed for use by automated governance trusted workflows. Encapsulates verifying all rules required for governance approval, and handling input transformation. Input is expected to be a json list of all Rekor transparency log entries for a given artifact.
data.governance.allow
: Returnstrue
if no violations are found across all governance rules.
Core rules related to security policies. Contains multiple packages for different topics.
data.security.pullrequest.allow
: Returnstrue
if no violations are found for a given pull request. Input is expected to be a single Liatrio GitHub pull request attestation.
A new bundle will be published on every push to main
.
Semantic commits are used to automate the semver process.
The test/ directory contains example inputs for testing. Each package has its own json file for related inputs. The json file has a single, top level property that matches the package name. This is to avoid collisions, with how opa loads all data for tests.
Policy test files live alongside the policy they are testing, as *_test.rego
.
opa test .
: Run all automated policy tests.opa test -v .
: See test case inputs, and violations. Useful for troubleshooting.