Skip to content

fix: configure dynamic enclave smoke guard - #8324

Merged
lpcox merged 9 commits into
mainfrom
fix-dynamic-enclave-smoke-lock
Sep 8, 2026
Merged

fix: configure dynamic enclave smoke guard#8324
lpcox merged 9 commits into
mainfrom
fix-dynamic-enclave-smoke-lock

Conversation

@lpcox

@lpcox lpcox commented Sep 8, 2026

Copy link
Copy Markdown
Collaborator

Summary

Hard-code the dynamic enclave smoke workflow's shared GitHub MCP guard policy to the repository and integrity level exercised by the smoke test.

The first manual run failed before dynamic execution because tools.github: false left GITHUB_MCP_GUARD_MIN_INTEGRITY and GITHUB_MCP_GUARD_REPOS empty, causing mcpg to reject the generated policy. This lockfile-only change lets the next run proceed far enough to expose any remaining integration failures.

Failed baseline: https://github.com/github/gh-aw-firewall/actions/runs/34242136446

Validation

  • npx jest scripts/ci/smoke-enclave-workflow.test.ts --runInBand
  • git diff --check

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

Copilot-Session: 9bb72ca5-93c0-4048-970e-bd58994d90e2
Copilot AI balanced review requested due to automatic review settings September 8, 2026 15:09

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.

Copilot review overview

🟡 Changes recommended

The generated-only edit will be overwritten during the next workflow compilation unless added to the postprocessor and tests.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Review tier: Balanced
Findings: 1 High severity

New issues introduced by this change (1)
Severity Finding
High severity .github/​workflows/​smoke-enclave-dynamic-issues-read.lock.yml — This fix is applied only to a generated file, so the next gh aw compile will restore the two…
What changed in this PR

Hard-codes the GitHub MCP guard policy so the dynamic enclave smoke workflow can start successfully.

Changes:

  • Restricts access to approved-integrity data from github/gh-aw.
File Description
.github/​workflows/​smoke-enclave-dynamic-issues-read.lock.yml Configures the smoke test’s MCP guard policy.

💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +768 to +769
"min-integrity": "approved",
"repos": ["github/gh-aw"]
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 9bb72ca5-93c0-4048-970e-bd58994d90e2
@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

✅ Coverage Check Passed

Overall Coverage

Metric Base PR Delta
Lines 94.04% 94.05% ➡️ +0.01%
Statements 92.72% 92.73% 📈 +0.01%
Functions 93.41% 93.41% ➡️ +0.00%
Branches 86.63% 86.64% 📈 +0.01%
📁 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

@github-actions

github-actions Bot commented Sep 8, 2026

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.

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

Copilot-Session: 9bb72ca5-93c0-4048-970e-bd58994d90e2
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 9bb72ca5-93c0-4048-970e-bd58994d90e2
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 9bb72ca5-93c0-4048-970e-bd58994d90e2
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 9bb72ca5-93c0-4048-970e-bd58994d90e2
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 9bb72ca5-93c0-4048-970e-bd58994d90e2
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 9bb72ca5-93c0-4048-970e-bd58994d90e2
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 9bb72ca5-93c0-4048-970e-bd58994d90e2
@lpcox
lpcox merged commit 153a5d0 into main Sep 8, 2026
32 checks passed
@lpcox
lpcox deleted the fix-dynamic-enclave-smoke-lock branch September 8, 2026 22:22
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