Repository navigation
Commit 7adc4ec
ci(security): gate corpus-parity and docs on canon authz, run docs on the fleet
corpus-parity.yml triggers on pull_request (corpus and parity-tooling paths)
and had no authz job. Its old conditional runs-on was the only fork and
pull_request_target guard; moving both jobs to a literal
["self-hosted","pf-gcp-pr"] left a fork pull request running untrusted code on
a fleet that has sudo and docker. docs.yml accepted pull_request too, with an
ungated job still on GitHub-hosted ubuntu-latest.
Both workflows now start with the canonical authz job, byte-identical to
ci.yml's (the same header comment, the space inside the array, the same single
step whose sha256 scripts/ci_preflight.py pins), and every other job needs it:
corpus-parity and corpus-parity-subset, and docs build. Docs build moves from
ubuntu-latest to ["self-hosted","pf-gcp-pr"]; its Cloudflare deployment step
still skips pull_request. Outsider pull requests run no CI and get no hosted
fallback; dependabot counts as ours through the authz allowlist (CI-DEPBOT A).
scripts/ci_preflight.py gains gated_workflow_findings(): first job authz,
verbatim canon header and step hash, no authz overrides (needs/if/env/uses/
strategy/continue-on-error), needs authz on every other job, readable events
without pull_request_target, and a literal fleet array on every runs-on. It
pins corpus-parity.yml and docs.yml. They are deliberately not routed through
the full authz contract: corpus-parity needs persisted checkout credentials for
its private HTTPS submodule and git lfs pull, and docs deploys with Cloudflare
secrets; forcing persist-credentials: false or banning secrets there would
break them. docs.yml moves out of HOSTED_JOB_RUNNERS, which is now empty.
Refusal tests added for each mutation (authz job dropped, needs removed from
either corpus job or from docs build, one-character change to the authz
script, a hosted fallback expression, docs build back on ubuntu-latest,
pull_request_target, authz reordered or given an extra step/override), each
asserting the intended finding and the whole-workflow contract; every existing
assertion is kept. Not executed on this Mac: the PR's preflight job on
pf-gcp-pr is the proof.
Sweep of every engine workflow triggered by pull_request,
pull_request_target or workflow_run: ci.yml fully gated; corpus-parity.yml
and docs.yml were the ungated ones and are fixed here; native-live.yml has no
direct PR trigger; promote-baseline.yml's promote is pull_request_target,
ungated, and unchanged in this commit (it runs main's own copy of the file,
checks out and runs no PR code, and its WIF condition admits only
refs/heads/main) — reported to CORE-TOP rather than widened into a release
workflow.
Lane core-org-472sec (ORG-CX); diff read by the supervisor. Tests not run on
the Mac; CI is the proof.
Co-Authored-By: Claude Code <[email protected]>1 parent b816635 commit 7adc4ec
5 files changed
Lines changed: 359 additions & 58 deletions
File tree
- .github/workflows
- docs
- scripts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
84 | | - | |
| 83 | + | |
| 84 | + | |
85 | 85 | | |
86 | 86 | | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
87 | 149 | | |
88 | 150 | | |
89 | 151 | | |
| 152 | + | |
90 | 153 | | |
91 | 154 | | |
92 | 155 | | |
| |||
165 | 228 | | |
166 | 229 | | |
167 | 230 | | |
| 231 | + | |
168 | 232 | | |
169 | 233 | | |
170 | 234 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
29 | 91 | | |
30 | | - | |
| 92 | + | |
| 93 | + | |
31 | 94 | | |
32 | 95 | | |
33 | 96 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1070 | 1070 | | |
1071 | 1071 | | |
1072 | 1072 | | |
1073 | | - | |
1074 | | - | |
1075 | | - | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
| 1079 | + | |
1076 | 1080 | | |
1077 | 1081 | | |
1078 | 1082 | | |
| |||
1111 | 1115 | | |
1112 | 1116 | | |
1113 | 1117 | | |
1114 | | - | |
1115 | | - | |
| 1118 | + | |
| 1119 | + | |
| 1120 | + | |
1116 | 1121 | | |
1117 | 1122 | | |
1118 | 1123 | | |
| |||
1139 | 1144 | | |
1140 | 1145 | | |
1141 | 1146 | | |
1142 | | - | |
1143 | | - | |
1144 | | - | |
| 1147 | + | |
| 1148 | + | |
| 1149 | + | |
1145 | 1150 | | |
1146 | 1151 | | |
1147 | 1152 | | |
| |||
1151 | 1156 | | |
1152 | 1157 | | |
1153 | 1158 | | |
1154 | | - | |
1155 | | - | |
1156 | | - | |
1157 | | - | |
1158 | | - | |
1159 | | - | |
1160 | | - | |
| 1159 | + | |
| 1160 | + | |
| 1161 | + | |
| 1162 | + | |
| 1163 | + | |
| 1164 | + | |
| 1165 | + | |
| 1166 | + | |
| 1167 | + | |
| 1168 | + | |
| 1169 | + | |
1161 | 1170 | | |
1162 | 1171 | | |
1163 | 1172 | | |
| |||
0 commit comments