diff --git a/.github/workflows/eta-mu-review.yml b/.github/workflows/eta-mu-review.yml new file mode 100644 index 000000000000..2a3ad193f2b6 --- /dev/null +++ b/.github/workflows/eta-mu-review.yml @@ -0,0 +1,25 @@ +name: eta-mu evidence review + +on: + pull_request: + types: [opened, synchronize, reopened, ready_for_review] + +# Reusable workflow calls run with `none` unless the caller grants scopes; +# the called jobs request contents:read and pull-requests:read. +permissions: + contents: read + pull-requests: read + +jobs: + review: + name: Evidence-first review (eta-mu) + uses: open-hax/eta-mu/.github/workflows/opencode-code-review.yml@2b918cdab2ebd30e745bb8fa86d077d7a3af0030 + with: + setup_eta_mu_toolchain: false + evidence_gates_script: | + run_gate diff_stat git diff --stat "${PR_BASE_SHA}...HEAD" + # Least privilege: forward only the secrets the review job consumes. + secrets: + ETA_MU_APP_ID: ${{ secrets.ETA_MU_APP_ID }} + ETA_MU_APP_PRIVATE_KEY: ${{ secrets.ETA_MU_APP_PRIVATE_KEY }} + DISCORD_REVIEW_WEBHOOK_URL: ${{ secrets.DISCORD_REVIEW_WEBHOOK_URL }}