1- # Generated by the Flamingo hub — do not edit by hand.
1+ # Generated by the flamingo hub — do not edit by hand.
22# Per-repo settings live in the hub admin (/admin/code-review and
33# /admin/security-review); this file is
44# byte-identical across every reviewed repository AND every deployment, which
55# is what makes drift detectable by comparison. The hub's address arrives in
66# the dispatch payload (Code Documentation style) or, for pull_request runs, the
77# org Actions variable FLAMINGO_HUB_BASE_URL.
8- # Named like its sibling pipeline ('🦩 Flamingo Code Documentation') so both
8+ # Named like its sibling pipeline ('🦩 flamingo Code Documentation') so both
99# read as one product family in the Actions sidebar.
10- name : 🦩 Flamingo Code Review
10+ name : 🦩 flamingo Code Review
1111
1212on :
1313 # Push trigger - registers workflow with GitHub Actions (required for
172172# Only the review job reads these (every other job states its own). The job's own token reads the repository and
173173# writes nothing on a pull request: id-token: write lets each step that writes prove to the hub which repository and
174174# workflow it runs in, and the hub answers the Flamingo app's token for that one repository. The review's comments and
175- # checks are the app's, like the hub's own "Flamingo Code Review / reviewed" status.
175+ # checks are the app's, like the hub's own "flamingo Code Review / reviewed" status.
176176permissions :
177177 contents : read
178178 id-token : write
@@ -213,7 +213,7 @@ jobs:
213213 REPO_FULL : ${{ github.repository }}
214214 PR_NUMBER : ${{ github.event.pull_request.number }}
215215 run : |
216- # The Flamingo app writes everything this step writes on the pull request.
216+ # The flamingo app writes everything this step writes on the pull request.
217217 case "${HUB_BASE_URL:-}" in https://*) ;; *) echo "::error::HUB_BASE_URL must be the hub's https origin"; exit 1 ;; esac
218218 APP_AUTH_CFG=$(mktemp) && chmod 600 "$APP_AUTH_CFG"
219219 printf 'header = "Authorization: Bearer %s"\n' "$ACTIONS_ID_TOKEN_REQUEST_TOKEN" > "$APP_AUTH_CFG"
@@ -225,7 +225,7 @@ jobs:
225225 rm -f "$APP_AUTH_CFG"
226226 FLAMINGO_APP_TOKEN=$(printf '%s' "$APP_JSON" | jq -r '.token // empty')
227227 FLAMINGO_APP_LOGIN=$(printf '%s' "$APP_JSON" | jq -r '.login // empty')
228- [ -n "$FLAMINGO_APP_TOKEN" ] && [ -n "$FLAMINGO_APP_LOGIN" ] || { echo "::error::the hub answered no Flamingo app token"; exit 1; }
228+ [ -n "$FLAMINGO_APP_TOKEN" ] && [ -n "$FLAMINGO_APP_LOGIN" ] || { echo "::error::the hub answered no flamingo app token"; exit 1; }
229229 echo "::add-mask::$FLAMINGO_APP_TOKEN"
230230 export FLAMINGO_APP_TOKEN FLAMINGO_APP_LOGIN
231231 CURL_CFG=$(mktemp) && chmod 600 "$CURL_CFG"
@@ -317,7 +317,7 @@ jobs:
317317 COMMENT_BODY : ${{ github.event.comment.body }}
318318 run : |
319319 set -euo pipefail
320- # The Flamingo app writes everything this step writes on the pull request.
320+ # The flamingo app writes everything this step writes on the pull request.
321321 case "${HUB_BASE_URL:-}" in https://*) ;; *) echo "::error::HUB_BASE_URL must be the hub's https origin"; exit 1 ;; esac
322322 APP_AUTH_CFG=$(mktemp) && chmod 600 "$APP_AUTH_CFG"
323323 printf 'header = "Authorization: Bearer %s"\n' "$ACTIONS_ID_TOKEN_REQUEST_TOKEN" > "$APP_AUTH_CFG"
@@ -329,7 +329,7 @@ jobs:
329329 rm -f "$APP_AUTH_CFG"
330330 FLAMINGO_APP_TOKEN=$(printf '%s' "$APP_JSON" | jq -r '.token // empty')
331331 FLAMINGO_APP_LOGIN=$(printf '%s' "$APP_JSON" | jq -r '.login // empty')
332- [ -n "$FLAMINGO_APP_TOKEN" ] && [ -n "$FLAMINGO_APP_LOGIN" ] || { echo "::error::the hub answered no Flamingo app token"; exit 1; }
332+ [ -n "$FLAMINGO_APP_TOKEN" ] && [ -n "$FLAMINGO_APP_LOGIN" ] || { echo "::error::the hub answered no flamingo app token"; exit 1; }
333333 echo "::add-mask::$FLAMINGO_APP_TOKEN"
334334 export FLAMINGO_APP_TOKEN FLAMINGO_APP_LOGIN
335335 CURL_CFG=$(mktemp) && chmod 600 "$CURL_CFG"
@@ -393,10 +393,10 @@ jobs:
393393 # from. A fork additionally cannot be waived by any command: this run
394394 # holds a write token.
395395 if [ "$HEAD_REPO" != "$REPO_FULL" ]; then
396- refuse "🦩 **Review not started.** This pull request comes from a fork, and a fork cannot be reviewed from a comment. Start it from the Flamingo hub (Code Review) instead."
396+ refuse "🦩 **Review not started.** This pull request comes from a fork, and a fork cannot be reviewed from a comment. Start it from the flamingo hub (Code Review) instead."
397397 fi
398398 if [ "$AUTHOR_TYPE" = "Bot" ]; then
399- refuse "🦩 **Review not started.** This pull request was opened by a bot, and a bot's pull request cannot be reviewed from a comment. Start it from the Flamingo hub (Code Review) instead."
399+ refuse "🦩 **Review not started.** This pull request was opened by a bot, and a bot's pull request cannot be reviewed from a comment. Start it from the flamingo hub (Code Review) instead."
400400 fi
401401
402402 # DRAFTS ARE ALLOWED — same rule the on-demand label already follows:
@@ -631,7 +631,7 @@ jobs:
631631 PR_NUMBER : ${{ github.event.pull_request.number }}
632632 WF_RUN_ID : ${{ github.run_id }}
633633 run : |
634- # The Flamingo app writes everything this step writes on the pull request.
634+ # The flamingo app writes everything this step writes on the pull request.
635635 case "${HUB_BASE_URL:-}" in https://*) ;; *) echo "::error::HUB_BASE_URL must be the hub's https origin"; exit 1 ;; esac
636636 APP_AUTH_CFG=$(mktemp) && chmod 600 "$APP_AUTH_CFG"
637637 printf 'header = "Authorization: Bearer %s"\n' "$ACTIONS_ID_TOKEN_REQUEST_TOKEN" > "$APP_AUTH_CFG"
@@ -643,7 +643,7 @@ jobs:
643643 rm -f "$APP_AUTH_CFG"
644644 FLAMINGO_APP_TOKEN=$(printf '%s' "$APP_JSON" | jq -r '.token // empty')
645645 FLAMINGO_APP_LOGIN=$(printf '%s' "$APP_JSON" | jq -r '.login // empty')
646- [ -n "$FLAMINGO_APP_TOKEN" ] && [ -n "$FLAMINGO_APP_LOGIN" ] || { echo "::error::the hub answered no Flamingo app token"; exit 1; }
646+ [ -n "$FLAMINGO_APP_TOKEN" ] && [ -n "$FLAMINGO_APP_LOGIN" ] || { echo "::error::the hub answered no flamingo app token"; exit 1; }
647647 echo "::add-mask::$FLAMINGO_APP_TOKEN"
648648 export FLAMINGO_APP_TOKEN FLAMINGO_APP_LOGIN
649649 node /tmp/code-review-post.mjs --invite
@@ -653,7 +653,7 @@ jobs:
653653 # Skipped otherwise, which a required check accepts. Never a fork or a bot.
654654 # A newer request cancels the run of the stale head.
655655 tests :
656- name : Flamingo Code Review / tests and checks
656+ name : flamingo Code Review / tests and checks
657657 concurrency :
658658 group : flamingo-tests-${{ github.event.pull_request.number || github.event.issue.number || github.run_id }}
659659 cancel-in-progress : true
@@ -887,10 +887,10 @@ jobs:
887887 WF_RUN_ID : ${{ github.run_id }}
888888 REVIEW_STAGE2_FILE : ${{ runner.temp }}/stage2.json
889889 # A comment-started run's result, published on the PR head under the required check's name.
890- TESTS_CHECK_NAME : ${{ github.event_name == 'issue_comment' && 'Flamingo Code Review / tests and checks' || '' }}
890+ TESTS_CHECK_NAME : ${{ github.event_name == 'issue_comment' && 'flamingo Code Review / tests and checks' || '' }}
891891 TESTS_OUTCOME : ${{ steps.run.outcome }}
892892 run : |
893- # The Flamingo app writes everything this step writes on the pull request.
893+ # The flamingo app writes everything this step writes on the pull request.
894894 case "${HUB_BASE_URL:-}" in https://*) ;; *) echo "::error::HUB_BASE_URL must be the hub's https origin"; exit 1 ;; esac
895895 APP_AUTH_CFG=$(mktemp) && chmod 600 "$APP_AUTH_CFG"
896896 printf 'header = "Authorization: Bearer %s"\n' "$ACTIONS_ID_TOKEN_REQUEST_TOKEN" > "$APP_AUTH_CFG"
@@ -902,7 +902,7 @@ jobs:
902902 rm -f "$APP_AUTH_CFG"
903903 FLAMINGO_APP_TOKEN=$(printf '%s' "$APP_JSON" | jq -r '.token // empty')
904904 FLAMINGO_APP_LOGIN=$(printf '%s' "$APP_JSON" | jq -r '.login // empty')
905- [ -n "$FLAMINGO_APP_TOKEN" ] && [ -n "$FLAMINGO_APP_LOGIN" ] || { echo "::error::the hub answered no Flamingo app token"; exit 1; }
905+ [ -n "$FLAMINGO_APP_TOKEN" ] && [ -n "$FLAMINGO_APP_LOGIN" ] || { echo "::error::the hub answered no flamingo app token"; exit 1; }
906906 echo "::add-mask::$FLAMINGO_APP_TOKEN"
907907 export FLAMINGO_APP_TOKEN FLAMINGO_APP_LOGIN
908908 "$HUB_NODE" /tmp/code-review-post.mjs --tests
@@ -911,7 +911,7 @@ jobs:
911911 # (Trivy, image builds) included: see sweepChecksJob. Its stage2.json goes to
912912 # the sweep's review, which turns failures into findings and fix PRs.
913913 sweep_checks :
914- name : Flamingo Code Review / sweep tests and checks
914+ name : flamingo Code Review / sweep tests and checks
915915 concurrency :
916916 group : flamingo-sweep-checks-${{ github.ref }}
917917 cancel-in-progress : true
@@ -1139,7 +1139,7 @@ jobs:
11391139 # repository's security checks only. Its stage2.json goes to the security
11401140 # review, which turns each result on the change's lines into a finding.
11411141 security_checks :
1142- name : Flamingo Code Review / security checks
1142+ name : flamingo Code Review / security checks
11431143 concurrency :
11441144 group : flamingo-security-checks-${{ github.event.pull_request.number || github.event.issue.number || github.run_id }}
11451145 cancel-in-progress : true
@@ -1814,7 +1814,7 @@ jobs:
18141814 PR_NUMBER : ${{ github.event.pull_request.number || needs.resolve_command.outputs.pr_number }}
18151815 WF_RUN_ID : ${{ github.run_id }}
18161816 run : |
1817- # The Flamingo app writes everything this step writes on the pull request.
1817+ # The flamingo app writes everything this step writes on the pull request.
18181818 case "${HUB_BASE_URL:-}" in https://*) ;; *) echo "::error::HUB_BASE_URL must be the hub's https origin"; exit 1 ;; esac
18191819 APP_AUTH_CFG=$(mktemp) && chmod 600 "$APP_AUTH_CFG"
18201820 printf 'header = "Authorization: Bearer %s"\n' "$ACTIONS_ID_TOKEN_REQUEST_TOKEN" > "$APP_AUTH_CFG"
@@ -1826,7 +1826,7 @@ jobs:
18261826 rm -f "$APP_AUTH_CFG"
18271827 FLAMINGO_APP_TOKEN=$(printf '%s' "$APP_JSON" | jq -r '.token // empty')
18281828 FLAMINGO_APP_LOGIN=$(printf '%s' "$APP_JSON" | jq -r '.login // empty')
1829- [ -n "$FLAMINGO_APP_TOKEN" ] && [ -n "$FLAMINGO_APP_LOGIN" ] || { echo "::error::the hub answered no Flamingo app token"; exit 1; }
1829+ [ -n "$FLAMINGO_APP_TOKEN" ] && [ -n "$FLAMINGO_APP_LOGIN" ] || { echo "::error::the hub answered no flamingo app token"; exit 1; }
18301830 echo "::add-mask::$FLAMINGO_APP_TOKEN"
18311831 export FLAMINGO_APP_TOKEN FLAMINGO_APP_LOGIN
18321832 node /tmp/code-review-post.mjs --running
@@ -1847,7 +1847,7 @@ jobs:
18471847 PR_NUMBER : ${{ github.event.pull_request.number || needs.resolve_command.outputs.pr_number }}
18481848 WF_RUN_ID : ${{ github.run_id }}
18491849 run : |
1850- # The Flamingo app writes everything this step writes on the pull request.
1850+ # The flamingo app writes everything this step writes on the pull request.
18511851 case "${HUB_BASE_URL:-}" in https://*) ;; *) echo "::error::HUB_BASE_URL must be the hub's https origin"; exit 1 ;; esac
18521852 APP_AUTH_CFG=$(mktemp) && chmod 600 "$APP_AUTH_CFG"
18531853 printf 'header = "Authorization: Bearer %s"\n' "$ACTIONS_ID_TOKEN_REQUEST_TOKEN" > "$APP_AUTH_CFG"
@@ -1859,7 +1859,7 @@ jobs:
18591859 rm -f "$APP_AUTH_CFG"
18601860 FLAMINGO_APP_TOKEN=$(printf '%s' "$APP_JSON" | jq -r '.token // empty')
18611861 FLAMINGO_APP_LOGIN=$(printf '%s' "$APP_JSON" | jq -r '.login // empty')
1862- [ -n "$FLAMINGO_APP_TOKEN" ] && [ -n "$FLAMINGO_APP_LOGIN" ] || { echo "::error::the hub answered no Flamingo app token"; exit 1; }
1862+ [ -n "$FLAMINGO_APP_TOKEN" ] && [ -n "$FLAMINGO_APP_LOGIN" ] || { echo "::error::the hub answered no flamingo app token"; exit 1; }
18631863 echo "::add-mask::$FLAMINGO_APP_TOKEN"
18641864 export FLAMINGO_APP_TOKEN FLAMINGO_APP_LOGIN
18651865 node /tmp/code-review-post.mjs --resolve corpus_unavailable || true
@@ -1959,7 +1959,7 @@ jobs:
19591959 run : /tmp/code-review-run.sh
19601960
19611961 # Post the findings to the PULL REQUEST itself and publish the
1962- # 'Flamingo Code Review' check run. pull_request events only — a sweep
1962+ # 'flamingo Code Review' check run. pull_request events only — a sweep
19631963 # has no PR to post to (its findings live in the hub dashboard). Posts as
19641964 # the Flamingo app (APP_TOKEN_LINES), never with the job's own token.
19651965 # One UPSERTED summary comment + inline comments where the diff
@@ -1986,7 +1986,7 @@ jobs:
19861986 HEAD_SHA : ${{ github.event.pull_request.head.sha || needs.resolve_command.outputs.head_sha }}
19871987 WF_RUN_ID : ${{ github.run_id }}
19881988 run : |
1989- # The Flamingo app writes everything this step writes on the pull request.
1989+ # The flamingo app writes everything this step writes on the pull request.
19901990 case "${HUB_BASE_URL:-}" in https://*) ;; *) echo "::error::HUB_BASE_URL must be the hub's https origin"; exit 1 ;; esac
19911991 APP_AUTH_CFG=$(mktemp) && chmod 600 "$APP_AUTH_CFG"
19921992 printf 'header = "Authorization: Bearer %s"\n' "$ACTIONS_ID_TOKEN_REQUEST_TOKEN" > "$APP_AUTH_CFG"
@@ -1998,7 +1998,7 @@ jobs:
19981998 rm -f "$APP_AUTH_CFG"
19991999 FLAMINGO_APP_TOKEN=$(printf '%s' "$APP_JSON" | jq -r '.token // empty')
20002000 FLAMINGO_APP_LOGIN=$(printf '%s' "$APP_JSON" | jq -r '.login // empty')
2001- [ -n "$FLAMINGO_APP_TOKEN" ] && [ -n "$FLAMINGO_APP_LOGIN" ] || { echo "::error::the hub answered no Flamingo app token"; exit 1; }
2001+ [ -n "$FLAMINGO_APP_TOKEN" ] && [ -n "$FLAMINGO_APP_LOGIN" ] || { echo "::error::the hub answered no flamingo app token"; exit 1; }
20022002 echo "::add-mask::$FLAMINGO_APP_TOKEN"
20032003 export FLAMINGO_APP_TOKEN FLAMINGO_APP_LOGIN
20042004 node /tmp/code-review-post.mjs
@@ -2022,7 +2022,7 @@ jobs:
20222022 PR_NUMBER : ${{ github.event.pull_request.number || needs.resolve_command.outputs.pr_number }}
20232023 WF_RUN_ID : ${{ github.run_id }}
20242024 run : |
2025- # The Flamingo app writes everything this step writes on the pull request.
2025+ # The flamingo app writes everything this step writes on the pull request.
20262026 case "${HUB_BASE_URL:-}" in https://*) ;; *) echo "::error::HUB_BASE_URL must be the hub's https origin"; exit 1 ;; esac
20272027 APP_AUTH_CFG=$(mktemp) && chmod 600 "$APP_AUTH_CFG"
20282028 printf 'header = "Authorization: Bearer %s"\n' "$ACTIONS_ID_TOKEN_REQUEST_TOKEN" > "$APP_AUTH_CFG"
@@ -2034,7 +2034,7 @@ jobs:
20342034 rm -f "$APP_AUTH_CFG"
20352035 FLAMINGO_APP_TOKEN=$(printf '%s' "$APP_JSON" | jq -r '.token // empty')
20362036 FLAMINGO_APP_LOGIN=$(printf '%s' "$APP_JSON" | jq -r '.login // empty')
2037- [ -n "$FLAMINGO_APP_TOKEN" ] && [ -n "$FLAMINGO_APP_LOGIN" ] || { echo "::error::the hub answered no Flamingo app token"; exit 1; }
2037+ [ -n "$FLAMINGO_APP_TOKEN" ] && [ -n "$FLAMINGO_APP_LOGIN" ] || { echo "::error::the hub answered no flamingo app token"; exit 1; }
20382038 echo "::add-mask::$FLAMINGO_APP_TOKEN"
20392039 export FLAMINGO_APP_TOKEN FLAMINGO_APP_LOGIN
20402040 node /tmp/code-review-post.mjs --resolve cancelled || true
@@ -2045,7 +2045,7 @@ jobs:
20452045 PR_NUMBER : ${{ github.event.pull_request.number || needs.resolve_command.outputs.pr_number }}
20462046 WF_RUN_ID : ${{ github.run_id }}
20472047 run : |
2048- # The Flamingo app writes everything this step writes on the pull request.
2048+ # The flamingo app writes everything this step writes on the pull request.
20492049 case "${HUB_BASE_URL:-}" in https://*) ;; *) echo "::error::HUB_BASE_URL must be the hub's https origin"; exit 1 ;; esac
20502050 APP_AUTH_CFG=$(mktemp) && chmod 600 "$APP_AUTH_CFG"
20512051 printf 'header = "Authorization: Bearer %s"\n' "$ACTIONS_ID_TOKEN_REQUEST_TOKEN" > "$APP_AUTH_CFG"
@@ -2057,7 +2057,7 @@ jobs:
20572057 rm -f "$APP_AUTH_CFG"
20582058 FLAMINGO_APP_TOKEN=$(printf '%s' "$APP_JSON" | jq -r '.token // empty')
20592059 FLAMINGO_APP_LOGIN=$(printf '%s' "$APP_JSON" | jq -r '.login // empty')
2060- [ -n "$FLAMINGO_APP_TOKEN" ] && [ -n "$FLAMINGO_APP_LOGIN" ] || { echo "::error::the hub answered no Flamingo app token"; exit 1; }
2060+ [ -n "$FLAMINGO_APP_TOKEN" ] && [ -n "$FLAMINGO_APP_LOGIN" ] || { echo "::error::the hub answered no flamingo app token"; exit 1; }
20612061 echo "::add-mask::$FLAMINGO_APP_TOKEN"
20622062 export FLAMINGO_APP_TOKEN FLAMINGO_APP_LOGIN
20632063 node /tmp/code-review-post.mjs --resolve crashed || true
0 commit comments