Synopsis
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
- GitHub
View an example of the
kosli evaluate trail command in GitHub.In this YAML fileExamples Use Cases
These examples all assume that the flags--api-token, --org, --host, (and --flow, --trail when required), are set/provided.
evaluate a trail against a policy
evaluate a trail against a policy
evaluate a trail with attestation enrichment
evaluate a trail with attestation enrichment
evaluate a trail and show the policy input data
evaluate a trail and show the policy input data
evaluate a trail with policy parameters (inline JSON)
evaluate a trail with policy parameters (inline JSON)
evaluate a trail with policy parameters from a file
evaluate a trail with policy parameters from a file
evaluate a trail using a policy fetched from a remote URL
evaluate a trail using a policy fetched from a remote URL
evaluate a trail as a decision point (print verdict, never fail the step)
evaluate a trail as a decision point (print verdict, never fail the step)