You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This comprehensive analysis examines 149 agentic workflow lock files (.lock.yml) across the repository, revealing patterns in triggers, safe outputs, structural characteristics, and resource configurations.
activation - Timestamp checks and activation logic
agent - Main AI agent execution
conclusion - Results processing and safe outputs
failure_tracking - Error handling and monitoring
always_cleanup - Cleanup tasks
Typical Step Categories:
Checkout and setup (actions, scripts, repository)
MCP server configuration
Safe outputs configuration
Memory management (repo-memory, cache-memory)
Agent execution with Claude/Copilot/Codex
Output collection and processing
GitHub API interactions
Permission Patterns
Workflow-Level Permissions
All 149 workflows (100%) use minimal/empty permissions at the workflow level (permissions: {}), relying on job-specific permission grants for security isolation.
Job-Level Permissions
Jobs request specific permissions as needed:
Permission
Count
Purpose
contents: read
667
Repository code access (most common)
discussions: write
273
Create/update discussions
issues: write
273
Create/update issues
pull-requests: write
245
Create/update PRs
pull-requests: read
132
Read PR data
issues: read
131
Read issue data
contents: write
78
Commit changes
actions: read
64
Read workflow run data
discussions: read
35
Read discussion data
security-events: read
16
Code scanning alerts
Security Model:
✅ Least privilege: Empty workflow permissions, job-specific grants
✅ Read-heavy: contents: read is the most common (667 instances)
✅ Write access is selective: Write permissions granted only when needed
✅ Security awareness: 18 instances of security-events access for vulnerability management
MCP Server & Tool Patterns
Most Used MCP Servers
MCP Server
References
Purpose
github
3,640
GitHub API operations (issues, PRs, discussions, search)
playwright
210
Web automation and testing
arxiv
6
Academic paper access
deepwiki
6
Deep web research
Dominant Pattern: The github MCP server is overwhelmingly dominant (94.5% of MCP references), providing extensive GitHub API capabilities for issue management, PR operations, and repository interactions.
Timeout Configurations
Timeout (minutes)
Occurrences
Usage Pattern
10
182
Standard short tasks
15
166
Default moderate tasks
20
162
Extended operations
30
28
Long-running analysis
45
11
Complex processing
5
10
Quick checks
60+
4
Maximum duration tasks
Timeout Strategy: Most workflows (510 instances) use timeouts between 10-20 minutes, with a normal distribution centered around 15 minutes.
Concurrency Control Patterns
Concurrency Group Pattern
Count
Strategy
gh-aw-copilot-${{ github.workflow }}
150
Copilot engine isolation
gh-aw-${{ github.workflow }}
118
General workflow isolation
gh-aw-claude-${{ github.workflow }}
62
Claude engine isolation
gh-aw-codex-${{ github.workflow }}
17
Codex engine isolation
Per-issue/PR grouping
29
Resource-specific concurrency
Strategy: Concurrency groups are primarily organized by AI engine (Copilot/Claude/Codex) to prevent conflicts when multiple workflows use the same model provider, with workflow-level isolation as a fallback.
Interesting Findings
Strong Standardization (91.9% in 50-100KB range)
Lock files exhibit remarkable consistency in size and structure
Suggests effective workflow templates and compilation process
Median size (60.7 KB) very close to mean (63.4 KB) indicates low variance
Hybrid Automation Pattern (57% schedule + manual)
Most workflows combine scheduled automation with manual override
Enables both proactive monitoring and reactive investigation
Distributed scheduling across business hours prevents rate limit issues
Safety-First Design
100% of workflows use minimal workflow-level permissions
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Executive Summary
This comprehensive analysis examines 149 agentic workflow lock files (
.lock.yml) across the repository, revealing patterns in triggers, safe outputs, structural characteristics, and resource configurations.Key Metrics:
File Size Distribution
Size Statistics:
The overwhelming majority (91.9%) of lock files fall within the 50-100KB range, indicating strong consistency in workflow complexity and structure.
Trigger Analysis
Most Popular Triggers
workflow_dispatchscheduleissue_commentissuespull_requestpull_request_review_commentdiscussion_commentdiscussionworkflow_runpushCommon Trigger Combinations
The most prevalent pattern is combining scheduled automation with manual override capability:
schedule+workflow_dispatch: 85 workflows (57.0%)Multi-event responsive workflows: 3 workflows
discussion,discussion_comment,issue_comment,issues,pull_request,pull_request_review_commentPR + Schedule workflows: 6 workflows
Schedule Patterns (Cron)
0 13 * * 1-50 14 * * 1-50 11 * * 1-50 10 * * 1-50 9 * * 1-50 15 * * 1-50 16 * * 1-50 7 * * 1-5Pattern: Schedules are intentionally scattered throughout business hours (weekdays only) to distribute load and avoid GitHub Actions rate limits.
Safe Outputs Analysis
Safe outputs enable workflows to create GitHub resources in a controlled, rate-limited manner.
Safe Output Types Distribution
Based on configuration analysis, the following safe output types are available:
noopmissing_toolmissing_datacreate_discussioncreate_issueadd_commentcreate_pull_requestupload_assetadd_labelsclose_discussionupdate_issuecreate_pull_request_review_commentupdate_projectKey Insights:
noop,missing_tool, andmissing_dataas baseline toolsDiscussion Categories
reportsauditsThe repository primarily uses two discussion categories for agent outputs, with a slight preference for
reportsoveraudits.Structural Characteristics
Job & Step Complexity
Typical Lock File Structure
Based on statistical analysis, a typical
.lock.ymlfile has:Size & Complexity:
schedule+workflow_dispatch(most common)Common Jobs:
pre_activation- Early workflow gatingactivation- Timestamp checks and activation logicagent- Main AI agent executionconclusion- Results processing and safe outputsfailure_tracking- Error handling and monitoringalways_cleanup- Cleanup tasksTypical Step Categories:
Permission Patterns
Workflow-Level Permissions
All 149 workflows (100%) use minimal/empty permissions at the workflow level (
permissions: {}), relying on job-specific permission grants for security isolation.Job-Level Permissions
Jobs request specific permissions as needed:
contents: readdiscussions: writeissues: writepull-requests: writepull-requests: readissues: readcontents: writeactions: readdiscussions: readsecurity-events: readSecurity Model:
contents: readis the most common (667 instances)MCP Server & Tool Patterns
Most Used MCP Servers
githubplaywrightarxivdeepwikiDominant Pattern: The
githubMCP server is overwhelmingly dominant (94.5% of MCP references), providing extensive GitHub API capabilities for issue management, PR operations, and repository interactions.Timeout Configurations
Timeout Strategy: Most workflows (510 instances) use timeouts between 10-20 minutes, with a normal distribution centered around 15 minutes.
Concurrency Control Patterns
gh-aw-copilot-${{ github.workflow }}gh-aw-${{ github.workflow }}gh-aw-claude-${{ github.workflow }}gh-aw-codex-${{ github.workflow }}Strategy: Concurrency groups are primarily organized by AI engine (Copilot/Claude/Codex) to prevent conflicts when multiple workflows use the same model provider, with workflow-level isolation as a fallback.
Interesting Findings
Strong Standardization (91.9% in 50-100KB range)
Hybrid Automation Pattern (57% schedule + manual)
Safety-First Design
GitHub-Native Integration
Multi-Stage Pipeline Architecture
Engine Diversity with Copilot Leadership
Recommendations
For Workflow Authors
noop,missing_tool,missing_datain safe outputsFor Repository Maintenance
reportsandauditscategoriesFor Platform Development
Methodology
Analysis Tools:
Data Sources:
.lock.ymlfiles in.github/workflows/Scripts Cached:
/tmp/gh-aw/cache-memory/scripts/detailed_analysis.py/tmp/gh-aw/cache-memory/scripts/extract_details.py/tmp/gh-aw/cache-memory/scripts/extract_safeoutputs_config.py**Historical (redacted)
/tmp/gh-aw/cache-memory/history/2026-02-03/References:
Analysis generated by the Lockfile Statistics Analysis Agent on 2026-02-03
Beta Was this translation helpful? Give feedback.
All reactions