Skip to main content

gha_container_proof/
lib.rs

1//! `gha-container-proof` — GitHub Actions job-container and Docker-action
2//! compatibility oracle for offline CI.
3//!
4//! See [`docs/spec.md`](https://github.com/wildmason/gha-container-proof/blob/main/docs/spec.md)
5//! for the protocol surface and [`docs/RULES.md`](https://github.com/wildmason/gha-container-proof/blob/main/docs/RULES.md)
6//! for the stable check IDs that this crate emits.
7
8mod action;
9mod engine;
10mod model;
11mod options;
12mod plan;
13mod probe;
14mod render;
15mod workflow;
16
17pub use action::{ActionManifest, DockerImage, classify_image};
18pub use engine::{apply_strict, run_check_workflow, run_plan_action, run_plan_job, run_probe};
19pub use model::{
20    Check, CheckStatus, Compatibility, ContainerProofReceipt, NetworkModel, OutputFormat,
21    ProbeReport, ProbeStep, ProbeStepKind, ReceiptSummary, RunnerOs, SCHEMA_VERSION, SchemaVersion,
22    Subject, SubjectKind, ToolInfo, is_sensitive_key,
23};
24pub use options::{ClassifiedOption, OptionKind, OptionsPlan, parse_options};
25pub use plan::{ActionPlanInput, JobPlanInput};
26pub use probe::ProbeInput;
27pub use render::render_receipt;
28pub use workflow::{CheckWorkflowOptions, ScanResult, scan_workflows};
29
30pub const TOOL_NAME: &str = "gha-container-proof";
31pub const TOOL_VERSION: &str = env!("CARGO_PKG_VERSION");