Skip to main content

gha_expression_proof/
lib.rs

1//! GitHub Actions expression evaluation for offline CI systems.
2//!
3//! `gha-expression-proof` parses and evaluates GitHub Actions expressions
4//! against supplied context JSON, then emits receipts that local runners can
5//! attach to workflow planning and execution evidence.
6
7mod ast;
8mod eval;
9mod lexer;
10mod model;
11mod parser;
12mod render;
13mod template;
14mod value;
15
16pub use eval::{
17    ContextBuilder, EvaluationOptions, JobStatus, evaluate_expression, evaluate_template,
18};
19pub use model::{Check, CheckStatus, EvaluationReceipt, ReceiptSummary, SchemaVersion, ToolInfo};
20pub use render::{OutputFormat, render_receipt};
21
22pub const TOOL_NAME: &str = "gha-expression-proof";
23pub const TOOL_VERSION: &str = env!("CARGO_PKG_VERSION");