Add lockfile statistics analysis workflow for nightly audits#1556
Merged
Add lockfile statistics analysis workflow for nightly audits#1556
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add agentic workflow for .lock.yml analysis
Add lockfile statistics analysis workflow for nightly audits
Oct 11, 2025
Contributor
|
Agentic Changeset Generator triggered by this pull request |
pelikhan
approved these changes
Oct 11, 2025
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Copilot AI
added a commit
that referenced
this pull request
Apr 13, 2026
Change the push_repo_memory job condition from checking needs.agent.result == 'success' to needs.agent.result != 'skipped'. This prevents push_repo_memory from running on no-op workflow invocations (e.g. bot comments where pre_activation is skipped and the skip cascades through activation → agent → detection). The != 'skipped' check also allows repo-memory to be pushed when the agent fails, preserving partial memory data. Fixes #1556 Agent-Logs-Url: https://github.com/github/gh-aw/sessions/053233b6-7afc-4caf-bf6e-74bbd9f26562 Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds a new agentic workflow that performs comprehensive statistical and structural analysis of all
.lock.ymlfiles in the repository, publishing insights to the "audits" discussion category.Overview
The workflow automatically analyzes agentic workflow lock files to identify usage patterns, popular triggers, safe outputs, file sizes, and interesting structural characteristics. This provides valuable visibility into how workflows are structured and evolving over time.
Features
Automated Analysis
workflow_dispatch.lock.ymlfiles in.github/workflows/Statistical Insights
The workflow generates comprehensive statistics including:
File Size Analysis
Trigger Patterns
Safe Outputs Usage
Structural Metrics
Tool & MCP Analysis
Persistent Knowledge with Cache-Memory
The workflow uses the
cache-memorytool to build persistent knowledge:/tmp/gh-aw/cache-memory/scripts/for reuse/tmp/gh-aw/cache-memory/history/for trend analysisOutput
Results are published as a comprehensive markdown report to the "audits" discussion category, including:
Implementation Details
Files Added
.github/workflows/lockfile-stats.md- Workflow definition with detailed AI agent instructions.github/workflows/lockfile-stats.lock.yml- Compiled GitHub Actions workflow (auto-generated)Testing
This workflow provides valuable insights into workflow patterns and helps track the evolution of agentic workflows in the repository over time.
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.