Repository navigation
feat(risk-paths): add supply chain to the categories of rule B - #256
Merged
Merged
Conversation
Entries for tool and dependency pins, such as mise.toml, mise.lock, go.mod and go.sum, change what CI installs. They need an L1 category that fits them; rule B had none. Add 'supply chain' to the spec (rule B and the L1 list of rule H), to WHY_CATEGORIES, and to the embedded copy in pr-triage.yml (npm run sync:risk-paths-workflow).
Contributor
Author
|
Cross-review: Ready, Blocking: none (0 findings).
|
bketelsen
approved these changes
Nov 14, 2026
This was referenced Nov 22, 2026
Merged
Merged
Merged
ci: pin core pr-triage workflow to f99acfd (retry of 5xx and network errors)
frostyard/chairlift#330
Merged
Merged
Merged
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Rule B of the risk-paths spec (gated since #255) makes each L1 or L2
whyname 1 category. Entries for tool and dependency pins, such asmise.toml,mise.lock,go.modandgo.sum, change what CI installs, but no category fits them. This PR adds the categorysupply chain:docs/specs/risk-paths.md: a rule B bullet, andsupply chainin the L1 list of rule H (grading rule).scripts/lib/risk-paths.mjs:"supply chain"inWHY_CATEGORIES..github/workflows/pr-triage.yml: the embedded copy, rewritten bynpm run sync:risk-paths-workflow(not by hand).test/risk-paths.test.mjs: the frozen-list test has the new category. New cases:supply chain: the tool pins that CI installspassescheckWhyCategoriesat L1, and the gate passes a list with that entry. The cases that usedsupply chainas an example of a missing category now usenative codeandtoolchain.supply chains: xis added to the cases that must fail.No ADR fixes the category list: ADR-0068 and ADR-0078 give examples only, and the spec owns the list.
Risk tier
Risk tier: 3 —
risk:high: the PR touches 2 risk paths at L2 (.github/risk-paths.json):scripts/lib/risk-paths.mjs(quality-gates: the risk-paths validator, matcher and levels). The change adds 1 string to the frozenWHY_CATEGORIESarray. No function changes. The exportsvalidateRiskPaths,matchGlob,parseStrictJsonandmatchFilesand their results are unchanged. The only effect:checkWhyCategoriesaccepts awhythat starts withsupply chain(alone or with a colon) when the repository has no protected boundaries. Matching stays exact and case-sensitive, sosupply chains: xstill fails. A vendored copy with asha256pin keeps working until its owner refreshes it..github/workflows/pr-triage.yml(workflow-and-permissions: ...). The diff is 1 line in the embedded copy of the library, written bynpm run sync:risk-paths-workflow. No step, permission, action pin or trigger changes.pr-triagedoes not callcheckWhyCategories, so labels and levels do not change.npm run check:risk-pathschecks that the copy matches.Docs housekeeping
Verification
make cigreen locally (944 tests, 0 fail).scripts/lib/risk-paths.mjsreverted,node --test test/risk-paths.test.mjsfailsthe categories of rule B are frozen,checkWhyCategories: supply chain passes at L1 for the tool pins that CI installsandcheck-risk-paths passes an L1 supply chain whyon assertions (plus the copy-drift tests, as expected).