Repository navigation
ci: switch to core's PR triage workflow and the v2 risk-paths list - #141
Merged
Merged
Conversation
The caller .github/workflows/risk-paths.yml now runs frostyard/core/.github/workflows/pr-triage.yml at core c996ea3. It adds the level labels of core ADR-0078 with risk:high at L1 and L2, and it removes ready-for-human when the head moves after the label or CI is not green at the label (core ADR-0077). .github/risk-paths.json moves to schema version 2 (core docs/specs/risk-paths.md): default L3, 17 globs at L1 and 5 at L2 by the grading rule of ADR-0078. internal/workflowcheck reads version 2, checks rules B and C with levels, and needs each governed path at L1 or L2. Refs: frostyard/core#218, frostyard/core#222
Contributor
Author
|
Cross-review: Ready, blocking none.
|
bketelsen
approved these changes
Nov 9, 2026
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
Moves frostyard/frostnotes to frostyard/core's PR triage workflow and to version 2 of the risk-paths list, as the org wave for ADR-0076, ADR-0077 and ADR-0078 asks (merge-list triage after core#218).
.github/workflows/risk-paths.ymlkeeps its name and now callsfrostyard/core/.github/workflows/pr-triage.yml@c996ea3fb54bcf1a3c621113522213702a7673e2(coremain, 2026-11-09; core has no release tags, ADR-0021). The job id ispr-triage(the readiness step leaves out check runs whose name starts withpr-triage), and the types addlabeled. The workflow adds 1 oflevel:L1tolevel:L4andrisk:highat L1 and L2 (ADR-0078), removesready-for-humanwhen the head moves after the label or CI is not green at the label (ADR-0077), and writes a shadow comment on qualifying Dependabot PRs (it never merges). Contract: docs/specs/pr-triage.md. It is not a required check and has nomerge_grouptrigger..github/risk-paths.jsonis schema version 2 (docs/specs/risk-paths.md):default_levelL3; of 22 globs, 17 are at L1 (awhyin a risk category: publication, auth, secrets and credentials, destructive operations and the like) and 5 at L2 (governance: the list, the workflows, the gate). Every glob andwhyis unchanged; no L4 glob.internal/workflowcheckreads version 2 strictly:schema_version2,default_leveland eachlevelin L1 to L4, the category rule (rule B) only at L1 and L2, and rule C (the list and the caller each match a glob, and every such glob is at L1 or L2). The guards that need a governed path in the list now need it at L1 or L2. New or changed tests:TestLevelRank,TestRiskPathProblems,TestRiskPaths,TestStrictestLevel.AGENTS.md(baseline row B6),docs/org-adrs.md(ADR-0076 to ADR-0078) and the PR template describe the levels and the new caller.mainwith no path filter, no jobif:and no secret, and they passed at the last merged and the last Dependabot PR heads. The names go to core#222.Risk tier
Risk tier: 3 — CI and permissions: the caller and the risk list. This PR touches paths of the list at the base (version 1, so every match is L1 and
risk:high):.github/risk-paths.json.github/risk-paths.json.github/workflows/risk-paths.yml.github/workflows/**internal/workflowcheck/baseline_test.gointernal/{workflowcheck,repocheck}/**Why the change is safe:
pull_request_target, top-levelpermissions: {}, and onlycontents: readandpull-requests: writefor the job; it checks out nothing and runs no PR code. The reusable workflow is pinned to a full core commit. The newlabeledtrigger only lets the readiness step see aready-for-humanlabel; label writes stay with that pinned workflow.whychanges, every risk-category glob is at L1 (stillrisk:high), and governance globs are at L2 (alsorisk:high). Core reads the list at the base SHA, so this PR cannot lower its own level.make verify.Verification
make checkgreen on the host (go test ./internal/workflowcheck/...included).git checkout origin/main -- .github/risk-paths.json .github/workflows/risk-paths.yml(the v1 list and the old caller, tests kept), thengo test ./internal/workflowcheck/...:TestRiskPathsfails withschema_version = 1, want 2, the rule C errors for both governed list paths, and "want L1 or L2" for each governed path.