@mark1russell7/conventions 0.34.0 → 0.35.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -27,6 +27,7 @@ Each break shows the file, the line, the rule and the fix. In GitHub Actions, th
27
27
  - `push-main-only`: a workflow that starts on `push` and on `pull_request`, with no limit of `push` to the default branch or with no `workflow_dispatch`. The fix adds `branches` and `workflow_dispatch`, and keeps the comments and each other trigger. It keeps a tag run when the workflow reads the tag. It does not edit `release.yml`, and a person chooses the change for `branches-ignore` or for another named branch.
28
28
  - `pipe-fails`: a step with a pipe and no `pipefail`. The fix adds `defaults: { run: { shell: bash } }` to the workflow. It does not write over another shell.
29
29
  - `gate-after-cancel`: a summary job of a gate with `always()` in its condition. The fix writes `if: ${{ !cancelled() }}`. A condition with other parts needs a person.
30
+ - `security-one-job`: a job that uses the shared workflow `reusable-security.yml`, with its summary job `Security OK`. The fix writes one job `Security OK` that runs the action `security-scan`, with the same inputs and time limit. The pin is the first commit of the template with the action, and Renovate moves it. Another summary job, another job that needs the scans or an input of more than one line needs a person.
30
31
  - `tests-required`: the option `passWithNoTests` in a config or a script, in a package with test files. A package with no tests needs a person, who removes its test script.
31
32
  - `typed-files`: a config file at the root of a package (`vitest.config.ts`). The fix adds `*.config.ts` and `rootDir: "."` to the `tsconfig.test.json` of the package, when that file has no comments.
32
33
  - `trust-policy`: the settings `trustPolicy`, `trustPolicyIgnoreAfter` and `trustPolicyExclude` of `pnpm-workspace.yaml`. The fix makes the file when the repository has none.
@@ -65,6 +66,7 @@ The rules come from the invariants audit of 2026-10-26 (strategy item s38). The
65
66
  | `push-main-only` | A workflow that starts on `push` and on `pull_request` limits `push` to the default branch with `branches`, and has `workflow_dispatch`. Without the limit, each commit of a pull request starts two runs. A `push` with only a tag filter, a `pull_request` with `types` that do not have `synchronize`, and `pull_request_target` are not breaks. `CI.md` tells each case in "One run for each commit". |
66
67
  | `pipe-fails` | A failure on the left of a pipe fails its step. With no `shell` key, GitHub has no `pipefail`, so `tests \| tee out.txt` passes when the tests fail. The fix adds `shell: bash` as the default of the workflow. A step that then turns red had a failure that the pipe hid. |
67
68
  | `gate-after-cancel` | A summary job of a gate has the condition `if: ${{ !cancelled() }}`, not `always()`. After a cancel, a job with `always()` asks for a runner, and the new run waits behind it. A job with `!cancelled()` concludes `cancelled` with no runner, and the pull request stays blocked. |
69
+ | `security-one-job` | The security scans run in one job, the check `Security OK`, with the action `security-scan` of the template. The shared workflow `reusable-security.yml` gives three scan jobs, and its caller adds a summary job. Each job asks for its own runner, so in a full queue a run waits for four runners. On 2026-11-06 each scan job of one repository waited 23 to 40 minutes. |
68
70
  | `gate-trigger` | No workflow has `paths` or `paths-ignore` on `on.pull_request` or `on.pull_request_target`. The ruleset needs the summary check `<Name> OK` of each gate, and a workflow with a path filter does not start on each pull request. Then its check is not there, the ruleset cannot ask for it, and a pull request can merge before the gate ends. A gate uses the actions `changes` and `gate-summary` of the template (`CI.md`, "A gate with paths"). | private `gate-trigger` (STRATEGY.md, 2026-11-02). |
69
71
  | `license-file` | Each public package has a license field, and a license file with the same license in its own folder. A public repository, or a repository with a public package, has a license file at its root. In a GitHub Actions run, the event file tells if the repository is public, and the option `license` (MIT by default) is the license of a root with no public package. npm packs only the license file of the folder of the package, and GitHub reads only the one of the root: on 2026-11-02 five public repositories showed no license on GitHub while npm said MIT. `conventions fix` writes the missing files. | private strategy (2026-11-02). |
70
72
  | `home-package` | A change does not add a function with a signature name of another home of the map (for example `median`, `mulberry32` or `writeFileAtomic`). A local copy drifts from the home and splits the fixes. On 2026-11-02 the repositories had 68 local statistics functions in 14 repositories. The rule examines only the lines that the change adds, so the copies that exist do not break. | private direction 18 (STRATEGY.md, 2026-11-02). |
package/build/cli.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { c as runCli } from "./run-Bn3XU7rh.js";
2
+ import { c as runCli } from "./run-Do3z3eKR.js";
3
3
  // src/cli.ts
4
4
  try {
5
5
  process.exitCode = runCli(process.argv.slice(2), {
package/build/index.d.ts CHANGED
@@ -182,6 +182,30 @@ export declare function convertGate(text: string, file: string, commit?: string)
182
182
  reason: string;
183
183
  };
184
184
  export declare const gateTrigger: Rule;
185
+ /** The first commit of the template with the action `security-scan` (pull request 206). Renovate and the template sync move the pin after the fix. */
186
+ export declare const SECURITY_SCAN_COMMIT: string;
187
+ /** The inputs of the action `security-scan`. The shared workflow has the same inputs and also `timeout-minutes`. */
188
+ export declare const SECURITY_SCAN_INPUTS: readonly string[];
189
+ /** The time limit of the job when the caller gives none: the default of `timeout-minutes` of the shared workflow. */
190
+ export declare const SECURITY_TIMEOUT_MINUTES = 30;
191
+ /** A job of the shared workflow in a workflow file: the line of its key (from 0), and its id. */
192
+ interface SecurityCaller {
193
+ readonly line: number;
194
+ readonly id: string;
195
+ }
196
+ /** This function gives the jobs of a workflow that use the shared workflow `reusable-security.yml`. */
197
+ export declare function securityCallers(text: string): SecurityCaller[];
198
+ /**
199
+ * This function puts one job in place of the job of the shared workflow and its summary job. If it cannot, it gives the
200
+ * reason that a person must change the file. The new job keeps the id of the summary job and the name `Security OK`, which the ruleset
201
+ * needs. It gives the inputs of the caller to the action, and `timeout-minutes` to the job.
202
+ */
203
+ export declare function withOneJob(text: string, commit?: string): {
204
+ text: string;
205
+ } | {
206
+ reason: string;
207
+ };
208
+ export declare const securityOneJob: Rule;
185
209
  /** The state of a home: on npm, in a repository but not on npm, only on a roadmap, or with no package. */
186
210
  type HomeState = "published" | "unpublished" | "planned" | "none";
187
211
  /** One area of code and its home. */
@@ -558,5 +582,5 @@ export declare function workspaceGlobs(root: string): string[] | undefined;
558
582
  * The result has absolute paths, in the order of the code units.
559
583
  */
560
584
  export declare function packageFolders(root: string, globs?: readonly string[] | undefined): string[];
561
- export type { AuditSource, Break, CheckOptions, CheckResult, CliIo, ConventionsConfig, Edit, FixResult, Home, HomeAnswer, HomeFetch, HomeState, Manifest, Minor, OptionSpec, OptionValue, Options, PackageInfo, PagesCall, PathFilter, RegistryAnswer, RegistryLookup, Rule, RuleConfig, RuleContext, RuleOutcome, RuleResult, Workflow, WorkflowInput, WorkflowJob, WorkflowStep, YamlFault };
585
+ export type { AuditSource, Break, CheckOptions, CheckResult, CliIo, ConventionsConfig, Edit, FixResult, Home, HomeAnswer, HomeFetch, HomeState, Manifest, Minor, OptionSpec, OptionValue, Options, PackageInfo, PagesCall, PathFilter, RegistryAnswer, RegistryLookup, Rule, RuleConfig, RuleContext, RuleOutcome, RuleResult, SecurityCaller, Workflow, WorkflowInput, WorkflowJob, WorkflowStep, YamlFault };
562
586
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../src/rule.ts","../src/config.ts","../src/rules/cue-preset.ts","../src/rules/gate-after-cancel.ts","../src/rules/gate-trigger.ts","../src/map.ts","../src/rules/home-package.ts","../src/rules/license-file.ts","../src/rules/main-check.ts","../src/rules/no-build-output.ts","../src/rules/no-local-paths.ts","../src/rules/api-report-script.ts","../src/rules/pages-after-release.ts","../src/rules/pages-site.ts","../src/rules/pinned-git-deps.ts","../src/rules/pipe-fails.ts","../src/rules/push-main-only.ts","../src/rules/unreleased-change.ts","../src/rules/published-minor.ts","../src/rules/release-files.ts","../src/rules/required-scripts.ts","../src/rules/roadmap-parses.ts","../src/rules/runner-budget.ts","../src/rules/shared-docs.ts","../src/rules/source-main.ts","../src/rules/tests-required.ts","../src/rules/tsconfig-test.ts","../src/rules/typed-files.ts","../src/rules/typed-scripts.ts","../src/rules/trust-policy.ts","../src/rules/workflow-parses.ts","../src/rules/workspace-protocol.ts","../src/rules/index.ts","../src/home-exports.ts","../src/workflow.ts","../src/run.ts","../src/release-text.ts","../src/workspace.ts"],"mappings":";UASiB;WACN;WACA;WACA;;;UAIM;;WAEN;;WAEA;WACA;;WAEA;;WAEA,iBAAiB;;;;;;UAOX;;WAEN;;WAEA;;WAEA;;;wBAIK,YAAY,cAAc,cAA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AAa,cAAc,iBAAiB;;;;;;wBCzC5C,aAAa,eAAe;;;;;wBAsD5B,YAAY,cAAc;;;;;;wBA8B1B,eAAe;;;;;;;wBAwCf,eAAe,cAAc"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../src/rule.ts","../src/config.ts","../src/rules/cue-preset.ts","../src/rules/gate-after-cancel.ts","../src/rules/gate-trigger.ts","../src/rules/security-one-job.ts","../src/map.ts","../src/rules/home-package.ts","../src/rules/license-file.ts","../src/rules/main-check.ts","../src/rules/no-build-output.ts","../src/rules/no-local-paths.ts","../src/rules/api-report-script.ts","../src/rules/pages-after-release.ts","../src/rules/pages-site.ts","../src/rules/pinned-git-deps.ts","../src/rules/pipe-fails.ts","../src/rules/push-main-only.ts","../src/rules/unreleased-change.ts","../src/rules/published-minor.ts","../src/rules/release-files.ts","../src/rules/required-scripts.ts","../src/rules/roadmap-parses.ts","../src/rules/runner-budget.ts","../src/rules/shared-docs.ts","../src/rules/source-main.ts","../src/rules/tests-required.ts","../src/rules/tsconfig-test.ts","../src/rules/typed-files.ts","../src/rules/typed-scripts.ts","../src/rules/trust-policy.ts","../src/rules/workflow-parses.ts","../src/rules/workspace-protocol.ts","../src/rules/index.ts","../src/home-exports.ts","../src/workflow.ts","../src/run.ts","../src/release-text.ts","../src/workspace.ts"],"mappings":";UASiB;WACN;WACA;WACA;;;UAIM;;WAEN;;WAEA;WACA;;WAEA;;WAEA,iBAAiB;;;;;;UAOX;;WAEN;;WAEA;;WAEA;;;wBAIK,YAAY,cAAc,cAAc;;KAQ5C;;KAGA,UAAU,SAAS,eAAe;;UAG7B;WACN;WACA,SAAS;WACT;;;KAIC,WAAW,SAAS;;UAGf;;WAEN;;WAEA;;WAEA;;WAEA;WACA,UAAU;;;UAIJ;;WAEN;;WAEA,aAAa;;WAEb,mBAAmB;;WAEnB,KAAK,SAAS;;WAEd;;EAET;;EAEA,IAAI;;;KAIM,uBAAuB;WAAqB;;;UAGvC;;WAEN;;WAEA;;WAEA;;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,4 @@
1
- import { $ as repositoryOfRemote, $t as runGit, A as blockHash, At as mergeHomes, B as publishedMinorRule, Bt as STRICT_OPTIONS, C as testsRequired, Ct as repoOf, D as pathsOf, Dt as findHomes, E as isSourcePath, Et as MAP_RULE, F as requiredScripts, Ft as gateTrigger, G as npmLookup, Gt as hasFile, H as NPM_REGISTRY, Ht as DEPENDENCY_FIELDS, I as releaseFiles, It as prPathFilters, J as pipeFails, Jt as lineOf, K as unreleasedChange, Kt as inFolder, L as lockedVersions, Lt as summaryName, M as sharedDocsRule, Mt as HOME_EXPORTS, N as roadmapOfLine, Nt as ACTIONS_COMMIT, O as sourceMain, Ot as mapMarkdown, P as roadmapParses, Pt as convertGate, Q as pagesAfterRelease, Qt as replaceLine, R as minorOf, Rt as gateAfterCancel, S as typedFiles, St as messageOf, T as tsconfigTest, Tt as HOMES, U as SHIPPED_FIELDS, Ut as cleanPath, V as reachOf, Vt as cuePreset, W as UNSHIPPED_FILES, Wt as codePackages, X as isPinned, Xt as parseJsonc, Y as isGitSpecifier, Yt as matchesAny, Z as pinnedGitDeps, Zt as readJsonc, _ as TRAIN_SCOPES, _t as licenseFileOf, a as listRules, an as defaultOptions, at as pagesSite, b as configsOfScript, bt as declaredName, c as runCli, ct as HOME_PATTERNS, d as RULES, dt as REAL_COMPARE, en as specifiersOf, et as runnerBudget, f as workspaceProtocol, ft as hasImportMetaMain, g as IGNORE_AFTER, gt as licenseFile, h as yamlFaults, ht as authorOf, i as formatResult, in as workspaceGlobs, it as pagesCalls, j as githubFetch, jt as readOverlay, k as HOME_TIMEOUT_MS, kt as mapText, l as runFix, lt as noLocalPaths, m as workflowParses, mt as LICENSE_TEXTS, n as annotations, nn as globToRegExp, nt as pushMainOnly, o as readConfig, on as parseConfig, ot as apiReportScript, p as GITHUB_YAML, pt as mainCheck, q as unreleasedChangeRule, qt as keyLine, r as createContext, rn as packageFolders, rt as PAGES_WORKFLOWS, s as runChecks, st as DEFAULT_ALLOWED, t as USAGE, tn as globFolders, tt as scheduleMinute, u as summaryMarkdown, ut as noBuildOutput, v as trustPolicy, vt as mitText, w as hasTests, wt as signaturesOf, x as scriptsOf, xt as homePackage, y as typedScripts, yt as repositoryIsPublic, z as publishedMinor, zt as readWorkflow } from "./run-Bn3XU7rh.js";
1
+ import { $ as repositoryOfRemote, $t as keyLine, A as blockHash, At as mergeHomes, B as publishedMinorRule, Bt as convertGate, C as testsRequired, Ct as repoOf, D as pathsOf, Dt as findHomes, E as isSourcePath, Et as MAP_RULE, F as requiredScripts, Ft as SECURITY_TIMEOUT_MINUTES, G as npmLookup, Gt as readWorkflow, H as NPM_REGISTRY, Ht as prPathFilters, I as releaseFiles, It as securityCallers, J as pipeFails, Jt as DEPENDENCY_FIELDS, K as unreleasedChange, Kt as STRICT_OPTIONS, L as lockedVersions, Lt as securityOneJob, M as sharedDocsRule, Mt as HOME_EXPORTS, N as roadmapOfLine, Nt as SECURITY_SCAN_COMMIT, O as sourceMain, Ot as mapMarkdown, P as roadmapParses, Pt as SECURITY_SCAN_INPUTS, Q as pagesAfterRelease, Qt as inFolder, R as minorOf, Rt as withOneJob, S as typedFiles, St as messageOf, T as tsconfigTest, Tt as HOMES, U as SHIPPED_FIELDS, Ut as summaryName, V as reachOf, Vt as gateTrigger, W as UNSHIPPED_FILES, Wt as gateAfterCancel, X as isPinned, Xt as codePackages, Y as isGitSpecifier, Yt as cleanPath, Z as pinnedGitDeps, Zt as hasFile, _ as TRAIN_SCOPES, _t as licenseFileOf, a as listRules, an as runGit, at as pagesSite, b as configsOfScript, bt as declaredName, c as runCli, cn as globToRegExp, ct as HOME_PATTERNS, d as RULES, dn as defaultOptions, dt as REAL_COMPARE, en as lineOf, et as runnerBudget, f as workspaceProtocol, fn as parseConfig, ft as hasImportMetaMain, g as IGNORE_AFTER, gt as licenseFile, h as yamlFaults, ht as authorOf, i as formatResult, in as replaceLine, it as pagesCalls, j as githubFetch, jt as readOverlay, k as HOME_TIMEOUT_MS, kt as mapText, l as runFix, ln as packageFolders, lt as noLocalPaths, m as workflowParses, mt as LICENSE_TEXTS, n as annotations, nn as parseJsonc, nt as pushMainOnly, o as readConfig, on as specifiersOf, ot as apiReportScript, p as GITHUB_YAML, pt as mainCheck, q as unreleasedChangeRule, qt as cuePreset, r as createContext, rn as readJsonc, rt as PAGES_WORKFLOWS, s as runChecks, sn as globFolders, st as DEFAULT_ALLOWED, t as USAGE, tn as matchesAny, tt as scheduleMinute, u as summaryMarkdown, un as workspaceGlobs, ut as noBuildOutput, v as trustPolicy, vt as mitText, w as hasTests, wt as signaturesOf, x as scriptsOf, xt as homePackage, y as typedScripts, yt as repositoryIsPublic, z as publishedMinor, zt as ACTIONS_COMMIT } from "./run-Do3z3eKR.js";
2
2
  // src/release-text.ts
3
3
  /**
4
4
  * The rule for the git tag and the text of a GitHub release of a package version.
@@ -64,6 +64,6 @@ function releaseNotes(name, version, changelog) {
64
64
  if (section.length <= 1e5) return section;
65
65
  return `${section.slice(0, MAX_NOTES)}\n\n(The CHANGELOG.md of \`${name}\` has the full text.)`;
66
66
  }
67
- export { ACTIONS_COMMIT, DEFAULT_ALLOWED, DEPENDENCY_FIELDS, GITHUB_YAML, HOMES, HOME_EXPORTS, HOME_PATTERNS, HOME_TIMEOUT_MS, IGNORE_AFTER, LICENSE_TEXTS, MAP_RULE, MAX_NOTES, NPM_REGISTRY, PAGES_WORKFLOWS, REAL_COMPARE, RULES, SHIPPED_FIELDS, STRICT_OPTIONS, TRAIN_SCOPES, UNSHIPPED_FILES, USAGE, annotations, apiReportScript, authorOf, blockHash, changelogSection, cleanPath, codePackages, configsOfScript, convertGate, createContext, cuePreset, declaredName, defaultOptions, findHomes, formatResult, gateAfterCancel, gateTrigger, githubFetch, globFolders, globToRegExp, hasFile, hasImportMetaMain, hasTests, homePackage, inFolder, isGitSpecifier, isPinned, isSourcePath, keyLine, licenseFile, licenseFileOf, lineOf, listRules, lockedVersions, mainCheck, mapMarkdown, mapText, matchesAny, mergeHomes, messageOf, minorOf, mitText, noBuildOutput, noLocalPaths, npmLookup, npmUrl, packageFolders, pagesAfterRelease, pagesCalls, pagesSite, parseConfig, parseJsonc, pathsOf, pinnedGitDeps, pipeFails, prPathFilters, publishedMinor, publishedMinorRule, pushMainOnly, reachOf, readConfig, readJsonc, readOverlay, readWorkflow, releaseFiles, releaseNotes, replaceLine, repoOf, repositoryIsPublic, repositoryOfRemote, requiredScripts, roadmapOfLine, roadmapParses, runChecks, runCli, runFix, runGit, runnerBudget, scheduleMinute, scriptsOf, sharedDocsRule, signaturesOf, sourceMain, specifiersOf, summaryMarkdown, summaryName, tagName, testsRequired, trustPolicy, tsconfigTest, typedFiles, typedScripts, unreleasedChange, unreleasedChangeRule, workflowParses, workspaceGlobs, workspaceProtocol, yamlFaults };
67
+ export { ACTIONS_COMMIT, DEFAULT_ALLOWED, DEPENDENCY_FIELDS, GITHUB_YAML, HOMES, HOME_EXPORTS, HOME_PATTERNS, HOME_TIMEOUT_MS, IGNORE_AFTER, LICENSE_TEXTS, MAP_RULE, MAX_NOTES, NPM_REGISTRY, PAGES_WORKFLOWS, REAL_COMPARE, RULES, SECURITY_SCAN_COMMIT, SECURITY_SCAN_INPUTS, SECURITY_TIMEOUT_MINUTES, SHIPPED_FIELDS, STRICT_OPTIONS, TRAIN_SCOPES, UNSHIPPED_FILES, USAGE, annotations, apiReportScript, authorOf, blockHash, changelogSection, cleanPath, codePackages, configsOfScript, convertGate, createContext, cuePreset, declaredName, defaultOptions, findHomes, formatResult, gateAfterCancel, gateTrigger, githubFetch, globFolders, globToRegExp, hasFile, hasImportMetaMain, hasTests, homePackage, inFolder, isGitSpecifier, isPinned, isSourcePath, keyLine, licenseFile, licenseFileOf, lineOf, listRules, lockedVersions, mainCheck, mapMarkdown, mapText, matchesAny, mergeHomes, messageOf, minorOf, mitText, noBuildOutput, noLocalPaths, npmLookup, npmUrl, packageFolders, pagesAfterRelease, pagesCalls, pagesSite, parseConfig, parseJsonc, pathsOf, pinnedGitDeps, pipeFails, prPathFilters, publishedMinor, publishedMinorRule, pushMainOnly, reachOf, readConfig, readJsonc, readOverlay, readWorkflow, releaseFiles, releaseNotes, replaceLine, repoOf, repositoryIsPublic, repositoryOfRemote, requiredScripts, roadmapOfLine, roadmapParses, runChecks, runCli, runFix, runGit, runnerBudget, scheduleMinute, scriptsOf, securityCallers, securityOneJob, sharedDocsRule, signaturesOf, sourceMain, specifiersOf, summaryMarkdown, summaryName, tagName, testsRequired, trustPolicy, tsconfigTest, typedFiles, typedScripts, unreleasedChange, unreleasedChangeRule, withOneJob, workflowParses, workspaceGlobs, workspaceProtocol, yamlFaults };
68
68
 
69
69
  //# sourceMappingURL=index.js.map
@@ -2018,6 +2018,194 @@ const gateTrigger = {
2018
2018
  return breaks;
2019
2019
  }
2020
2020
  };
2021
+ // src/rules/security-one-job.ts
2022
+ /**
2023
+ * The rule `security-one-job`: the security scans of a repository run in one job, with the action `security-scan` of the
2024
+ * template. The deprecated shared workflow `reusable-security.yml` gives three scan jobs, and the caller adds the summary
2025
+ * job `Security OK`. Each job asks for its own runner, so a run waits in the queue for four runners in place of one.
2026
+ */
2027
+ /** The first commit of the template with the action `security-scan` (pull request 206). Renovate and the template sync move the pin after the fix. */
2028
+ const SECURITY_SCAN_COMMIT = "8a01259f04dce1d6a2fa351b758c6d283e9f7fc9";
2029
+ /** The inputs of the action `security-scan`. The shared workflow has the same inputs and also `timeout-minutes`. */
2030
+ const SECURITY_SCAN_INPUTS = [
2031
+ "fail-on-severity",
2032
+ "dependency-review",
2033
+ "dependency-review-scopes",
2034
+ "osv",
2035
+ "osv-lockfile",
2036
+ "codeql",
2037
+ "codeql-languages",
2038
+ "codeql-build-mode"
2039
+ ];
2040
+ /** The time limit of the job when the caller gives none: the default of `timeout-minutes` of the shared workflow. */
2041
+ const SECURITY_TIMEOUT_MINUTES = 30;
2042
+ const REUSABLE = /(^|\/)\.github\/workflows\/reusable-security\.ya?ml(@|$)/;
2043
+ /** The keys that a job of the shared workflow can have, and that the fix can replace. */
2044
+ const CALLER_KEYS = /* @__PURE__ */ new Set([
2045
+ "uses",
2046
+ "permissions",
2047
+ "with",
2048
+ "name"
2049
+ ]);
2050
+ /** This function gives the lines from `start` to the last line of the block that is not empty. */
2051
+ function trimmedEnd(lines, start) {
2052
+ let end = blockEnd(lines, start);
2053
+ while (end > start + 1 && (lines[end - 1] ?? "").trim() === "") end -= 1;
2054
+ return end;
2055
+ }
2056
+ /** This function gives the id of the job of the line `at`. */
2057
+ const idOf = (line) => {
2058
+ const text = line.trim();
2059
+ const colon = text.indexOf(":");
2060
+ return (colon < 0 ? text : text.slice(0, colon)).replace(/^["']|["']$/g, "");
2061
+ };
2062
+ /** This function gives the jobs of a workflow that use the shared workflow `reusable-security.yml`. */
2063
+ function securityCallers(text) {
2064
+ const lines = workflowLines(text);
2065
+ const jobs = lines.findIndex((line) => indentOf$1(line) === 0 && keyValue(line, "jobs") !== void 0);
2066
+ if (jobs < 0) return [];
2067
+ const found = [];
2068
+ for (const job of childKeys(lines, jobs)) {
2069
+ const uses = childKeys(lines, job).map((at) => keyValue(lines[at] ?? "", "uses")).find((value) => value !== void 0);
2070
+ if (uses !== void 0 && REUSABLE.test(uses)) found.push({
2071
+ line: job,
2072
+ id: idOf(lines[job] ?? "")
2073
+ });
2074
+ }
2075
+ return found;
2076
+ }
2077
+ /** This function gives the ids of the jobs in `needs` of the job of the line `job`. */
2078
+ function needsOf(lines, job) {
2079
+ for (const at of childKeys(lines, job)) {
2080
+ const value = keyValue(lines[at] ?? "", "needs");
2081
+ if (value === void 0) continue;
2082
+ if (value !== "" && !value.startsWith("[")) return [value];
2083
+ return listItems(lines, at, value)?.items ?? [];
2084
+ }
2085
+ return [];
2086
+ }
2087
+ /**
2088
+ * This function puts one job in place of the job of the shared workflow and its summary job. If it cannot, it gives the
2089
+ * reason that a person must change the file. The new job keeps the id of the summary job and the name `Security OK`, which the ruleset
2090
+ * needs. It gives the inputs of the caller to the action, and `timeout-minutes` to the job.
2091
+ */
2092
+ function withOneJob(text, commit = SECURITY_SCAN_COMMIT) {
2093
+ const lines = workflowLines(text);
2094
+ const callers = securityCallers(text);
2095
+ if (callers.length !== 1) return { reason: `the file has ${String(callers.length)} jobs that use reusable-security.yml, and the fix changes only one` };
2096
+ const caller = callers[0];
2097
+ if (caller === void 0) return { reason: "no job uses reusable-security.yml" };
2098
+ const dependents = childKeys(lines, lines.findIndex((line) => indentOf$1(line) === 0 && keyValue(line, "jobs") !== void 0)).filter((job) => needsOf(lines, job).includes(caller.id));
2099
+ if (dependents.length !== 1) return { reason: `${String(dependents.length)} jobs need the job ${caller.id}, and the fix needs exactly one summary job` };
2100
+ const summary = dependents[0];
2101
+ if (summary === void 0) return { reason: "no summary job" };
2102
+ const summaryNeeds = needsOf(lines, summary);
2103
+ if (summaryNeeds.length !== 1) return { reason: `the summary job needs ${summaryNeeds.join(", ")}, and the fix replaces only a summary job of the scans` };
2104
+ const summaryName = childKeys(lines, summary).map((at) => keyValue(lines[at] ?? "", "name")).find((value) => value !== void 0);
2105
+ if (summaryName !== "Security OK") return { reason: `the summary job has the name ${summaryName ?? "(none)"}, not Security OK, which the ruleset needs` };
2106
+ const inputs = [];
2107
+ let timeout = String(30);
2108
+ for (const at of childKeys(lines, caller.line)) {
2109
+ const key = idOf(lines[at] ?? "");
2110
+ if (!CALLER_KEYS.has(key)) return { reason: `the job ${caller.id} has the key ${key}, and the fix cannot keep it` };
2111
+ if (key !== "with") continue;
2112
+ for (const input of childKeys(lines, at)) {
2113
+ const name = idOf(lines[input] ?? "");
2114
+ const value = keyValue(lines[input] ?? "", name) ?? "";
2115
+ if (value === "" || value.startsWith("|") || value.startsWith(">") || trimmedEnd(lines, input) > input + 1) return { reason: `the input ${name} has a value of more than one line` };
2116
+ if (name === "timeout-minutes") timeout = value;
2117
+ else if (SECURITY_SCAN_INPUTS.includes(name)) inputs.push(name);
2118
+ else return { reason: `the action security-scan has no input ${name}` };
2119
+ }
2120
+ }
2121
+ const raw = text.split(/\r?\n/);
2122
+ const pad = " ".repeat(indentOf$1(raw[caller.line] ?? ""));
2123
+ const withLines = childKeys(lines, caller.line).find((at) => idOf(lines[at] ?? "") === "with");
2124
+ const inputLines = withLines === void 0 ? [] : childKeys(lines, withLines).filter((at) => inputs.includes(idOf(lines[at] ?? ""))).map((at) => `${pad} ${(raw[at] ?? "").trim()}`);
2125
+ const job = [
2126
+ `${pad}${idOf(lines[summary] ?? "")}:`,
2127
+ `${pad} name: Security OK`,
2128
+ `${pad} runs-on: ubuntu-latest`,
2129
+ `${pad} timeout-minutes: ${timeout}`,
2130
+ `${pad} permissions:`,
2131
+ `${pad} contents: read`,
2132
+ `${pad} security-events: write`,
2133
+ `${pad} actions: read`,
2134
+ `${pad} steps:`,
2135
+ `${pad} - uses: mark1russell7/template/.github/actions/security-scan@${commit} # main`,
2136
+ ...inputLines.length > 0 ? [`${pad} with:`, ...inputLines] : []
2137
+ ];
2138
+ const splices = [{
2139
+ at: caller.line,
2140
+ remove: trimmedEnd(lines, caller.line) - caller.line,
2141
+ insert: job
2142
+ }];
2143
+ const blank = (at) => at >= 0 && at < raw.length - 1 && (raw[at] ?? "").trim() === "";
2144
+ const start = blank(summary - 1) ? summary - 1 : summary;
2145
+ const end = trimmedEnd(lines, summary) + (start === summary && blank(trimmedEnd(lines, summary)) ? 1 : 0);
2146
+ splices.push({
2147
+ at: start,
2148
+ remove: end - start,
2149
+ insert: []
2150
+ });
2151
+ return { text: applySplices(text, splices) };
2152
+ }
2153
+ const securityOneJob = {
2154
+ id: "security-one-job",
2155
+ title: "The security scans run in one job: the action `security-scan`, not the shared workflow `reusable-security.yml`.",
2156
+ reason: "Each job of a run asks for its own runner. reusable-security.yml gives three scan jobs, and the caller adds the summary job Security OK, so each run waits in the queue for four runners, and the summary job waits again after the scans. On 2026-11-06, in a full queue, the scan jobs of systems waited 23 to 40 minutes each. The action security-scan runs the same scans with the same inputs in one job, which is the check Security OK.",
2157
+ fix: "Replace the job that uses reusable-security.yml and its summary job with one job Security OK that runs the action security-scan (CI.md, Security). Give the inputs to the action, and timeout-minutes to the job.",
2158
+ sources: [
2159
+ {
2160
+ repo: "template",
2161
+ rule: "security",
2162
+ doc: "pull request 206 (2026-11-05): the action security-scan, and reusable-security.yml deprecated"
2163
+ },
2164
+ {
2165
+ repo: "template",
2166
+ rule: "ci",
2167
+ doc: "CI.md, Security: the job of a caller of security-scan, and the change from the old workflow"
2168
+ },
2169
+ {
2170
+ repo: "optional",
2171
+ rule: "security",
2172
+ doc: ".github/workflows/security.yml (2026-11-06): the job security of reusable-security.yml and the summary job Security OK, the form that the fix changes"
2173
+ },
2174
+ {
2175
+ repo: "systems",
2176
+ rule: "ci",
2177
+ doc: "Security runs 42159170199 to 42172625422 (2026-11-06): three scan jobs, each waited 5.7 to 40.7 minutes for a runner"
2178
+ }
2179
+ ],
2180
+ options: {},
2181
+ check(context) {
2182
+ const files = context.gitFiles();
2183
+ if (files === void 0) return { skipped: "the root is not in a git repository" };
2184
+ const breaks = [];
2185
+ for (const file of files.filter((path) => WORKFLOW$1.test(path)).sort(byCode)) {
2186
+ let text;
2187
+ try {
2188
+ text = readFileSync(join(context.root, file), "utf8");
2189
+ } catch {
2190
+ continue;
2191
+ }
2192
+ const callers = securityCallers(text);
2193
+ if (callers.length === 0) continue;
2194
+ const after = withOneJob(text);
2195
+ for (const caller of callers) breaks.push({
2196
+ file,
2197
+ line: caller.line + 1,
2198
+ message: `The job ${caller.id} of ${file} uses reusable-security.yml: its scans ask for three runners and its summary job for a fourth.`,
2199
+ ..."text" in after ? { edits: [{
2200
+ file,
2201
+ before: text,
2202
+ after: after.text
2203
+ }] } : { fix: `A person must change it, because ${after.reason}. ${securityOneJob.fix}` }
2204
+ });
2205
+ }
2206
+ return breaks;
2207
+ }
2208
+ };
2021
2209
  // src/change.ts
2022
2210
  /**
2023
2211
  * The change that a check examines: the option `--base`, the merge commit of a pull request, or a push to the default
@@ -8059,7 +8247,7 @@ const HOMES = [
8059
8247
  {
8060
8248
  area: "optional",
8061
8249
  title: "Optional values",
8062
- covers: "a value that is present or absent, with the functor and monad laws",
8250
+ covers: "a value that is present or absent, and Result, a value or an error (1.2.0), with the functor and monad laws",
8063
8251
  packages: ["@mark1russell7/optional"],
8064
8252
  repo: "mark1russell7/optional",
8065
8253
  state: "published",
@@ -8069,7 +8257,10 @@ const HOMES = [
8069
8257
  "some",
8070
8258
  "none",
8071
8259
  "monad",
8072
- "functor"
8260
+ "functor",
8261
+ "result",
8262
+ "either",
8263
+ "error"
8073
8264
  ],
8074
8265
  note: "@mark1russell7/render-optional is a second copy. It moves to @mark1russell7/optional."
8075
8266
  },
@@ -12519,6 +12710,7 @@ const RULES = [
12519
12710
  pipeFails,
12520
12711
  gateAfterCancel,
12521
12712
  gateTrigger,
12713
+ securityOneJob,
12522
12714
  homePackage,
12523
12715
  licenseFile,
12524
12716
  pagesSite,
@@ -12955,6 +13147,6 @@ function runMap(args, io) {
12955
13147
  else io.stdout(mapText(found));
12956
13148
  return 0;
12957
13149
  }
12958
- export { repositoryOfRemote as $, runGit as $t, blockHash as A, mergeHomes as At, publishedMinorRule as B, STRICT_OPTIONS as Bt, testsRequired as C, repoOf as Ct, pathsOf as D, findHomes as Dt, isSourcePath as E, MAP_RULE as Et, requiredScripts as F, gateTrigger as Ft, npmLookup as G, hasFile as Gt, NPM_REGISTRY as H, DEPENDENCY_FIELDS as Ht, releaseFiles as I, prPathFilters as It, pipeFails as J, lineOf as Jt, unreleasedChange as K, inFolder as Kt, lockedVersions as L, summaryName as Lt, sharedDocsRule as M, HOME_EXPORTS as Mt, roadmapOfLine as N, ACTIONS_COMMIT as Nt, sourceMain as O, mapMarkdown as Ot, roadmapParses as P, convertGate as Pt, pagesAfterRelease as Q, replaceLine as Qt, minorOf as R, gateAfterCancel as Rt, typedFiles as S, messageOf as St, tsconfigTest as T, HOMES as Tt, SHIPPED_FIELDS as U, cleanPath as Ut, reachOf as V, cuePreset as Vt, UNSHIPPED_FILES as W, codePackages as Wt, isPinned as X, parseJsonc as Xt, isGitSpecifier as Y, matchesAny as Yt, pinnedGitDeps as Z, readJsonc as Zt, TRAIN_SCOPES as _, licenseFileOf as _t, listRules as a, defaultOptions as an, pagesSite as at, configsOfScript as b, declaredName as bt, runCli as c, HOME_PATTERNS as ct, RULES as d, REAL_COMPARE as dt, specifiersOf as en, runnerBudget as et, workspaceProtocol as f, hasImportMetaMain as ft, IGNORE_AFTER as g, licenseFile as gt, yamlFaults as h, authorOf as ht, formatResult as i, workspaceGlobs as in, pagesCalls as it, githubFetch as j, readOverlay as jt, HOME_TIMEOUT_MS as k, mapText as kt, runFix as l, noLocalPaths as lt, workflowParses as m, LICENSE_TEXTS as mt, annotations as n, globToRegExp as nn, pushMainOnly as nt, readConfig as o, parseConfig as on, apiReportScript as ot, GITHUB_YAML as p, mainCheck as pt, unreleasedChangeRule as q, keyLine as qt, createContext as r, packageFolders as rn, PAGES_WORKFLOWS as rt, runChecks as s, DEFAULT_ALLOWED as st, USAGE as t, globFolders as tn, scheduleMinute as tt, summaryMarkdown as u, noBuildOutput as ut, trustPolicy as v, mitText as vt, hasTests as w, signaturesOf as wt, scriptsOf as x, homePackage as xt, typedScripts as y, repositoryIsPublic as yt, publishedMinor as z, readWorkflow as zt };
13150
+ export { repositoryOfRemote as $, keyLine as $t, blockHash as A, mergeHomes as At, publishedMinorRule as B, convertGate as Bt, testsRequired as C, repoOf as Ct, pathsOf as D, findHomes as Dt, isSourcePath as E, MAP_RULE as Et, requiredScripts as F, SECURITY_TIMEOUT_MINUTES as Ft, npmLookup as G, readWorkflow as Gt, NPM_REGISTRY as H, prPathFilters as Ht, releaseFiles as I, securityCallers as It, pipeFails as J, DEPENDENCY_FIELDS as Jt, unreleasedChange as K, STRICT_OPTIONS as Kt, lockedVersions as L, securityOneJob as Lt, sharedDocsRule as M, HOME_EXPORTS as Mt, roadmapOfLine as N, SECURITY_SCAN_COMMIT as Nt, sourceMain as O, mapMarkdown as Ot, roadmapParses as P, SECURITY_SCAN_INPUTS as Pt, pagesAfterRelease as Q, inFolder as Qt, minorOf as R, withOneJob as Rt, typedFiles as S, messageOf as St, tsconfigTest as T, HOMES as Tt, SHIPPED_FIELDS as U, summaryName as Ut, reachOf as V, gateTrigger as Vt, UNSHIPPED_FILES as W, gateAfterCancel as Wt, isPinned as X, codePackages as Xt, isGitSpecifier as Y, cleanPath as Yt, pinnedGitDeps as Z, hasFile as Zt, TRAIN_SCOPES as _, licenseFileOf as _t, listRules as a, runGit as an, pagesSite as at, configsOfScript as b, declaredName as bt, runCli as c, globToRegExp as cn, HOME_PATTERNS as ct, RULES as d, defaultOptions as dn, REAL_COMPARE as dt, lineOf as en, runnerBudget as et, workspaceProtocol as f, parseConfig as fn, hasImportMetaMain as ft, IGNORE_AFTER as g, licenseFile as gt, yamlFaults as h, authorOf as ht, formatResult as i, replaceLine as in, pagesCalls as it, githubFetch as j, readOverlay as jt, HOME_TIMEOUT_MS as k, mapText as kt, runFix as l, packageFolders as ln, noLocalPaths as lt, workflowParses as m, LICENSE_TEXTS as mt, annotations as n, parseJsonc as nn, pushMainOnly as nt, readConfig as o, specifiersOf as on, apiReportScript as ot, GITHUB_YAML as p, mainCheck as pt, unreleasedChangeRule as q, cuePreset as qt, createContext as r, readJsonc as rn, PAGES_WORKFLOWS as rt, runChecks as s, globFolders as sn, DEFAULT_ALLOWED as st, USAGE as t, matchesAny as tn, scheduleMinute as tt, summaryMarkdown as u, workspaceGlobs as un, noBuildOutput as ut, trustPolicy as v, mitText as vt, hasTests as w, signaturesOf as wt, scriptsOf as x, homePackage as xt, typedScripts as y, repositoryIsPublic as yt, publishedMinor as z, ACTIONS_COMMIT as zt };
12959
13151
 
12960
- //# sourceMappingURL=run-Bn3XU7rh.js.map
13152
+ //# sourceMappingURL=run-Do3z3eKR.js.map