Skip to content

Add GitHub lockdown mode to workflows processing non-collaborator content - #14840

Merged
pelikhan merged 4 commits into
mainfrom
copilot/set-github-lockdown-true
Feb 10, 2026
Merged

Add GitHub lockdown mode to workflows processing non-collaborator content#14840
pelikhan merged 4 commits into
mainfrom
copilot/set-github-lockdown-true

Conversation

CopilotAI commented Feb 10, 2026

Copy link
Copy Markdown
Contributor

Enables lockdown mode for workflows that process issues, PRs, and discussions from public repository contributors. This filters content to only items authored by users with push access.

Changes

Core workflows (explicit lockdown):

  • issue-monster.md - Issue assignment orchestrator
  • discussion-task-miner.md - Discussion content analyzer
  • workflow-generator.md - Workflow creation from issue forms

Triage and moderation (explicit lockdown):

  • issue-triage-agent.md, pr-triage-agent.md
  • issue-arborist.md, weekly-issue-summary.md, daily-issues-report.md

Slash commands (explicit lockdown):

  • grumpy-reviewer.md (PR reviews)
  • plan.md (issue/discussion planning)

Workflows using automatic lockdown detection:

  • auto-triage-issues.md - Uses $GITHUB_MCP_LOCKDOWN for dynamic lockdown based on repository visibility
  • ai-moderator.md - Uses $GITHUB_MCP_LOCKDOWN for dynamic lockdown based on repository visibility

Implementation

Explicit lockdown:

tools:
github:
lockdown: true # Forces lockdown modetoolsets: [default, issues, pull_requests]

Compiles to GITHUB_LOCKDOWN_MODE: "1" in workflow lock files.

Automatic lockdown detection:

tools:
github:
# No lockdown field - uses automatic detectiontoolsets: [default, issues, pull_requests]

Compiles to GITHUB_LOCKDOWN_MODE: "$GITHUB_MCP_LOCKDOWN" in workflow lock files, automatically enabling lockdown for public repositories when GH_AW_GITHUB_MCP_SERVER_TOKEN is set.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot stopped work on behalf of pelikhan due to an error February 10, 2026 21:43
Copilot stopped work on behalf of pelikhan due to an error February 10, 2026 21:43
Set tools.github.lockdown: true for workflows that could work on non-collaborator generated items (issues, PRs, discussions) from public repositories. This ensures these workflows only process content from users with push access.
Workflows updated:
- issue-monster.md
- discussion-task-miner.md
- workflow-generator.md
- auto-triage-issues.md
- issue-triage-agent.md
- pr-triage-agent.md
- ai-moderator.md
- issue-arborist.md
- weekly-issue-summary.md
- daily-issues-report.md
- grumpy-reviewer.md
- plan.md
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
CopilotAI changed the title [WIP] Set tools.github.lockdown to true for specific workflowsAdd GitHub lockdown mode to workflows processing non-collaborator contentFeb 10, 2026
CopilotAI requested a review from pelikhanFebruary 10, 2026 21:52
Comment thread.github/workflows/ai-moderator.md Outdated
Comment thread.github/workflows/auto-triage-issues.md Outdated
Per review feedback, removed lockdown: true from:
- ai-moderator.md - uses automatic lockdown detection
- auto-triage-issues.md - uses automatic lockdown detection
These workflows now use $GITHUB_MCP_LOCKDOWN for dynamic lockdown
based on repository visibility rather than forced lockdown.
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
CopilotAI requested a review from pelikhanFebruary 10, 2026 22:07
@pelikhan
pelikhan marked this pull request as ready for review February 10, 2026 22:12
CopilotAI review requested due to automatic review settings February 10, 2026 22:12

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR enables GitHub “lockdown mode” for several workflows that process issues/PRs/discussions, ensuring the GitHub MCP server only returns content authored by users with push access.

Changes:

  • Added tools.github.lockdown: true to selected workflow frontmatter files.
  • Updated corresponding *.lock.yml files to hardcode GITHUB_LOCKDOWN_MODE: "1" and remove the “determine automatic lockdown” step/env wiring.

Reviewed changes

Copilot reviewed 20 out of 20 changed files in this pull request and generated 1 comment.

Show a summary per file
FileDescription
.github/workflows/workflow-generator.mdEnables explicit lockdown for the workflow generator.
.github/workflows/workflow-generator.lock.ymlRegenerates lockfile to hardcode lockdown mode and remove auto-detection step.
.github/workflows/weekly-issue-summary.mdEnables explicit lockdown for weekly issue summary workflow.
.github/workflows/weekly-issue-summary.lock.ymlRegenerates lockfile to hardcode lockdown mode and remove auto-detection step.
.github/workflows/pr-triage-agent.mdEnables explicit lockdown for PR triage agent.
.github/workflows/pr-triage-agent.lock.ymlRegenerates lockfile to hardcode lockdown mode and remove auto-detection step.
.github/workflows/plan.mdEnables explicit lockdown for /plan slash-command workflow.
.github/workflows/plan.lock.ymlRegenerates lockfile to hardcode lockdown mode and remove auto-detection step.
.github/workflows/issue-triage-agent.mdEnables explicit lockdown for issue triage agent.
.github/workflows/issue-triage-agent.lock.ymlRegenerates lockfile to hardcode lockdown mode and remove auto-detection step.
.github/workflows/issue-monster.mdEnables explicit lockdown for issue-monster orchestration workflow.
.github/workflows/issue-monster.lock.ymlRegenerates lockfile to hardcode lockdown mode and remove auto-detection step.
.github/workflows/issue-arborist.mdEnables explicit lockdown for issue arborist workflow.
.github/workflows/issue-arborist.lock.ymlRegenerates lockfile to hardcode lockdown mode and remove auto-detection step; updates MCP env lists accordingly.
.github/workflows/grumpy-reviewer.mdEnables explicit lockdown for grumpy reviewer slash-command workflow.
.github/workflows/grumpy-reviewer.lock.ymlRegenerates lockfile to hardcode lockdown mode and remove auto-detection step.
.github/workflows/discussion-task-miner.mdEnables explicit lockdown for discussion task miner.
.github/workflows/discussion-task-miner.lock.ymlRegenerates lockfile to hardcode lockdown mode and remove auto-detection step.
.github/workflows/daily-issues-report.mdEnables explicit lockdown for daily issues report workflow.
.github/workflows/daily-issues-report.lock.ymlRegenerates lockfile to hardcode lockdown mode and remove auto-detection step; updates MCP env lists accordingly.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread.github/workflows/workflow-generator.lock.yml
@pelikhan
pelikhan merged commit 3676ad2 into mainFeb 10, 2026
51 checks passed
@pelikhan
pelikhan deleted the copilot/set-github-lockdown-true branch February 10, 2026 22:33
Sign up for freeto 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.

3 participants

@pelikhan