From f95d39fceb6d2b60ad9a50facde7d5c2998c32c3 Mon Sep 17 00:00:00 2001 From: Tim Stranske Date: Mon, 4 May 2026 20:38:09 -0500 Subject: [PATCH] fix: use local eligibility action in workflows --- .github/sync-manifest.yml | 2 +- .github/workflows/agents-70-orchestrator.yml | 8 +++++++- .github/workflows/agents-auto-label.yml | 8 +++++++- .github/workflows/agents-auto-pilot.yml | 8 +++++++- .github/workflows/agents-autofix-dispatcher.yml | 4 ++++ .github/workflows/agents-bot-comment-handler.yml | 8 +++++++- .github/workflows/agents-guard.yml | 8 +++++++- .github/workflows/agents-moderate-connector.yml | 8 +++++++- .github/workflows/autofix.yml | 8 +++++++- .../.github/workflows/agents-80-pr-event-hub.yml | 8 +++++++- .../consumer-repo/.github/workflows/agents-auto-label.yml | 8 +++++++- .../consumer-repo/.github/workflows/agents-auto-pilot.yml | 8 +++++++- .../.github/workflows/agents-autofix-dispatcher.yml | 4 ++++ .../consumer-repo/.github/workflows/agents-guard.yml | 8 +++++++- templates/consumer-repo/.github/workflows/autofix.yml | 8 +++++++- 15 files changed, 93 insertions(+), 13 deletions(-) diff --git a/.github/sync-manifest.yml b/.github/sync-manifest.yml index 1a6e4a95a..fe640f88e 100644 --- a/.github/sync-manifest.yml +++ b/.github/sync-manifest.yml @@ -78,7 +78,7 @@ workflows: description: "Codex belt conveyor - orchestrates belt worker execution and handles completion" - source: .github/workflows/agents-autofix-dispatcher.yml - description: "Autofix dispatch bridge - listens for Gate repository_dispatch events and triggers the autofix loop" + description: "Autofix dispatch bridge - acknowledges legacy Gate repository_dispatch events; agents-81-gate-followups handles repair work" - source: .github/workflows/agents-verifier.yml description: "Verifier - validates agent work meets acceptance criteria" diff --git a/.github/workflows/agents-70-orchestrator.yml b/.github/workflows/agents-70-orchestrator.yml index 0d030bb5f..d2a18a9ee 100644 --- a/.github/workflows/agents-70-orchestrator.yml +++ b/.github/workflows/agents-70-orchestrator.yml @@ -49,10 +49,16 @@ jobs: outputs: should_run: ${{ steps.eligibility.outputs.should-run }} steps: + - name: Checkout eligibility action + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 + with: + sparse-checkout: .github/actions/agent-event-eligibility + sparse-checkout-cone-mode: false + # Escape hatch: set mode: warning if false-negative skips appear post-merge. - name: Check event eligibility id: eligibility - uses: stranske/Workflows/.github/actions/agent-event-eligibility@main + uses: ./.github/actions/agent-event-eligibility with: expected-actions: workflow_dispatch,schedule custom-predicate: >- diff --git a/.github/workflows/agents-auto-label.yml b/.github/workflows/agents-auto-label.yml index c63dffb4e..ffcda6875 100644 --- a/.github/workflows/agents-auto-label.yml +++ b/.github/workflows/agents-auto-label.yml @@ -40,10 +40,16 @@ jobs: !contains(github.event.issue.labels.*.name, 'automated') steps: + - name: Checkout eligibility action + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 + with: + sparse-checkout: .github/actions/agent-event-eligibility + sparse-checkout-cone-mode: false + # Escape hatch: set mode: warning if false-negative skips appear post-merge. - name: Check event eligibility id: eligibility - uses: stranske/Workflows/.github/actions/agent-event-eligibility@main + uses: ./.github/actions/agent-event-eligibility with: expected-actions: opened,reopened,labeled custom-predicate: >- diff --git a/.github/workflows/agents-auto-pilot.yml b/.github/workflows/agents-auto-pilot.yml index 0b373660a..0d9b073c4 100644 --- a/.github/workflows/agents-auto-pilot.yml +++ b/.github/workflows/agents-auto-pilot.yml @@ -70,10 +70,16 @@ jobs: outputs: proceed: ${{ steps.eligibility.outputs.should-run }} steps: + - name: Checkout eligibility action + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 + with: + sparse-checkout: .github/actions/agent-event-eligibility + sparse-checkout-cone-mode: false + # Escape hatch: set mode: warning if false-negative skips appear post-merge. - name: Check event eligibility id: eligibility - uses: stranske/Workflows/.github/actions/agent-event-eligibility@main + uses: ./.github/actions/agent-event-eligibility with: expected-actions: workflow_dispatch,labeled,closed custom-predicate: >- diff --git a/.github/workflows/agents-autofix-dispatcher.yml b/.github/workflows/agents-autofix-dispatcher.yml index 29749ff49..79c66eee1 100644 --- a/.github/workflows/agents-autofix-dispatcher.yml +++ b/.github/workflows/agents-autofix-dispatcher.yml @@ -1,5 +1,9 @@ name: Agents Autofix Dispatch +# Compatibility bridge for legacy Gate repository_dispatch events. Gate-driven +# repair routing now lives in agents-81-gate-followups.yml via workflow_run, so +# this workflow only validates and logs the old dispatch payload. + on: repository_dispatch: types: diff --git a/.github/workflows/agents-bot-comment-handler.yml b/.github/workflows/agents-bot-comment-handler.yml index 68ef57e25..551678f73 100644 --- a/.github/workflows/agents-bot-comment-handler.yml +++ b/.github/workflows/agents-bot-comment-handler.yml @@ -61,10 +61,16 @@ jobs: skip_reason: ${{ steps.resolve.outputs.skip_reason }} workflow_app_auth_mode: ${{ steps.workflow-app-creds.outputs.workflow_app_auth_mode }} steps: + - name: Checkout eligibility action + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 + with: + sparse-checkout: .github/actions/agent-event-eligibility + sparse-checkout-cone-mode: false + # Escape hatch: set mode: warning if false-negative skips appear post-merge. - name: Check event eligibility id: eligibility - uses: stranske/Workflows/.github/actions/agent-event-eligibility@main + uses: ./.github/actions/agent-event-eligibility with: expected-actions: workflow_dispatch,labeled,completed custom-predicate: >- diff --git a/.github/workflows/agents-guard.yml b/.github/workflows/agents-guard.yml index 03f759c4a..c93009346 100644 --- a/.github/workflows/agents-guard.yml +++ b/.github/workflows/agents-guard.yml @@ -30,10 +30,16 @@ jobs: runs-on: ubuntu-latest steps: + - name: Checkout eligibility action + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 + with: + sparse-checkout: .github/actions/agent-event-eligibility + sparse-checkout-cone-mode: false + # Escape hatch: set mode: warning if false-negative skips appear post-merge. - name: Check event eligibility id: eligibility - uses: stranske/Workflows/.github/actions/agent-event-eligibility@main + uses: ./.github/actions/agent-event-eligibility with: expected-labels: >- agent:auto,agent:codex,agent:claude,agent:copilot, diff --git a/.github/workflows/agents-moderate-connector.yml b/.github/workflows/agents-moderate-connector.yml index dd5dbf866..ede83f6d5 100644 --- a/.github/workflows/agents-moderate-connector.yml +++ b/.github/workflows/agents-moderate-connector.yml @@ -27,10 +27,16 @@ jobs: outputs: moderated: ${{ steps.evaluate.outputs.delete || 'false' }} steps: + - name: Checkout eligibility action + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 + with: + sparse-checkout: .github/actions/agent-event-eligibility + sparse-checkout-cone-mode: false + # Escape hatch: set mode: warning if false-negative skips appear post-merge. - name: Check event eligibility id: eligibility - uses: stranske/Workflows/.github/actions/agent-event-eligibility@main + uses: ./.github/actions/agent-event-eligibility with: expected-actions: created custom-predicate: >- diff --git a/.github/workflows/autofix.yml b/.github/workflows/autofix.yml index 8d1e6b5ba..dc60999d0 100644 --- a/.github/workflows/autofix.yml +++ b/.github/workflows/autofix.yml @@ -33,10 +33,16 @@ jobs: same_repo: ${{ steps.context.outputs.same_repo }} caller_actor: ${{ steps.context.outputs.caller_actor }} steps: + - name: Checkout eligibility action + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 + with: + sparse-checkout: .github/actions/agent-event-eligibility + sparse-checkout-cone-mode: false + # Escape hatch: set mode: warning if false-negative skips appear post-merge. - name: Check event eligibility id: eligibility - uses: stranske/Workflows/.github/actions/agent-event-eligibility@main + uses: ./.github/actions/agent-event-eligibility with: expected-actions: completed,labeled custom-predicate: >- diff --git a/templates/consumer-repo/.github/workflows/agents-80-pr-event-hub.yml b/templates/consumer-repo/.github/workflows/agents-80-pr-event-hub.yml index a8111201e..c96148fd0 100644 --- a/templates/consumer-repo/.github/workflows/agents-80-pr-event-hub.yml +++ b/templates/consumer-repo/.github/workflows/agents-80-pr-event-hub.yml @@ -71,10 +71,16 @@ jobs: debug: ${{ steps.resolve.outputs.debug }} should_run: ${{ steps.eligibility.outputs.should-run || 'false' }} steps: + - name: Checkout eligibility action + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 + with: + sparse-checkout: .github/actions/agent-event-eligibility + sparse-checkout-cone-mode: false + # Escape hatch: set mode: warning if false-negative skips appear post-merge. - name: Check event eligibility id: eligibility - uses: stranske/Workflows/.github/actions/agent-event-eligibility@main + uses: ./.github/actions/agent-event-eligibility with: expected-actions: >- workflow_dispatch,created,opened,synchronize,reopened,edited, diff --git a/templates/consumer-repo/.github/workflows/agents-auto-label.yml b/templates/consumer-repo/.github/workflows/agents-auto-label.yml index 6efbb8c2f..fa1201504 100644 --- a/templates/consumer-repo/.github/workflows/agents-auto-label.yml +++ b/templates/consumer-repo/.github/workflows/agents-auto-label.yml @@ -32,10 +32,16 @@ jobs: !contains(github.event.issue.labels.*.name, 'automated') steps: + - name: Checkout eligibility action + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 + with: + sparse-checkout: .github/actions/agent-event-eligibility + sparse-checkout-cone-mode: false + # Escape hatch: set mode: warning if false-negative skips appear post-merge. - name: Check event eligibility id: eligibility - uses: stranske/Workflows/.github/actions/agent-event-eligibility@main + uses: ./.github/actions/agent-event-eligibility with: expected-actions: opened,reopened,labeled custom-predicate: >- diff --git a/templates/consumer-repo/.github/workflows/agents-auto-pilot.yml b/templates/consumer-repo/.github/workflows/agents-auto-pilot.yml index acabef0d1..d559975e0 100644 --- a/templates/consumer-repo/.github/workflows/agents-auto-pilot.yml +++ b/templates/consumer-repo/.github/workflows/agents-auto-pilot.yml @@ -70,10 +70,16 @@ jobs: outputs: proceed: ${{ steps.eligibility.outputs.should-run }} steps: + - name: Checkout eligibility action + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 + with: + sparse-checkout: .github/actions/agent-event-eligibility + sparse-checkout-cone-mode: false + # Escape hatch: set mode: warning if false-negative skips appear post-merge. - name: Check event eligibility id: eligibility - uses: stranske/Workflows/.github/actions/agent-event-eligibility@main + uses: ./.github/actions/agent-event-eligibility with: expected-actions: workflow_dispatch,labeled,closed custom-predicate: >- diff --git a/templates/consumer-repo/.github/workflows/agents-autofix-dispatcher.yml b/templates/consumer-repo/.github/workflows/agents-autofix-dispatcher.yml index 744639081..8800830fa 100644 --- a/templates/consumer-repo/.github/workflows/agents-autofix-dispatcher.yml +++ b/templates/consumer-repo/.github/workflows/agents-autofix-dispatcher.yml @@ -1,5 +1,9 @@ name: Agents Autofix Dispatch +# Compatibility bridge for legacy Gate repository_dispatch events. Gate-driven +# repair routing now lives in agents-81-gate-followups.yml via workflow_run, so +# this workflow only validates and logs the old dispatch payload. + on: repository_dispatch: types: diff --git a/templates/consumer-repo/.github/workflows/agents-guard.yml b/templates/consumer-repo/.github/workflows/agents-guard.yml index c1a369fc0..c583f41d1 100644 --- a/templates/consumer-repo/.github/workflows/agents-guard.yml +++ b/templates/consumer-repo/.github/workflows/agents-guard.yml @@ -30,10 +30,16 @@ jobs: runs-on: ubuntu-latest steps: + - name: Checkout eligibility action + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 + with: + sparse-checkout: .github/actions/agent-event-eligibility + sparse-checkout-cone-mode: false + # Escape hatch: set mode: warning if false-negative skips appear post-merge. - name: Check event eligibility id: eligibility - uses: stranske/Workflows/.github/actions/agent-event-eligibility@main + uses: ./.github/actions/agent-event-eligibility with: expected-labels: >- agent:auto,agent:codex,agent:claude,agent:copilot, diff --git a/templates/consumer-repo/.github/workflows/autofix.yml b/templates/consumer-repo/.github/workflows/autofix.yml index cf5858cdf..7b408e490 100644 --- a/templates/consumer-repo/.github/workflows/autofix.yml +++ b/templates/consumer-repo/.github/workflows/autofix.yml @@ -65,10 +65,16 @@ jobs: same_repo: ${{ steps.context.outputs.same_repo }} caller_actor: ${{ steps.context.outputs.caller_actor }} steps: + - name: Checkout eligibility action + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 + with: + sparse-checkout: .github/actions/agent-event-eligibility + sparse-checkout-cone-mode: false + # Escape hatch: set mode: warning if false-negative skips appear post-merge. - name: Check event eligibility id: eligibility - uses: stranske/Workflows/.github/actions/agent-event-eligibility@main + uses: ./.github/actions/agent-event-eligibility with: expected-actions: completed,labeled custom-predicate: >-