This document describes the workflow architecture and integration patterns for Time-Machines-Builders.
File: .github/workflows/ci.yml
Triggers:
- Push to
mainordevelopbranches - Pull requests to
mainordevelopbranches - Manual workflow dispatch
Jobs:
-
Code Quality & Security
- Trivy vulnerability scanning
- SARIF upload to GitHub Security
-
CodeQL Analysis
- Multi-language analysis (JavaScript, Python)
- Security vulnerability detection
-
Dependency Review
- Dependency vulnerability checking (PR only)
-
Integration Health Check
- Validates connections to related repositories
- Checks integration endpoint configuration
Flow Diagram:
Push/PR Event
↓
┌───────────────────────────┐
│ Code Quality & Security │
│ - Trivy Scan │
│ - Upload SARIF │
└───────────────────────────┘
↓
┌───────────────────────────┐
│ CodeQL Analysis │
│ - JavaScript │
│ - Python │
└───────────────────────────┘
↓
┌───────────────────────────┐
│ Dependency Review │ (PR only)
│ - Check vulnerabilities │
└───────────────────────────┘
↓
┌───────────────────────────┐
│ Integration Health │
│ - Verify connections │
│ - Check endpoints │
└───────────────────────────┘
File: .github/workflows/cross-repo-integration.yml
Triggers:
- Repository dispatch events (
trigger-integration) - Manual workflow dispatch with parameters
Jobs:
-
Cross-Repo Sync
- Dispatches events to target repositories
- Sends notifications to n8n webhooks
-
AI Integration Update
- Triggers updates in AI-Time-Machines repository
- Logs integration status
Flow Diagram:
Manual Trigger / Dispatch Event
↓
┌─────────────────────────────────┐
│ Cross-Repo Sync │
│ - Select target repo │
│ - Choose action (sync/notify) │
└─────────────────────────────────┘
↓
┌─────────────────────────────────┐
│ Repository Dispatch │
│ - AI-Time-Machines │
│ - Web3AI │
│ - gatsby-starter-blog │
│ - Transparency-Logic-... │
└─────────────────────────────────┘
↓
┌─────────────────────────────────┐
│ External Notifications │
│ - n8n Webhook │
│ - Custom integrations │
└─────────────────────────────────┘
↓
┌─────────────────────────────────┐
│ AI Integration Update │
│ - Trigger AI-Time-Machines │
│ - Log status │
└─────────────────────────────────┘
File: .github/workflows/dependency-updates.yml
Triggers:
- Weekly schedule (Mondays at 9am UTC)
- Manual workflow dispatch
Jobs:
-
Update Dependencies
- Checks for dependency updates
- Prepares for future package manager integration
-
Security Audit
- Runs security audits
- Reports vulnerabilities
-
Sync with AI-Time-Machines
- Checks for updates in related repositories
- Coordinates dependency versions
Flow Diagram:
Weekly Cron / Manual Trigger
↓
┌─────────────────────────────────┐
│ Update Dependencies │
│ - Check for updates │
│ - Prepare update PRs │
└─────────────────────────────────┘
↓
┌─────────────────────────────────┐
│ Security Audit │
│ - Scan dependencies │
│ - Report vulnerabilities │
└─────────────────────────────────┘
↓
┌─────────────────────────────────┐
│ Sync with AI-Time-Machines │
│ - Check related repo updates │
│ - Coordinate versions │
└─────────────────────────────────┘
Developer Push
↓
┌─────────────────┐
│ CI Workflow │
│ (Automated) │
└─────────────────┘
↓
┌─────────────────┐
│ Cross-Repo Sync │
│ (Conditional) │
└─────────────────┘
↓
┌─────────────────┐
│ Target Repo │
│ Updated │
└─────────────────┘
External Service (n8n)
↓
┌─────────────────┐
│ Webhook Trigger │
└─────────────────┘
↓
┌─────────────────┐
│ Repository │
│ Dispatch │
└─────────────────┘
↓
┌─────────────────┐
│ Cross-Repo │
│ Integration │
└─────────────────┘
↓
┌─────────────────┐
│ Update All │
│ Connected │
│ Services │
└─────────────────┘
Cron Schedule (Weekly)
↓
┌─────────────────┐
│ Dependency │
│ Updates │
└─────────────────┘
↓
┌─────────────────┐
│ Security │
│ Audit │
└─────────────────┘
↓
┌─────────────────┐
│ Sync with │
│ Related Repos │
└─────────────────┘
↓
┌─────────────────┐
│ Create PR │
│ if needed │
└─────────────────┘
Time-Machines-Builders-
(Central Hub)
│
┌─────────────────────┼─────────────────────┐
│ │ │
↓ ↓ ↓
┌───────────────┐ ┌───────────────┐ ┌───────────────┐
│ AI-Time- │ │ Web3AI │ │gatsby-starter-│
│ Machines │ │ │ │ blog │
│ │ │ │ │ │
│ (AI Agents) │ │ (Blockchain) │ │ (Docs) │
└───────────────┘ └───────────────┘ └───────────────┘
│ │ │
└─────────────────────┴─────────────────────┘
│
↓
┌───────────────────────┐
│ Transparency-Logic- │
│ Time-Machine-Bots- │
│ │
│ (Theory Framework) │
└───────────────────────┘
Time-Machines-Builders-
│
├─→ GitHub (Actions, API)
│ └─→ Security Scanning (CodeQL, Trivy)
│
├─→ Huggingface
│ └─→ AI Model Training & Deployment
│
├─→ n8n
│ └─→ Workflow Automation
│ ├─→ Data Processing
│ ├─→ API Integration
│ └─→ Notifications
│
└─→ Cloudflare
└─→ Edge Computing & CDN
├─→ Workers
├─→ Pages
└─→ DNS
Code Changes
↓
┌─────────────────┐
│ Trivy Scan │
│ (File System) │
└─────────────────┘
↓
┌─────────────────┐
│ CodeQL │
│ (Static │
│ Analysis) │
└─────────────────┘
↓
┌─────────────────┐
│ Dependency │
│ Review │
└─────────────────┘
↓
┌─────────────────┐
│ SARIF Upload │
│ to Security │
│ Tab │
└─────────────────┘
↓
Security Dashboard Updated
Each workflow has specific permissions configured for security:
actions: readcontents: readsecurity-events: write
contents: readactions: writerepository-projects: write
contents: readpull-requests: write(for automated PRs)
GITHUB_TOKEN(automatically provided)HUGGINGFACE_API_KEY(optional, for AI integration)N8N_WEBHOOK_URL(optional, for automation)CLOUDFLARE_API_TOKEN(optional, for edge computing)
.env.example- Template for environment variables.github/workflows/*.yml- Workflow definitions
All workflow runs are logged and available in the Actions tab:
- Real-time log streaming
- Job-level logs
- Step-level details
- Artifact downloads
The CI workflow includes integration health checks:
- Repository connection validation
- Endpoint availability checks
- Service status verification
Failed workflows trigger notifications:
- GitHub notifications
- Email alerts (if configured)
- External webhook notifications (n8n)
Planned workflow improvements:
- Automated dependency update PRs
- Advanced AI model deployment
- Multi-environment deployments
- Performance benchmarking
- Integration testing framework
- Custom GitHub Actions
- Advanced n8n workflow templates
- Cloudflare Workers deployment
- Container image building and scanning
For more information, see:
- INTEGRATION.md - Integration setup guide
- CONTRIBUTING.md - Contribution guidelines
- QUICKSTART.md - Quick start guide