Skip to content

Allow Runner Doctor to read unapproved PR content - #11492

Merged
lpcox merged 4 commits into
mainfrom
copilot/aw-fix-runner-doctor-updater
Nov 12, 2026
Merged

lpcox merged 4 commits into
mainfrom
copilot/aw-fix-runner-doctor-updater

Conversation

Copilot AI commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Runner Doctor reported incomplete because GitHub MCP filtered candidate PR content below its approved integrity threshold.

  • Integrity policy: Lower the threshold to unapproved, allowing contributor PRs to be reviewed while retaining the repository restriction.
  • Safeguards: Keep threat detection enabled and preserve the shared guidance to treat PR and cache content as untrusted data.
  • Compiled workflow: Update the lock to match the source policy.

Copilot AI changed the title [WIP] Fix incomplete result reported by Runner Doctor Updater Allow Runner Doctor to read unapproved PR content Nov 12, 2026
Copilot AI requested a review from lpcox November 12, 2026 03:36
toolsets: [issues, pull_requests]
allowed-repos: [github/gh-aw-firewall]
min-integrity: approved
min-integrity: unapproved
@lpcox
lpcox marked this pull request as ready for review November 12, 2026 05:35
Copilot AI adaptive review requested due to automatic review settings November 12, 2026 05:35

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.

🟡 Changes recommended

The shared regression test rejects Runner Doctor’s new unapproved cache key and restore prefix, causing failures until both assertions are updated.

1 open issue
What changed in this PR

Allows Runner Doctor to read contributor PR content previously blocked by GitHub MCP’s integrity policy, addressing #11481 while retaining repository restrictions and threat detection.

Changes:

  • Lower the GitHub integrity threshold from approved to unapproved.
  • Synchronize the compiled policy and isolated cache namespace.
  • Update workflow-specific assertions and check that shared guidance treats PR and cache content as untrusted.
File Description
scripts/​ci/​self-hosted-runner-doctor-updater-workflow.test.ts Updates threshold expectations and checks untrusted-content guidance.
.github/​workflows/​self-hosted-runner-doctor-updater.md Allows unapproved content within the existing repository scope.
.github/​workflows/​self-hosted-runner-doctor-updater.lock.yml Synchronizes compiled integrity settings and cache keys.

Review effort: Max (auto)

uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
key: memory-approved-9801deff-${{ env.GH_AW_WORKFLOW_ID_SANITIZED }}-${{ github.run_id }}
key: memory-unapproved-12e11c09-${{ env.GH_AW_WORKFLOW_ID_SANITIZED }}-${{ github.run_id }}
@lpcox

lpcox commented Nov 12, 2026

Copy link
Copy Markdown
Collaborator

@copilot address review feedback

Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com>
@github-actions

Copy link
Copy Markdown
Contributor

✅ Copilot review passed with no inline comments.

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

@lpcox

lpcox commented Nov 12, 2026

Copy link
Copy Markdown
Collaborator

@copilot merge main and resolve conflicts

…-doctor-updater

Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com>

Copilot AI commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor Author

@copilot address review feedback

The shared cache key and restore-prefix assertions were updated in 04f2ef1 to accept unapproved, and the Root Unit Tests job passed (13,130 tests). I kept min-integrity: unapproved because the workflow must read contributor PR content; threat detection remains enabled and the shared contract continues to treat PR and cache text as untrusted. main is merged in cc7fa1a.

@copilot merge main and resolve conflicts

Merged main cleanly as two-parent commit cc7fa1a; there were no conflicts.

@lpcox
lpcox merged commit 67cc01b into main Nov 12, 2026
42 of 45 checks passed
@lpcox
lpcox deleted the copilot/aw-fix-runner-doctor-updater branch November 12, 2026 22:00
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.

[aw] Runner Doctor Updater: reported incomplete result

4 participants