Skip to main content

Synopsis

[BETA] 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 June 18, 2026