Skip to main content
This is a beta feature. Beta features provide early access to product functionality. These features may change between releases without warning, or can be removed in a future release. Please contact us to enable this feature for your organization.

Synopsis

Evaluate a trail against a policy. Fetch a single trail from Kosli and evaluate it against a Rego policy. The trail data is passed to the policy as input.trail. Use --attestations to enrich the input with detailed attestation data (e.g. pull request approvers, scan results). Use --show-input to inspect the full data structure available to the policy. Use --output json for structured output.

Flags

Flags inherited from parent commands

Live Examples in different CI systems

View an example of the kosli evaluate trail command in GitHub.In this YAML file

Examples Use Cases

These examples all assume that the flags --api-token, --org, --host, (and --flow, --trail when required), are set/provided.
Last modified on July 21, 2026