Repository navigation
Add reviewed bridge repository allowlist - #68
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🔵 Needs a closer look
Expanding write-capable OIDC admission to Java Pack requires human confirmation of enrollment authorization and protected-workflow controls that mocked tests cannot establish.
No open issues 🎉
What changed in this PR
Extends the Function bridge’s admission policy to support a manual-only Java Pack issue-loop pilot while preserving existing IssueLens access and reservation compatibility.
Changes:
- Adds a validated allowlist binding repositories to exact identities, branches, workflows, and events.
- Makes branch-protection checks repository-aware and isolates issue reservations across repositories.
- Packages the allowlist, expands validation coverage, and documents enrollment requirements. No deployment or workflow enablement is included.
| File | Description |
|---|---|
tests/test_team_memory_coordinator.py |
Adds repository identity to coordinator test claims. |
tests/test_automation_bridge.py |
Covers admission restrictions, reservation isolation, manifest validation, and packaging. |
docs/guide.md |
Documents Java Pack enrollment, release requirements, and trust boundaries. |
automation_bridge/repository_allowlist.json |
Defines permitted IssueLens and manual-only Java Pack workflows. |
automation_bridge/function_app.py |
Passes authenticated claims to the branch-protection fallback. |
automation_bridge/bundle.py |
Includes the allowlist in the deployment bundle. |
automation_bridge/bridge.py |
Validates allowlisted identities and scopes checks and reservations by repository. |
.github/copilot-instructions.md |
Updates contributor documentation for the restricted Java Pack pilot. |
.github/actions/issuelens/README.md |
Clarifies which reviewed workflows can use bridge transport. |
Review effort: Balanced
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🟡 Changes recommended
The admission check trusts any Java Pack YAML workflow on the protected default branch rather than only the promised workflow, allowing other workflows with id-token write permission to submit trusted, write-capable issue-loop jobs.
1 open issue
Review effort: Balanced
There was a problem hiding this comment.
🟡 Changes recommended
A case-only rename of the pilot repository passes the numeric-ID guard while bypassing its exact workflow restrictions and allowing a new run to evade an existing reservation.
1 open issue
1 resolved since last review
Review effort: Balanced
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🔵 Needs a closer look
Expanding write-capable ingress trust to eligible manual workflows in enrolled repositories requires maintainer verification of caller workflow protections, OIDC permissions, and live Function App enrollment settings.
No open issues 🎉
1 resolved since last review
Review effort: Balanced

Summary
ISSUELENS_BRIDGE_REPOSITORY_ALLOWLISTFunction App setting, retaining the IssueLens repository ID guard and existing reservation keys.workflow_dispatchissue-loop jobs from GitHub-hosted workflows on their protected current default branch. Admission is not restricted to a particular workflow filename: other eligible workflows with OIDC access on that branch can submit jobs. Issue reservations are repository-isolated.Validation
python -m unittest tests.test_automation_bridge tests.test_team_memory_coordinator tests.test_issuelens_action.IssueLensRequestTests.test_manual_issue_dispatch_uses_explicit_issue_and_null_comment tests.test_issuelens_action.IssueLensRequestTests.test_manual_dispatch_rejects_pr_as_issue -q(49 tests;PYTHONPATH=tests)git diff --checkNo bridge deployment, workflow dispatch, or repository settings changes were made. Enrollment requires authorized Function App configuration and protection/review of all eligible caller workflows.