Flowlyt Examples
This directory contains examples demonstrating various Flowlyt features and usage patterns.
Directory Structure
examples/
βββ workflows/ # GitHub Actions workflow examples
β βββ basic-security-scan.yml
β βββ enterprise-pipeline.yml
β βββ README.md
βββ enhanced/ # Enhanced analysis examples
β βββ enhanced_ast_analysis.go
βββ performance/ # Performance benchmarking
β βββ ast_performance_benchmark.go
βββ cli-output-example.sh # CLI output format demonstration
βββ sarif-github-advanced-security-example.json # SARIF output example
Examples Overview
π Workflow Examples
Location: workflows/
GitHub Actions workflow examples showing how to integrate Flowlyt into your CI/CD pipelines.
- Basic Security Scan: Simple workflow for quick security checks
- Enterprise Pipeline: Advanced workflow with policy enforcement and compliance
View workflow examples β
π Enhanced Analysis
Location: enhanced/enhanced_ast_analysis.go
Demonstrates enhanced AST (Abstract Syntax Tree) analysis capabilities for complex workflow patterns.
Run example:
go run examples/enhanced/enhanced_ast_analysis.go
Location: performance/ast_performance_benchmark.go
Performance benchmark for AST analysis with large workflows.
Run benchmark:
go run examples/performance/ast_performance_benchmark.go
π₯οΈ CLI Output Example
Location: cli-output-example.sh
Demonstrates the enhanced CLI output format with colored output, progress indicators, and visual representations of findings.
View example:
./examples/cli-output-example.sh
π SARIF Output Example
Location: sarif-github-advanced-security-example.json
Example SARIF (Static Analysis Results Interchange Format) output for GitHub Security tab integration.
This shows how Flowlyt findings appear in GitHub's Security tab with:
- Detailed rule descriptions
- Remediation guidance
- Severity levels
- Line-level annotations
View example:
cat examples/sarif-github-advanced-security-example.json | jq '.'
Usage
For Users
Browse the workflows/ directory to find pre-built GitHub Actions workflows you can use directly in your projects.
For Contributors
The Go examples demonstrate:
- How to use Flowlyt's AST analysis APIs
- Performance characteristics of different analysis methods
- Integration patterns for custom tooling
Documentation
For complete documentation, see:
Contributing
Have a useful example? We'd love to include it!
- Create your example following the existing patterns
- Add documentation explaining the use case
- Submit a pull request
See CONTRIBUTING.md for guidelines.
Questions? Open an issue at https://github.com/harekrishnarai/flowlyt/issues