diff --git a/.github/workflows/flamingo-code-review.yml b/.github/workflows/flamingo-code-review.yml index 1f0631e7983..fdad2a5b887 100644 --- a/.github/workflows/flamingo-code-review.yml +++ b/.github/workflows/flamingo-code-review.yml @@ -1,5 +1,6 @@ # Generated by the Flamingo hub — do not edit by hand. -# Per-repo settings live in the hub admin (/admin/code-review); this file is +# Per-repo settings live in the hub admin (/admin/code-review and +# /admin/security-review); this file is # byte-identical across every reviewed repository AND every deployment, which # is what makes drift detectable by comparison. The hub's address arrives in # the dispatch payload (Code Documentation style) or, for pull_request runs, the @@ -453,7 +454,7 @@ jobs: } >> "$GITHUB_OUTPUT" # A pull request that ENTERS review is INVITED, not reviewed. This job posts - # the summary comment with one checkbox; ticking it (or typing the command) + # each reviewer's summary comment with one checkbox; ticking it (or typing the command) # is what starts the first review, through resolve_command above. It asks the # hub first, so a repository whose review is switched off gets no invitation # to a review that would not run; a hub that cannot be reached still gets @@ -471,6 +472,14 @@ jobs: github.event.action != 'labeled' && github.event.action != 'synchronize' && github.event.pull_request.draft == false + # One invitation per reviewer, each its own comment: the hub answers per kind, so a repository with only one of + # them on gets only that one. + strategy: + fail-fast: false + matrix: + kind: ["general","security"] + env: + REVIEW_KIND: ${{ matrix.kind }} runs-on: ubuntu-latest permissions: # The invitation is the summary comment the review later edits: posted as the Flamingo app (APP_TOKEN_LINES). @@ -608,7 +617,7 @@ jobs: download_script_group "review" - - name: Ask the hub whether this repository is reviewed + - name: Ask the hub whether this reviewer is on id: rules env: WEBHOOK_SECRET: ${{ secrets.FLAMINGO_HUB_SECRET }}