Skip to content

Add reviewed bridge repository allowlist - #68

Merged
Changyong Gong (chagong) merged 3 commits into
mainfrom
chagong-bridge-repository-allowlist
Nov 25, 2026
Merged

Changyong Gong (chagong) merged 3 commits into
mainfrom
chagong-bridge-repository-allowlist

Conversation

@chagong

@chagong Changyong Gong (chagong) commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Configure the bridge repository allowlist as a validated JSON array of numeric IDs in the ISSUELENS_BRIDGE_REPOSITORY_ALLOWLIST Function App setting, retaining the IssueLens repository ID guard and existing reservation keys.
  • Admit additional enrolled public repositories, including Java Pack, for manual workflow_dispatch issue-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.
  • Preserve the existing IssueLens issue workflow/event scope and exact team-memory coordinator restriction. Document enrollment requirements, and cover identity, scope, configuration, and coordinator behavior.

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 --check

No bridge deployment, workflow dispatch, or repository settings changes were made. Enrollment requires authorized Function App configuration and protection/review of all eligible caller workflows.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings November 25, 2026 01:55

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 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>
Copilot AI balanced review requested due to automatic review settings November 25, 2026 03:14

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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

Comment thread automation_bridge/bridge.py Resolved

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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

Comment thread automation_bridge/bridge.py Resolved
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings November 25, 2026 03:35

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 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

@chagong
Changyong Gong (chagong) merged commit 1a154b4 into main Nov 25, 2026
8 checks passed
@chagong
Changyong Gong (chagong) deleted the chagong-bridge-repository-allowlist branch November 25, 2026 03:45
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