ci: inherit gadfly's default swarm (slim caller, re-pin @b02b11d) #14
@@ -1,7 +1,8 @@
|
|||||||
# Gadfly adversarial review — subscribes to steve/gadfly's reusable workflow.
|
# Gadfly adversarial review — subscribes to steve/gadfly's reusable workflow and
|
||||||
# Mirrors gadfly's own dogfood config: 6 cloud models + the Claude Code engine
|
# INHERITS its default swarm. This stub holds only the triggers, the actor gate,
|
||||||
# (sonnet, opus, and opus with max extended thinking). No local Macs. Advisory
|
# secret forwarding, and the allow-list; the swarm config (models, lenses,
|
||||||
# only — never blocks a merge.
|
# concurrency, timeouts) lives centrally in gadfly's review-reusable.yml so it is
|
||||||
|
# tuned in ONE place. Advisory only — never blocks a merge.
|
||||||
|
|
||||||
name: Adversarial Review (Gadfly)
|
name: Adversarial Review (Gadfly)
|
||||||
|
|
||||||
@@ -28,8 +29,9 @@ concurrency:
|
|||||||
jobs:
|
jobs:
|
||||||
review:
|
review:
|
||||||
# Security: only trusted users may trigger a secret-bearing run via a PR
|
# Security: only trusted users may trigger a secret-bearing run via a PR
|
||||||
# comment (pull_request + workflow_dispatch are already trusted). Mirrors
|
# comment (pull_request + workflow_dispatch are already trusted). Mirrors the
|
||||||
# the allowed_users input below (the in-container belt-and-suspenders check).
|
# allowed_users input below (the in-container belt-and-suspenders check) — both
|
||||||
|
# lists must stay in sync; a workflow if: can't read a workflow_call input.
|
||||||
if: >-
|
if: >-
|
||||||
github.event_name != 'issue_comment'
|
github.event_name != 'issue_comment'
|
||||||
|| (github.event.issue.pull_request
|
|| (github.event.issue.pull_request
|
||||||
@@ -38,19 +40,14 @@ jobs:
|
|||||||
|| github.actor == 'dazed'))
|
|| github.actor == 'dazed'))
|
||||||
# Pinned to an immutable gadfly commit (not @main): a push to gadfly can't
|
# Pinned to an immutable gadfly commit (not @main): a push to gadfly can't
|
||||||
# silently change the code that runs with our forwarded secrets.
|
# silently change the code that runs with our forwarded secrets.
|
||||||
uses: steve/gadfly/.gitea/workflows/review-reusable.yml@20a5c431f22d43bab0f711c14ce74de3a735c110
|
uses: steve/gadfly/.gitea/workflows/review-reusable.yml@b02b11d69139843665da4cdbf776bc0b3583490d
|
||||||
# Least privilege: forward ONLY the secrets this swarm uses (GITEA_TOKEN is auto).
|
# Least privilege: forward only the review secrets (not `secrets: inherit`,
|
||||||
|
# which would expose every repo secret). GITEA_TOKEN is the automatic token.
|
||||||
secrets:
|
secrets:
|
||||||
OLLAMA_CLOUD_API_KEY: ${{ secrets.OLLAMA_CLOUD_API_KEY }}
|
OLLAMA_CLOUD_API_KEY: ${{ secrets.OLLAMA_CLOUD_API_KEY }}
|
||||||
CLAUDE_CODE_OAUTH_TOKEN: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
|
CLAUDE_CODE_OAUTH_TOKEN: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
|
||||||
GADFLY_FINDINGS_URL: ${{ secrets.GADFLY_FINDINGS_URL }}
|
GADFLY_FINDINGS_URL: ${{ secrets.GADFLY_FINDINGS_URL }}
|
||||||
GADFLY_FINDINGS_TOKEN: ${{ secrets.GADFLY_FINDINGS_TOKEN }}
|
GADFLY_FINDINGS_TOKEN: ${{ secrets.GADFLY_FINDINGS_TOKEN }}
|
||||||
with:
|
with:
|
||||||
models: "minimax-m3:cloud,glm-5.2:cloud,glm-5.1:cloud,deepseek-v4-pro:cloud,nemotron-3-super:cloud,qwen3-coder:480b-cloud,claude-code/sonnet,claude-code/opus,claude-code/opus:max"
|
# Consumer-specific allow-list; everything else is inherited.
|
||||||
specialists: "security,correctness,error-handling"
|
|
||||||
provider_concurrency: "ollama-cloud=3,claude-code=2"
|
|
||||||
provider_lens_concurrency: "ollama-cloud=3"
|
|
||||||
timeout_secs: "600"
|
|
||||||
max_steps: "14"
|
|
||||||
allowed_users: "steve,fizi,dazed"
|
allowed_users: "steve,fizi,dazed"
|
||||||
timeout_minutes: 90
|
|
||||||
|
|||||||
Reference in New Issue
Block a user