examples/

directory
v1.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 10, 2026 License: Apache-2.0

README ΒΆ

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
⚑ Performance Benchmarking

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!

  1. Create your example following the existing patterns
  2. Add documentation explaining the use case
  3. Submit a pull request

See CONTRIBUTING.md for guidelines.


Questions? Open an issue at https://github.com/harekrishnarai/flowlyt/issues

Directories ΒΆ

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL