Skip to content

fix: add mode: gh-proxy to smoke-sink-visibility workflows#6164

Merged
lpcox merged 8 commits into
mainfrom
fix-smoke-sink-visibility-gh-proxy
Jul 13, 2026
Merged

fix: add mode: gh-proxy to smoke-sink-visibility workflows#6164
lpcox merged 8 commits into
mainfrom
fix-smoke-sink-visibility-gh-proxy

Conversation

@lpcox

@lpcox lpcox commented Jul 13, 2026

Copy link
Copy Markdown
Collaborator

Problem

Both smoke-sink-visibility workflows (allowed and blocked) failed because the gh CLI was unauthenticated inside the AWF agent container.

Root cause: Without mode: gh-proxy, the default local mode is used. In local mode the gh-aw compiler doesn't set up the CLI proxy (DIFC proxy sidecar), so:

  • GITHUB_TOKEN/GH_TOKEN are cleared by AWF's one-shot token isolation
  • There's no proxy to inject credentials for gh CLI calls

Fix

Add mode: gh-proxy to tools.github in both workflow .md files. This tells the compiler to:

  1. Add the cli-proxy container to the AWF topology
  2. Pass --difc-proxy-host awmg-cli-proxy:18443 to AWF
  3. Pre-authenticate gh CLI through the MCPG CLI proxy

Next steps

Lock files need recompilation on this branch (the local compiler v0.82.8 doesn't support private-to-public-flows — the lock files were originally compiled with v0.82.8-28+).

The gh CLI was unauthenticated inside the AWF container because the
default local mode doesn't set up the CLI proxy (DIFC proxy sidecar).
Adding mode: gh-proxy tells the compiler to configure the cli-proxy
container so gh CLI calls are authenticated through the MCPG proxy.

Lock files need recompilation with the newer compiler that supports
private-to-public-flows.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings July 13, 2026 02: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 GitHub CLI proxy mode to both sink-visibility smoke workflows.

Changes:

  • Enables mode: gh-proxy for allowed and blocked scenarios.
  • Corresponding generated lock workflows remain stale.
Show a summary per file
File Description
.github/workflows/smoke-sink-visibility-allowed.md Enables GitHub CLI proxy mode.
.github/workflows/smoke-sink-visibility-blocked.md Enables GitHub CLI proxy mode.

Review details

Tip

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

  • Files reviewed: 4/4 changed files
  • Comments generated: 2
  • Review effort level: Medium

bash:
- "*"
github:
mode: gh-proxy
bash:
- "*"
github:
mode: gh-proxy
@github-actions

Copy link
Copy Markdown
Contributor

✅ Coverage Check Passed

Overall Coverage

Metric Base PR Delta
Lines 98.92% 98.95% 📈 +0.03%
Statements 98.88% 98.91% 📈 +0.03%
Functions 99.34% 99.34% ➡️ +0.00%
Branches 95.11% 95.11% ➡️ +0.00%
📁 Per-file Coverage Changes (1 files)
File Lines (Before → After) Statements (Before → After)
src/log-directory-setup.ts 96.2% → 100.0% (+3.78%) 96.3% → 100.0% (+3.71%)

Coverage comparison generated by scripts/ci/compare-coverage.ts

This should make the MCP Gateway (and CLI proxy) deny reads from private
repos, which is needed for the sink-visibility-blocked smoke test to
actually block access to github/agentic-workflows.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@github-actions

Copy link
Copy Markdown
Contributor

✅ Copilot review passed with no inline comments.

@lpcox Add the ready-for-aw label to this PR to trigger agentic CI smoke tests.

The CLI proxy guard policy had repos='all' which allows reading any repo
including private ones. Change to repos='public' so the MCPG CLI proxy
filters out private repos like github/agentic-workflows.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@lpcox
lpcox merged commit c96e8ef into main Jul 13, 2026
28 checks passed
@lpcox
lpcox deleted the fix-smoke-sink-visibility-gh-proxy branch July 13, 2026 03:58
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