# Gadfly reviewing its OWN PRs — a thin CALLER of the reusable workflow # (.gitea/workflows/review-reusable.yml), dogfooding the "subscribe" path. The # reusable holds the image pin, env plumbing, AND the default swarm; this file # holds only the triggers, the actor gate, secret forwarding, and allow-list. # # Advisory only — never blocks a merge. It inherits the default swarm: 3 cloud # models + Claude Code (sonnet, opus, opus:max), 5-lens suite (claude models run # one at a time, each with all 5 lenses at once). name: Adversarial Review (Gadfly) on: pull_request: types: [opened, reopened, ready_for_review] issue_comment: types: [created] workflow_dispatch: inputs: pr_number: description: "PR number to review" required: true permissions: contents: read issues: write pull-requests: write concurrency: group: gadfly-${{ github.event.issue.number || github.event.pull_request.number || github.event.inputs.pr_number }} cancel-in-progress: true jobs: review: # Security: only trusted users may trigger a secret-bearing run via a PR # comment (pull_request + workflow_dispatch are already trusted). Mirrors # the allowed_users input below, the in-container belt-and-suspenders check. if: >- github.event_name != 'issue_comment' || (github.event.issue.pull_request && (github.actor == 'steve' || github.actor == 'fizi' || github.actor == 'dazed')) uses: ./.gitea/workflows/review-reusable.yml # Least privilege: forward ONLY the secrets this swarm uses (cloud + Claude # Code + findings telemetry), not `secrets: inherit`. GITEA_TOKEN is auto. secrets: OLLAMA_CLOUD_API_KEY: ${{ secrets.OLLAMA_CLOUD_API_KEY }} CLAUDE_CODE_OAUTH_TOKEN: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} GADFLY_FINDINGS_URL: ${{ secrets.GADFLY_FINDINGS_URL }} GADFLY_FINDINGS_TOKEN: ${{ secrets.GADFLY_FINDINGS_TOKEN }} with: # Inherit the default swarm (3 cloud + Claude Code sonnet/opus/opus:max, # 5-lens suite) from review-reusable.yml. Only the consumer-specific # allow-list is set here. allowed_users: "steve,fizi,dazed"