[bug-hunter] Copilot SDK no-sandbox mention workflows block `read` tool in runtime allowlist
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 78/100
Direzione di ricerca
Inizia leggendo i file di workflow generati .github/workflows/gh-aw-mention-in-issue-no-sandbox.lock.yml e .github/workflows/gh-aw-mention-in-pr-no-sandbox.lock.yml, quindi confronta GH_AW_COPILOT_SDK_TOOL_CONFIG.permissions.allowedTools con gli argomenti --allow-tool dell’SDK. Esegui lo script di riproduzione dell’issue per confermare la discrepanza. Il lavoro è completato quando read è presente in entrambe le allowlist e lo script viene eseguito correttamente.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Impact
gh-aw-mention-in-issue-no-sandbox and gh-aw-mention-in-pr-no-sandbox advertise read as an allowed tool, but their generated Copilot SDK server args do not permit read. In SDK mode, this can block agents from reading repository files, causing degraded or failed analysis/fix behavior in user-triggered mention workflows.
Reproduction Steps
- Run the following script from repo root:
import json
import pathlib
import re
import sys
WORKFLOWS = [
".github/workflows/gh-aw-mention-in-issue-no-sandbox.lock.yml",
".github/workflows/gh-aw-mention-in-pr-no-sandbox.lock.yml",
]
mismatches = []
for path in WORKFLOWS:
text = pathlib.Path(path).read_text()
server_args = json.loads(re.search(r"GH_AW_COPILOT_SDK_SERVER_ARGS: '([^']+)'", text).group(1))
tool_cfg = json.loads(re.search(r"GH_AW_COPILOT_SDK_TOOL_CONFIG: '([^']+)'", text).group(1))
allowlist = [server_args[i + 1] for i, tok in enumerate(server_args[:-1]) if tok == "--allow-tool"]
cfg_tools = tool_cfg["permissions"]["allowedTools"]
print(f"{path}")
print(f" read in allowedTools config : {'read' in cfg_tools}")
print(f" read in --allow-tool args : {'read' in allowlist}")
if "read" in cfg_tools and "read" not in allowlist:
mismatches.append(path)
if mismatches:
print("\nFAIL: 'read' is configured but blocked by SDK server allowlist in:")
for path in mismatches:
print(f"- {path}")
sys.exit(1)
print("\nPASS")
- Execute with
python /tmp/gh-aw/agent/repro_read_tool_mismatch.py(or inline viapython - <<'PY' ... PY).
Expected vs Actual
Expected: If read appears in GH_AW_COPILOT_SDK_TOOL_CONFIG.permissions.allowedTools, it should also be present in SDK --allow-tool args.
Actual: Script exits non-zero and reports mismatch:
.github/workflows/gh-aw-mention-in-issue-no-sandbox.lock.yml
read in allowedTools config : True
read in --allow-tool args : False
.github/workflows/gh-aw-mention-in-pr-no-sandbox.lock.yml
read in allowedTools config : True
read in --allow-tool args : False
FAIL: 'read' is configured but blocked by SDK server allowlist in:
- .github/workflows/gh-aw-mention-in-issue-no-sandbox.lock.yml
- .github/workflows/gh-aw-mention-in-pr-no-sandbox.lock.yml
Failing Test
The script above is a minimal failing test: it deterministically exits with code 1 when a workflow claims read in tool config but omits it from SDK runtime allowlist.
Evidence
.github/workflows/gh-aw-mention-in-issue-no-sandbox.md:21enablescopilot-sdk: true..github/workflows/gh-aw-mention-in-pr-no-sandbox.md:28enablescopilot-sdk: true..github/workflows/gh-aw-mention-in-issue-no-sandbox.lock.yml:1692-1693hasallowedToolscontainingread, butGH_AW_COPILOT_SDK_SERVER_ARGSomits--allow-tool read..github/workflows/gh-aw-mention-in-pr-no-sandbox.lock.yml:2240-2241shows the same mismatch.
What is this? | From workflow: Trigger Bug Hunter
Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not.
- expires on Nov 23, 2026, 11:23 AM UTC
- Lingua principale
- Python
- Stelle
- 13
- Fork
- 16
- Merge medio
- 45m
- PR unite (30g)
- 1
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di elastic/ai-github-actions
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
elastic/ai-github-actions#2523 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
elastic/ai-github-actions#2522 ·
-
[workflow-patrol] Workflow drift detected: duplicate-issue-detector missing runtime setup patternAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
elastic/ai-github-actions#2517 ·
-
information-architecture
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
elastic/ai-github-actions#2511 ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
elastic/ai-github-actions#2499 · 1 commento ·
Tutte le issue di elastic/ai-github-actions
Issue simili
-
CI flake: test-windows times out spawning Node in tests/test_antigravity_node_hooks.py (develop red)Apertaarea/ci P2
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 2 giorni
-
benchmark
Difficoltà 1/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 79/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
mozilla-ai/cq#601 ·
I maintainer di solito rispondono entro 1 giorno
-
Bump Python to 3.14 or 3.15Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno