Skip to content

Repo Assist: allow Go module/toolchain domains in workflow firewall policy - #10925

Merged
lpcox merged 2 commits into
mainfrom
copilot/aw-repo-assist-missing-tool
Aug 9, 2026
Merged

lpcox merged 2 commits into
mainfrom
copilot/aw-repo-assist-missing-tool

Conversation

Copilot AI commented Aug 9, 2026 •

Copy link
Copy Markdown
Contributor

Repo Assist intermittently reports a missing required tool for Go build/test work because sandbox egress blocks Go module proxy and toolchain download domains. This prevents Task 5/8 execution paths that require go build/go test.

  • Workflow source update (repo-assist.md)

    • Added the go network preset to network.allowed so the workflow requests the Go domain bundle at compile time.
  • Compiled workflow update (repo-assist.lock.yml)

    • Updated generated allowlists (GH_AW_ALLOWED_DOMAINS and embedded firewall JSON allowDomains) to include Go endpoints used for module resolution and toolchain fetches:
      • proxy.golang.org
      • sum.golang.org
      • golang.org
      • go.dev
      • pkg.go.dev
      • goproxy.io
  • Scope

    • Change is limited to Repo Assist workflow network policy; no runtime logic or application code paths were modified.
network:
  allowed:
    - defaults
    - go
    - dotnet
    - node
    - python
    - rust
    - java

Copilot AI linked an issue Aug 9, 2026 that may be closed by this pull request
Copilot AI changed the title [WIP] Fix Repo Assist missing required tool issue Repo Assist: allow Go module/toolchain domains in workflow firewall policy Aug 9, 2026
Copilot AI requested a review from lpcox August 9, 2026 16:06
@lpcox
lpcox marked this pull request as ready for review August 9, 2026 16:11
Copilot AI balanced review requested due to automatic review settings August 9, 2026 16:11

Copilot AI 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

Adds Go network access to Repo Assist so builds and tests can download modules and toolchains.

Changes:

  • Enables the go network preset.
  • Regenerates firewall domain allowlists.
Show a summary per file
File Description
.github/workflows/repo-assist.md Adds the Go network preset.
.github/workflows/repo-assist.lock.yml Updates generated Go domain allowlists.

Review details

Tip

Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

  • Files reviewed: 2/2 changed files
  • Comments generated: 0
  • Review effort level: Balanced

@github-actions

github-actions Bot commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

🔒 mcpg Read-Only Stress — gVisor

Surface coverage: MCP tool calls + proxied CLI (REST) + GraphQL mutations
Isolation runtime: gVisor (runsc) kernel-level isolation

Part Surface Op Result Expected Status
A MCP reads (issues/PRs/file/commits) data returned ALLOWED ✅
B MCP writes (reaction/star/issue/comment/branch/file/PR) Error [-32602]: unknown tool BLOCKED ✅
C CLI reads (list_issues via github CLI) data returned ALLOWED ✅
D CLI REST writes (reaction/star/issue/comment/file) gh unauthenticated — rejected BLOCKED ✅
E CLI GraphQL mutations (addReaction/addStar/createIssue) gh unauthenticated — rejected BLOCKED ✅

Overall: PASS

All 7 MCP write attempts returned Error [-32602]: unknown tool <write_tool> — gateway enforces read-only by exposing only 22 read tools. All CLI/GraphQL writes rejected (no GH_TOKEN).

References: §31322423763

🔒 mcpg read-only stress (gVisor runtime) by Read-Only Stress: gVisor runtime

@github-actions

github-actions Bot commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

🔒 mcpg Read-Only Stress — default AWF

Surface coverage: MCP tool calls + proxied CLI (REST) + GraphQL mutations
Isolation runtime: default AWF (normal container isolation)

Part Surface Op Result Expected Status
A MCP reads (list_issues/PRs/commits, get_file_contents) data returned ALLOWED ✅
B MCP writes (reaction/star/issue/comment/branch/file/PR) all refused: Error [-32602]: unknown tool BLOCKED ✅
C CLI reads (list_issues, get_file_contents via github bridge) data returned ALLOWED ✅
D CLI REST writes (reaction/star/issue/comment/file) all refused: GH_TOKEN not set BLOCKED ✅
E CLI GraphQL mutations (addReaction/addStar/createIssue) all refused: GH_TOKEN not set BLOCKED ✅

Overall: PASS

Notes:

  • Part B: Gateway exposes only 22 read-only tools; all 7 write tools absent from gateway tool registry (unknown tool [-32602]). This is gateway-enforced via allowlist — write tools are not registered.
  • Parts D/E: gh CLI is unauthenticated (GH_TOKEN not set), so REST and GraphQL writes are rejected at auth level.

References: §31322423633

🔒 mcpg read-only stress (default AWF runtime) by Read-Only Stress: default runtime

@github-actions

github-actions Bot commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

🔒 mcpg Read-Only Stress — docker-sbx

Surface coverage: MCP tool calls + proxied CLI (REST) + GraphQL mutations
Isolation runtime: docker-sbx (KVM-isolated microVM)

Part Surface Op Result Expected Status
A MCP reads (list_issues, list_prs, get_file, list_commits) data returned ALLOWED ✅
B MCP writes (reaction/star/issue/comment/branch/file/PR) unknown tool (MCP -32602) from gateway BLOCKED ✅
C CLI reads (list_issues, get_file_contents) data returned ALLOWED ✅
D CLI REST writes (reaction/star/issue/comment/file) HTTP 401 (invalid token) BLOCKED ✅
E CLI GraphQL mutations (addReaction/addStar/createIssue) HTTP 401 (invalid token) BLOCKED ✅

Overall: PASS

Part B: Gateway exposes only 22 read-only tools; all 7 write tool calls returned MCP error -32602: unknown tool — gateway enforcement confirmed. No writes succeeded.
Parts D & E: gh CLI token is invalid (HTTP 401); all REST/GraphQL write attempts rejected by GitHub API. No writes succeeded.

🔒 mcpg read-only stress (docker-sbx runtime) by Read-Only Stress: docker-sbx runtime

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[aw] Repo Assist is missing required tool

3 participants