Add min-integrity: none to ai-moderator workflow#25104
Conversation
Agent-Logs-Url: https://github.com/github/gh-aw/sessions/c298424f-6185-466d-a629-2e81a7188d3d Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
|
@copilot merge main and recompile |
There was a problem hiding this comment.
Pull request overview
Updates the ai-moderator agentic workflow’s GitHub tool guard policy so it can process events authored by non-collaborators (the intended moderation target).
Changes:
- Add
min-integrity: noneto thetools.githubconfiguration inai-moderator.md. - Recompile
ai-moderator.lock.ymlso the generated MCP gateway guard policy reflects the updated integrity setting (and associated generated wiring).
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/ai-moderator.md | Adds min-integrity: none to relax integrity filtering for moderation events. |
| .github/workflows/ai-moderator.lock.yml | Regenerated workflow output reflecting updated guard policy config and related compiled steps. |
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 2/2 changed files
- Comments generated: 1
| mode: local | ||
| read-only: true | ||
| toolsets: [default] | ||
| min-integrity: none |
There was a problem hiding this comment.
Setting min-integrity: none without also constraining allowed-repos causes the compiled guard policy to default to repos: "all" (see ai-moderator.lock.yml guard-policies block), which can unintentionally grant the workflow’s GitHub MCP access to all repositories reachable by the token (including if GH_AW_GITHUB_TOKEN is a broad PAT). If this workflow only needs to moderate activity in the current repo, explicitly set allowed-repos to the current repository (or a narrow pattern) alongside min-integrity: none to keep cross-repo access minimized.
| min-integrity: none | |
| min-integrity: none | |
| allowed-repos: | |
| - ${{ github.repository }} |
…erator-integrity-none # Conflicts: # .github/workflows/ai-moderator.lock.yml Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Agent-Logs-Url: https://github.com/github/gh-aw/sessions/5309cb25-2c04-4094-8f1a-d51f89a95805 Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Done — merged main (resolved the lock file conflict) and recompiled all 182 workflows in 4f91405. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
The ai-moderator workflow was missing an integrity level configuration for its GitHub tool, which defaults to a more restrictive setting that can filter events from non-collaborators — exactly the population this workflow is designed to moderate.
Changes
ai-moderator.md: Addedmin-integrity: noneto thegithubtool config so the workflow processes events from all users regardless of their repository relationshipai-moderator.lock.yml: Recompiled to reflect the updated frontmatter