Repository navigation
Description
What happened
This surfaced while retro-ing rh-pvsec/crypto-scanner-tasks#58, a MintMaker PR that bumps reusable-dispatch.yml from v0.53.0 to v0.54.0 — the release that added bot-role resolution for gha-event dispatch (#8414, merged in #8824). The review agent flagged the upgrade as a medium api-contract risk on that PR, predicting the repo's Konflux bot would silently lose coverage. The PR was merged without the finding being answered. I then read the v0.54.0 source to check the claim, and the fail-silent part holds up.
Denial path, all at ref v0.54.0:
internal/cli/dispatch_botrole.go:102-113—ApplyBotRoleResultis called, then the outcome is reported throughprinter.StepWarn(lookup failed) orprinter.StepInfo(no registered role). The contract at lines 74-83 is explicit: a lookup failure is never returned as an error; it setsrole_verified=false, which the gate denies before CEL.internal/harnessdispatch/auth.go:65-70— a successful no-match and a failed lookup are both denied here.internal/harnessdispatch/core.go:29-31,56-58— returns an empty slice, not an error.internal/cli/dispatch.go:146-173—Dispatchreturnsnil, the matrix is written, the command exits 0..github/workflows/reusable-dispatch.yml:2016—harness-runis skipped whenfromJSON(...).include[0] == null. A skipped job is green.
The only trace is the printer line, and that is the gap: internal/ui/ui.go:77-82 shows StepWarn renders a lipgloss-styled string with no ::warning:: workflow command, so it produces no GitHub annotation. Compare .github/scripts/check-fix-eligibility.sh, which does emit ::warning:: for its skip. On the CEL route path the same denial becomes routeSkip (internal/cli/dispatch_route.go:173-177,280-282), which Finalize stage turns into an empty stage with no ::error:: (lines 785-793).
Separately, failedBotRoleResolver (dispatch_botrole.go:26-48) denies without contacting the mint when the mint URL or config cannot be resolved — so an operator misconfiguration (e.g. unset FULLSEND_MINT_URL) is indistinguishable at the PR level from a deliberate policy denial.
What could go better
Fail-closed is the correct security posture here and I am not arguing with it. The problem is that it is also fail-silent: the end state is exit 0, an empty matrix, a skipped harness-run, an all-green check, and no annotation, check-run, or comment anywhere. The one un-annotated stderr line is buried inside the Run fullsend dispatch step log. A maintainer upgrading to v0.54.0 has no way to notice that review coverage stopped, and the failure mode is the worst kind: a review that silently did not happen is indistinguishable from a review that passed.
The naming is evidence this is a defect rather than a design choice — the call site deliberately uses StepWarn for the lookup-failure case, which reads like an intent to warn visibly; StepWarn just does not actually annotate.
Uncertainty, stated plainly: I did not observe a silent denial on PR #58. That PR's review ran under v0.53.0 — the bump only affects subsequent events — and v0.54.0 also removed the shim's blanket bot filter (#8894), which changes which bots reach the gate at all. So this is a risk verified by reading the code, not an observed outage, and I have not confirmed how many downstream repos have unregistered bots. What I am confident about is the code path: exit 0, empty matrix, green, no annotation.
I also want to be careful not to overstate novelty. #8359 already asks for dispatch skips to be visible on PRs, and this is the same family of problem. I am filing because the specific defect — the denial path's warning emits no workflow command, a narrow and cheap fix — is not what #8359, #8190 or #9206 propose.
Proposed change
Make the bot-role denial paths produce a real, user-visible signal. Do not change the exit status or the deny decision.
- In
internal/cli/dispatch_botrole.go:102-113, emit a GitHub workflow annotation (a::warning::line, or whatever the house helper for annotations is) in addition to the styled printer output, for both theerr != niland the no-registered-role branches. Either add an annotating printer method rather than changingStepWarnglobally ininternal/ui/ui.go:77-82, or have this call site write the workflow command directly. - Keep the three cases distinguishable in the message text, since they need different remediation:
- bot has no registered role -> "register
<actor>with the mint" - mint lookup errored -> transient/mint-availability problem, retry
- mint URL or config unresolved (
failedBotRoleResolver, lines 26-48) -> operator misconfiguration in this repo's setup
Today the third collapses into a generic denial.
- bot has no registered role -> "register
- Mirror the same annotation on the CEL
routeSkippath (internal/cli/dispatch_route.go:173-177,280-282) so both routers behave alike. - Also write the denial into the job step summary, so it is visible from the run page without expanding a step's log.
Posting to the PR itself is out of scope here — that is #8359's ask, and #8190 deliberately suppresses notices for automatic triggers. An annotation plus a step-summary line is the minimum that makes the condition discoverable, and it does not need a token or a comment-dedup strategy.
Validation criteria
Reproduce with a bot that has no registered mint role (a Renovate/MintMaker or Dependabot account on a repo using install_mode: per-repo):
- Open a bot-authored PR. The dispatch run's Annotations section on the run summary page lists a warning naming the actor, the repo, and the deny reason. Before the change this section is empty.
- Unset
FULLSEND_MINT_URLand repeat: the annotation identifies it as a configuration-resolution failure, distinct in wording from the unregistered-bot case and from a mint lookup error. - The run's conclusion is unchanged (success),
harness-runis still skipped, and the exit code is still 0 — this change must not turn a policy denial into a red check. Regression-check this explicitly, becausecheck-fix-eligibility.shalready demonstrates the opposite failure mode (eight open issues about an intentional skip reported as a failure). - A unit test asserts that both branches of the switch in
dispatch_botrole.gowrite an annotation, so it cannot silently regress.
Field signal: over the next 10 bot-role denials across onboarded repos, each has a visible annotation, and no new reports arrive of "the review agent stopped running and nobody noticed".
Related issues checked
Searched: bot role mint unregistered; dispatch_botrole; 8414 bot role gha-event; silent skip no review coverage green check; fail open authorization lookup dispatch; empty stage matrix harness-run skipped
Considered: #8359, #8190, #9206, #8824, #8329, #6701, #8549, #7145
#8359 (open) is the nearest neighbour -- it asks that dispatch skips be surfaced on PRs instead of only in logs, citing 14 bot PRs over 6 weeks with no review and no signal. It is the same family but proposes PR-level surfacing; this proposal is the narrower, cheaper code defect that the v0.54.0 bot-role denial path emits no workflow annotation at all, which #8359 predates and does not name. #8190 (open PR) posts a deduplicated comment when authorization blocks a launch but explicitly suppresses notices for automatic triggers, which is exactly the case here. #9206 (open PR) reports failures before the agent starts; this is a clean authorization skip, not a failure. #8824 (merged) is the change that introduced the behaviour and #8329 is its ADR-0107 parent -- both define the deny semantics and neither addresses observability of the denial. #6701 (open) reports the empty-matrix/skipped-harness-run symptom from a permission-lookup failure, a sibling path, and does not cover the bot-role resolver or annotations. #8549 (open) reports review dispatch skipping non-GitHub-App bot accounts -- a coverage gap, not the signalling gap. #7145 (open) asks for a bot bypass in pull_request_target route authorization, i.e. changing the deny decision rather than making it visible.
Generated by retro agent from rh-pvsec/crypto-scanner-tasks#58
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsIn progress
Activity
ifireball commentedon Nov 11, 2026
/fs-triage consider if this is essentially a duplicate of #7555 and would be solved with general notifications about auth denial
fullsend-ai-triage commentedon Nov 11, 2026
🤖 Finished Triage · ✅ Success · Started 2:25 PM UTC · Completed 2:28 PM UTC
Commit:
7a43ef0· View workflow run →Runtime: claude · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $0.17
fullsend-ai-triage commentedon Nov 11, 2026
Triage notes:
Relationship to #7555: This is not a duplicate and would not be solved by #7555 or its in-flight PR #8190. #7555 covers posting a deduplicated comment to a human whose launch is unauthorized, and #8190 deliberately suppresses notices for automatic triggers. Bot-authored PR events are exactly that automatic case, and #8190 does not touch the bot-role denial code (dispatch_botrole.go, ui.go, dispatch_route.go). #8359 is the nearest neighbour but asks for PR-level surfacing. The annotation plus step-summary change here is narrower, needs no token or dedup strategy, and is complementary to both.
Verification: The cited code paths hold up in the current tree. Both denial branches in
applyBotRoleLookupreport only through the styled printer, andStepWarnemits no workflow command. Other Go code already emits::error::annotations, so there is precedent, but there is no existing step-summary helper.Implementation notes:
Proposed test case:
Next steps:
/fs-code— agent creates a PR to implement this issue/fs-code <your instruction>— agent implements with your specific guidancefullsend-ai-coder commentedon Nov 11, 2026
🤖 Finished Code · ✅ Success · Started 2:29 PM UTC · Completed 2:42 PM UTC
Commit:
7a43ef0· View workflow run →Runtime: claude · Model: opus → claude-opus-5-5 · Effort: high · Cost: $2.06