Repository navigation
Description
Problem
A PR that a workflow opens with GITHUB_TOKEN gets no PR triage run. Thus it gets no level:L1 to level:L4 label and no risk:high label until a person adds a label by hand. The PR can touch an L1 path and still show no risk label. This is a gap in the ADR-0068 and ADR-0078 contract (pr-triage spec).
Cause: GitHub creates no pull_request_target run for an event that GITHUB_TOKEN causes. The pull_request runs are created, but they wait with the conclusion action_required until a person approves them. Each caller of pr-triage.yml runs only on pull_request_target.
Evidence: frostyard/bootc-debian#24
- The scheduled Check Upstream Versions run 42673074356 opened [ACMM L0] Add PR template #24 at 2026-11-09 18:20 UTC with
peter-evans/create-pull-requestandGITHUB_TOKEN. The PR changesdownload/checksums.json, which isdownload/**, level L1. - The
pull_requestruns for Build (42673133431) and ci (42673133388) were created with the conclusionaction_required. They ran only after a manual approval at 2026-11-10 16:40 UTC. - The PR triage caller (
.github/workflows/risk-paths.yml,pull_request_target, typesopened, synchronize, reopened, edited, labeled) had no run for [ACMM L0] Add PR template #24 between 2026-11-09 18:20 UTC and 2026-11-10 16:35 UTC. The PR had no labels in that time. - At 2026-11-10 16:35 UTC, a person account added
level:L1andrisk:high. Thatlabeledevent started PR triage (42855993283), and it passed.
Each repository that opens bot PRs with GITHUB_TOKEN has the same gap, for example a weekly check that bumps an upstream version.
Proposed fix
- Recommended: a manual trigger for triage, started by the bot workflow. Add
workflow_dispatchwith aprnumber input to the caller template. Letpr-triage.ymlread the PR from the pulls API whengithub.event.pull_requestis absent. It already reads the risk list at the base SHA, the changed files, the rulesets and the checks through the API. Then the bot workflow starts triage after it creates or updates the PR, as bootc-debian'sdispatch-buildjob already starts Build and ci, because an event thatGITHUB_TOKENcauses throughworkflow_dispatchdoes start a run. Disadvantage: thereadinessstep's trigger 1 (head-moved) usesbeforeandafterfrom thesynchronizeevent. With a dispatch, that step must skip trigger 1 or get the values from somewhere else. - Alternative: open bot PRs with a GitHub App installation token (
actions/create-github-app-token) and not withGITHUB_TOKEN. Thenpull_request_targetandpull_requeststart as usual, and the dispatch work-around in bootc-debian is not necessary. Disadvantage: the org must create an App and store its secrets (an org setting), and each bot workflow then holds a token with write access. - Safety net, with 1 or 2: a scheduled sweep. It lists the open PRs that have no
level:*label and writes a warning, or starts triage for each one.
Until the fix: a person or an agent must add the level label by hand on each bot PR. The labeled event then starts triage. A note in each affected repository's AGENTS.md can make this a rule.
Activity
frostyard-machines commentedon Nov 11, 2026
Per-repository mitigation for 2 repositories, opened:
In each, the
check-dependencies.ymlbot step (peter-evans/create-pull-requestwithGITHUB_TOKEN) now setsadd-paths: download/checksums.jsonandlabels: level:L1, risk:high. So the version PR has its level label andrisk:highfrom creation, without a triage run. A guard intests/check-baseline.shcomputes the level of the add-paths from.github/risk-paths.json(rule D, plus the org floors of rule G) and fails when the labels differ, with negative tests.Limits:
GITHUB_TOKEN. Other repositories with the same pattern keep the gap..github/risk-paths.jsonthat moves the level must change the labels; the guard enforces that.readinessstep also does not run on these bot PRs.The fleet-wide fix stays open and is not decided: a
workflow_dispatchtrigger for triage that the bot starts (option 1 above), a GitHub App or machine token for bot PRs (option 2), or a scheduled triage sweep (option 3). This issue stays open for that decision.ci: label the bot version PR at creation with its risk level (#25)
ci: label the bot version PR at creation with its risk level (#17)