Skip to content

Allow Runner Doctor to review untrusted PR content - #11419

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

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

Conversation

Copilot AI commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

The updater’s default integrity threshold filtered PR details from its review queue, so it reported incomplete coverage. The workflow now permits reading untrusted content while limiting GitHub access to this repository.

  • GitHub access: Set min-integrity: none and restrict reads with allowed-repos.
  • Workflow lock and regression coverage: Regenerated the lock and added assertions for the integrity threshold and repository scope.
tools:
  github:
    toolsets: [issues, pull_requests]
    allowed-repos: [github/gh-aw-firewall]
    min-integrity: none

Copilot AI changed the title [WIP] Fix incomplete result reported by Runner Doctor Updater Allow Runner Doctor to review untrusted PR content Nov 10, 2026
Copilot AI requested a review from lpcox November 10, 2026 16:57
@lpcox

lpcox commented Nov 10, 2026

Copy link
Copy Markdown
Collaborator

@copilot merge main and resolve conflicts

github:
toolsets: [issues, pull_requests]
allowed-repos: [github/gh-aw-firewall]
min-integrity: none
…ner-doctor-updater

# Conflicts:
#	.github/workflows/self-hosted-runner-doctor-updater.lock.yml

Co-authored-by: lpcox <[email protected]>

Copilot AI commented Nov 10, 2026

Copy link
Copy Markdown
Contributor Author

@copilot merge main and resolve conflicts

Merged main, resolved the updater lock conflict, and published merge commit dc063ec.

@lpcox
lpcox marked this pull request as ready for review November 10, 2026 17:30
Copilot AI adaptive review requested due to automatic review settings November 10, 2026 17:30

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 cache-key change breaks existing regression assertions, while disabled threat detection leaves automatically published issues exposed to injected recommendations from untrusted repository content.

2 open issues
What changed in this PR

Unblocks Runner Doctor’s diagnosis-maintenance reviews by allowing untrusted issue and PR content while restricting GitHub reads to this repository.

Changes:

  • Sets an explicit repository allowlist and min-integrity: none.
  • Regenerates the lock with policy-aware proxy, gateway, and cache configuration.
  • Adds regression assertions for the access settings.
File Description
scripts/​ci/​self-hosted-runner-doctor-updater-workflow.test.ts Checks repository scope and integrity settings in source and lock.
.github/​workflows/​self-hosted-runner-doctor-updater.md Allows untrusted content reads within github/gh-aw-firewall.
.github/​workflows/​self-hosted-runner-doctor-updater.lock.yml Applies the compiled access policy and related runtime configuration.

Review effort: Max (auto)

uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
key: memory-none-nopolicy-${{ env.GH_AW_WORKFLOW_ID_SANITIZED }}-${{ github.run_id }}
key: memory-none-624a7cc8-${{ env.GH_AW_WORKFLOW_ID_SANITIZED }}-${{ github.run_id }}
github:
toolsets: [issues, pull_requests]
allowed-repos: [github/gh-aw-firewall]
min-integrity: none
@lpcox

lpcox commented Nov 10, 2026

Copy link
Copy Markdown
Collaborator

@copilot address all review feedback including security reviews

Copilot AI commented Nov 10, 2026

Copy link
Copy Markdown
Contributor Author

@copilot address all review feedback including security reviews

Addressed the review feedback: raised the GitHub integrity floor to approved, re-enabled threat detection, removed proxy and broad /tmp/gh-aw recovery roots, and updated the cache-key regression assertions. Committed as 761dc50. The workflow compiler and static checks passed; Jest could not run because the dependency mirror was unreachable.

@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 merged commit 036f79e into main Nov 10, 2026
37 of 39 checks passed
@lpcox
lpcox deleted the copilot/aw-repair-runner-doctor-updater branch November 10, 2026 18:34
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