Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 3, 2025

The stale-repo-identifier workflow needs to operate in lockdown mode and only analyze public repositories to prevent exposure of untrusted content.

Changes

GitHub MCP Configuration

  • Added lockdown: true to limit content from public repos to items authored by users with push access
  • Added read-only: true to enforce read-only operations
  • Uses local Docker-based mode (not remote) for GitHub MCP server

Workflow Instructions

  • Added explicit public repository filtering requirements at multiple checkpoints:
    • Step 2 (Deep Research) header with critical notice
    • Repository Overview section with visibility checks
    • Edge Cases section listing private repos first
    • Important Guidelines making it guideline rejig docs #1
  • All instructions now mandate skipping private repositories during analysis

Trending and Cache Memory

  • Added cache-memory tool for persistent data storage across workflow runs
  • Imported shared/trending-charts-simple.md for trending visualization capabilities
  • Enables tracking of stale repository metrics over time

Configuration

tools:
  github:
    read-only: true
    lockdown: true
    toolsets:
      - repos
      - issues
      - pull_requests
  cache-memory:
    key: stale-repos-analysis-${{ github.workflow }}-${{ github.run_id }}

The lock file uses local Docker-based GitHub MCP server with GITHUB_LOCKDOWN_MODE=1 and GITHUB_READ_ONLY=1 environment variables.

Original prompt

Update workflow https://github.com/githubnext/gh-aw/blob/main/.github/workflows/stale-repo-identifier.md

Make sure to only review public repos. Use github MCP in lockdown mode.


💡 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.

…epo filtering

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copy link
Contributor

@pelikhan pelikhan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot add tending and cache-memory (shred agentic workflow)


tools:
github:
mode: remote
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot not remote

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed mode: remote from the GitHub MCP configuration. The workflow now uses local Docker-based mode instead. (commit 4378874)

Copilot AI changed the title [WIP] Update workflow to review only public repos Enable lockdown mode and public repository filtering for stale-repo-identifier workflow Dec 3, 2025
Copilot AI requested a review from pelikhan December 3, 2025 08:29
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Dec 3, 2025

@copilot add tending and cache-memory (shred agentic workflow)

Added cache-memory tool with key stale-repos-analysis-${{ github.workflow }}-${{ github.run_id }} and imported shared/trending-charts-simple.md for trending visualization support. (commit 4378874)

@pelikhan pelikhan marked this pull request as ready for review December 3, 2025 14:05
@pelikhan pelikhan merged commit d38547a into main Dec 3, 2025
4 checks passed
@pelikhan pelikhan deleted the copilot/update-stale-repo-identifier branch December 3, 2025 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants