Skip to main content

Crate pipechecker

Crate pipechecker 

Source
Expand description

§pipechecker

A Rust-native CI/CD pipeline auditor that catches errors before you push.

§Features

  • Syntax validation for GitHub Actions, GitLab CI, CircleCI
  • Dependency graph analysis with cycle detection
  • Secrets and environment variable auditing
  • Docker image and action pinning validation

§Example

use pipechecker::{audit_file, AuditOptions};

let results = audit_file(".github/workflows/ci.yml", AuditOptions::default())?;
for issue in results.issues {
    println!("{:?}: {}", issue.severity, issue.message);
}

Re-exports§

pub use config::load as load_config;
pub use config::Config;
pub use config::Rules;
pub use error::PipecheckError;
pub use error::Result;
pub use models::AuditOptions;
pub use models::AuditResult;
pub use models::Issue;
pub use models::Severity;

Modules§

auditors
Pipeline auditors - each module validates a specific aspect of CI/CD configurations
config
Configuration file support for pipechecker
error
Error types for pipechecker
fix
Auto-fix module - applies automatic fixes to workflow files
models
parsers
CI/CD provider parsers - converts provider-specific YAML to common Pipeline model
tui
Interactive Terminal UI for pipechecker

Structs§

DiscoveryOptions
Discovery configuration for finding CI/CD workflow files

Functions§

audit_content
Audit pipeline configuration content
audit_file
Audit a pipeline configuration file
discover_workflows
Discover CI/CD workflow files in the given directory
find_line
Find the line number of a key or pattern in raw YAML content
find_line_with_prefix
Find the line number of a value within a specific key’s context