@mark1russell7/conventions 0.52.2 → 0.52.3
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 +1 -0
- package/build/cli.js +1 -1
- package/build/index.d.ts.map +1 -1
- package/build/index.js +1 -1
- package/build/{run-z_zuxE9M.js → run-Ck7ahUNV.js} +224 -7
- package/build/run-Ck7ahUNV.js.map +1 -0
- package/package.json +1 -1
- package/build/run-z_zuxE9M.js.map +0 -1
package/README.md
CHANGED
|
@@ -81,6 +81,7 @@ The rules come from the invariants audit of 2026-10-26 (strategy item s38). The
|
|
|
81
81
|
| `setup-cue` | No workflow or action installs the cue CLI with its own command (a download of a release asset of `cue-lang/cue`, or `go install`). A caller of `reusable-ci.yml` gives the input `cue-version`. Another job uses the action `setup-cue` of the template. The action installs the CLI from a cache, or with retries and a sha256 check. On 2026-11-08, a 504 of GitHub failed each bare `curl` of the CLI. |
|
|
82
82
|
| `playwright-install` | No workflow, action or site config installs the Playwright browsers with its own command (`playwright install` or `install-deps`). A job step uses the action `setup-playwright` of the template. The build of `reusable-pages.yml` gives the key `playwright-browsers`. The action has a cache, a time limit and one more try. On 2026-11-11 the package mirror did not resolve, and each bare install of client and lag stopped in apt. The rule fails from 2026-12-01. | client run 43034026417, lag #113 and #115, template #315 (2026-11-11). |
|
|
83
83
|
| `moved-repo-calls` | No `uses:` of a workflow or composite action names a repository by its old owner after the repository moved. GitHub does not follow the redirect of a moved repository for `uses:`, so each run fails before it starts ("workflow file issue"). The package knows the moves (`src/moves.ts`), and the option `moves` adds more (`owner/name=owner/name`). `conventions fix` writes the new owner. The rule fails from 2026-12-09. | ireko #133 (2026-11-24). |
|
|
84
|
+
| `moved-repo-names` | No package field, Markdown link, workflow key or config value names a repository by its old owner after the repository moved. Some old names break at once: npm provenance compares the field `repository` of `package.json` with the repository of the run, and a GitHub Pages address of the old owner gives 404. The kinds of place are data (`src/places.ts`): the fields and git dependencies of each `package.json`, the links of each Markdown file except a change log, the addresses and the key `repository` of each workflow, and the key `repo` of the config of Changesets. The rule `moved-repo-calls` holds `uses:`. The option `moves` adds more moves. `conventions fix` writes the new owner. The rule fails from 2026-12-10. | private `repo-move-tool` (a decision of 2026-11-25). |
|
|
84
85
|
| `schedule-literals` | In a workflow that reads `github.event.schedule`, each cron in quotes is a cron of its own `on.schedule`. A scheduled run gives the cron that started it, so an old copy of a cron matches no run. `conventions fix` writes the cron when the file has one cron that no comparison names and one copy that no schedule has. The rule fails from 2026-12-09. | systems #669 (2026-11-24). |
|
|
85
86
|
| `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` (a decision of 2026-11-02). |
|
|
86
87
|
| `summary-job` | Each gate workflow (`ci.yml`, `security.yml`) that starts on pull requests has one summary job `<Name> OK` that needs each of its jobs. The ruleset names only the summary checks. Without them, it must name each job: then it does not wait for a new job, and a renamed job blocks each pull request. On 2026-11-09, 21 of 43 public repositories had a gate with no summary job. | private `summary-job` (a decision of 2026-11-09). |
|
package/build/cli.js
CHANGED
package/build/index.d.ts.map
CHANGED
|
@@ -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/rules/security-gate.ts","../src/rules/security-one-job.ts","../src/rules/summary-job.ts","../src/rules/setup-cue.ts","../src/rules/shared-ci.ts","../src/rules/service-run-main.ts","../src/map.ts","../src/rules/home-module.ts","../src/rules/home-package.ts","../src/rules/license-file.ts","../src/rules/coverage-provider.ts","../src/rules/main-check.ts","../src/rules/no-build-output.ts","../src/private-names.ts","../src/rules/no-local-paths.ts","../src/rules/pack-no-buildinfo.ts","../src/rules/publish-text-safe.ts","../src/rules/exports-require.ts","../src/rules/api-report-script.ts","../src/rules/pages-after-release.ts","../src/rules/pages-site.ts","../src/rules/site-check-in-ci.ts","../src/rules/pinned-git-deps.ts","../src/rules/pipe-fails.ts","../src/rules/job-fails.ts","../src/rules/playwright-install.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/workflow.ts","../src/rules/runner-peak.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/version-title.ts","../src/rules/workflow-parses.ts","../src/rules/workspace-protocol.ts","../src/rules/index.ts","../src/run.ts","../src/pre-push.ts","../src/workflow-expression.ts","../src/home-exports.ts","../src/release-text.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;;WAEA;;EAET;;EAEA,IAAI;;;;;;EAMJ,SAAS;;;wBAIK,UAAU,SAAS,KAAK,iCAAiC;;KAM7D,uBAAuB;WAAqB;;;qBAG3C;;UAGI;;WAEN;;WAEA;;WAEA;;WAEA;;WAEA,kBAAkB;;WAElB,SAAS,SAAS,eAAe;;;;;WAKjC;;;;;;;WAOA;EACT,MAAM,SAAS,aAAa,SAAS,U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,OAAO;;;;;;WAMP,iBAAiB;;;qBAyFf;;;;;wBA6FG,cAAc,cAAc,eAAe;;qBC7nB9C;;KAGD;;wBAMI,WAAW,gBAAgB;;UAM1B;;WAEN;;WAEA,QAAQ,SAAS;;;UAIX;WACN;WACA;WACA;WACA;;WAEA;;;UAIM;WACN;WACA;;WAEA,SAAS,SAAS,QAAQ,OAAO;aAAuB;aAAwB;aAAuB,eAAe;;;;;;;;wBAQjH,WAAW,aAAa,0BAA0B,eAAe;;wBAkBjE,WAAW,KAAK;;;;;;;wBAqChB,cAAc,oBAAoB,kBAAkB,SAAS,cAAc;;wBAsB3E,WAAW,4BAA4B;;;;;qBAuB1C;qBAeA,YAAY;;KClKb;WAAwB;;WAA4B;;;KAGpD,aAAa,4BAA4B,oBAAoB;;qBAG5D;;qBAiBA,aAAa;;qBAcb,YAAa;;wBAoEV,eAAe,aAAY,YAA0B;;wBC3GrD,QAAQ;;wBAQR,aAAa;qBAKhB,YAAY;qBCkBZ,eAAe;;wBCpBZ,SAAS,0BAA0B;qBAKtC,cAAc;;wBCoDX,gBAAgB;;;;;wBAmChB,UACd,SAAS,SAAS,0BAClB,cACA,OAAM;qBA4NK,YAAY;qBC1SZ,cAAc;;qBC3Bd;;qBAGA;qBA6DA,aAAa;;wBCxDV,cAAc;;wBAqBd,YAAY,SAAS,aAAa,cAAc;qBAsEnD,cAAc;;qBCjGd,aAAa;qBAEb,gBAAgB;qBCPhB,mBAAmB;;
|
|
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-gate.ts","../src/rules/security-one-job.ts","../src/rules/summary-job.ts","../src/rules/setup-cue.ts","../src/rules/shared-ci.ts","../src/rules/service-run-main.ts","../src/map.ts","../src/rules/home-module.ts","../src/rules/home-package.ts","../src/rules/license-file.ts","../src/rules/coverage-provider.ts","../src/rules/main-check.ts","../src/rules/no-build-output.ts","../src/private-names.ts","../src/rules/no-local-paths.ts","../src/rules/pack-no-buildinfo.ts","../src/rules/publish-text-safe.ts","../src/rules/exports-require.ts","../src/rules/api-report-script.ts","../src/rules/pages-after-release.ts","../src/rules/pages-site.ts","../src/rules/site-check-in-ci.ts","../src/rules/pinned-git-deps.ts","../src/rules/pipe-fails.ts","../src/rules/job-fails.ts","../src/rules/playwright-install.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/workflow.ts","../src/rules/runner-peak.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/version-title.ts","../src/rules/workflow-parses.ts","../src/rules/workspace-protocol.ts","../src/rules/index.ts","../src/run.ts","../src/pre-push.ts","../src/workflow-expression.ts","../src/home-exports.ts","../src/release-text.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;;WAEA;;EAET;;EAEA,IAAI;;;;;;EAMJ,SAAS;;;wBAIK,UAAU,SAAS,KAAK,iCAAiC;;KAM7D,uBAAuB;WAAqB;;;qBAG3C;;UAGI;;WAEN;;WAEA;;WAEA;;WAEA;;WAEA,kBAAkB;;WAElB,SAAS,SAAS,eAAe;;;;;W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ED, Bn as SUMMARY_GATES, Br as parseRuleConfig, Bt as privatePatterns, C as setVersions, Cn as npmNames, Cr as codePackages, Ct as pagesAfterRelease, D as trustPolicy, Dn as serviceRunMain, Dr as lineOf, Dt as pagesSite, E as TRAIN_SCOPES, En as runCalls, Er as keyLine, Et as pagesCalls, F as sourceMain, Fn as setupCue, Fr as runGitShow, Ft as PRIVATE_PATTERNS_VARIABLE, G as runnerPeak, Gn as SECURITY_SCAN_COMMIT, Gt as isAllowedHit, H as calledJobs, Hn as hasSummaryJob, Ht as PRIVATE_NAME_LIST, I as HOME_TIMEOUT_MS, In as SECURITY_FILE, Ir as showFiles, It as invalidPatternBreaks, J as evaluateExpression, Jn as securityCallers, Jt as lineNameHits, K as runsAtOnce, Kn as SECURITY_SCAN_INPUTS, Kt as isCommonUse, L as blockHash, Ln as isSecurityGate, Lr as specifiersOf, Lt as noLocalPaths, M as testsRequired, Mn as SHARED_WORKFLOWS, Mr as replaceLine, Mt as HOME_PATTERNS, N as isSourcePath, Nn as callsSharedCi, Nr as repositoryOfRemote, Nt as PRIVATE_NAMES_FILE_CONFIG, O as typedScripts, On as hasTests, Or as matchesAny, Ot as exportsRequire, P as pathsOf, Pn as sharedCi, Pr as runGit, Pt as PRIVATE_NAMES_FILE_VARIABLE, Q as roadmapParses, Qn as scheduleMinute, Qt as pathNameHit, R as githubFetch, Rn as securityGate, Rr as defaultOptions, Rt as privateNamesFile, S as namedVersions, Sn as npmDrift, Sr as cleanPath, St as siteCheckInCi, T as IGNORE_AFTER, Tn as SERVICE_PACKAGE, Tr as inFolder, Tt as PAGES_WORKFLOWS, U as eventClass, Un as startsOnPullRequest, Ut as PrivateNameListError, V as UNKNOWN_MATRIX_JOBS, Vn as addSummaryJob, Vt as privateTextBreaks, W as matrixPeak, Wn as summaryJobRule, Wt as firstNameMatch, X as mayRun, Xn as withOneJob, Xt as nameMatches, Y as groupParts, Yn as securityOneJob, Yt as mergePrivateNames, Z as roadmapOfLine, Zn as runnerBudget, Zt as parsePrivateNames, _ as runPrePushArgs, _n as MAP_RULE, _r as yamlFaults, _t as swallowsTests, a as listRules, an as homeModule, ar as ACTIONS_COMMIT, at as reachOf, b as GITHUB_YAML, bn as mapText, br as DEPENDENCY_FIELDS, bt as isPinned, c as runCli, cn as modulesOf, cr as prPathFilters, ct as UNSHIPPED_FILES, d as HOOK_MARKER, dn as messageOf, dr as summaryName, dt as unreleasedChangeRule, en as REAL_COMPARE, er as authorOf, et as releaseFiles, f as NO_READ_LINE, fn as repoOf, fr as gateAfterCancel, ft as playwrightInstall, g as prePush, gn as HOMES, gr as readWorkflow, gt as startsTests, h as parsePrePushArgs, hn as HOME_EXPORTS, hr as readAction, ht as parseAdvisory, i as formatResult, in as apiReportScript, ir as repositoryIsPublic, it as publishedMinorRule, j as typedFiles, jn as SHARED_CI, jr as readJsonc, jt as DEFAULT_ALLOWED, k as configsOfScript, kn as tsconfigTest, kr as parseCatFileBatch, kt as publishTextSafe, l as runFix, ln as declaredName, lr as skippableJobs, lt as npmLookup, m as installHook, mn as signaturesOf, mr as parseWorkflow, mt as jobFails, n as annotations, nn as mainCheck, nr as licenseFileOf, nt as minorOf, o as readConfig, on as moduleMessage, or as convertGate, ot as NPM_REGISTRY, p as PRE_PUSH_HOOK, pn as reposOf, pr as MATRIX_EXPAND_MAX, pt as hiddenFailures, q as workflowPeaks, qn as SECURITY_TIMEOUT_MINUTES, qt as lineNameHit, r as createContext, rn as coverageProvider, rr as mitText, rt as publishedMinor, s as runChecks, sn as moduleUses, sr as gateTrigger, st as SHIPPED_FIELDS, t as USAGE, tn as hasImportMetaMain, tr as licenseFile, tt as lockedVersions, u as summaryMarkdown, un as homePackage, ur as summaryJob, ut as unreleasedChange, v as RULES, vn as findHomes, vr as STRICT_OPTIONS, vt as pipeFails, w as versionTitle, wn as readOverlay, wr as hasFile, wt as pushMainOnly, x as workflowParses, xn as mergeHomes, xr as RULE_WARN_DAYS, xt as pinnedGitDeps, y as workspaceProtocol, yn as mapMarkdown, yr as cuePreset, yt as isGitSpecifier, z as sharedDocsRule, zn as securityWorkflow, zr as parseConfig, zt as privateNamesFiles } from "./run-
|
|
1
|
+
import { $ as requiredScripts, $n as LICENSE_TEXTS, $t as noBuildOutput, A as scriptsOf, An as SHARED_ACTIONS, Ar as parseJsonc, At as packNoBuildinfo, B as TEMPLATE_CALLED, Bn as SUMMARY_GATES, Br as parseRuleConfig, Bt as privatePatterns, C as setVersions, Cn as npmNames, Cr as codePackages, Ct as pagesAfterRelease, D as trustPolicy, Dn as serviceRunMain, Dr as lineOf, Dt as pagesSite, E as TRAIN_SCOPES, En as runCalls, Er as keyLine, Et as pagesCalls, F as sourceMain, Fn as setupCue, Fr as runGitShow, Ft as PRIVATE_PATTERNS_VARIABLE, G as runnerPeak, Gn as SECURITY_SCAN_COMMIT, Gt as isAllowedHit, H as calledJobs, Hn as hasSummaryJob, Ht as PRIVATE_NAME_LIST, I as HOME_TIMEOUT_MS, In as SECURITY_FILE, Ir as showFiles, It as invalidPatternBreaks, J as evaluateExpression, Jn as securityCallers, Jt as lineNameHits, K as runsAtOnce, Kn as SECURITY_SCAN_INPUTS, Kt as isCommonUse, L as blockHash, Ln as isSecurityGate, Lr as specifiersOf, Lt as noLocalPaths, M as testsRequired, Mn as SHARED_WORKFLOWS, Mr as replaceLine, Mt as HOME_PATTERNS, N as isSourcePath, Nn as callsSharedCi, Nr as repositoryOfRemote, Nt as PRIVATE_NAMES_FILE_CONFIG, O as typedScripts, On as hasTests, Or as matchesAny, Ot as exportsRequire, P as pathsOf, Pn as sharedCi, Pr as runGit, Pt as PRIVATE_NAMES_FILE_VARIABLE, Q as roadmapParses, Qn as scheduleMinute, Qt as pathNameHit, R as githubFetch, Rn as securityGate, Rr as defaultOptions, Rt as privateNamesFile, S as namedVersions, Sn as npmDrift, Sr as cleanPath, St as siteCheckInCi, T as IGNORE_AFTER, Tn as SERVICE_PACKAGE, Tr as inFolder, Tt as PAGES_WORKFLOWS, U as eventClass, Un as startsOnPullRequest, Ut as PrivateNameListError, V as UNKNOWN_MATRIX_JOBS, Vn as addSummaryJob, Vt as privateTextBreaks, W as matrixPeak, Wn as summaryJobRule, Wt as firstNameMatch, X as mayRun, Xn as withOneJob, Xt as nameMatches, Y as groupParts, Yn as securityOneJob, Yt as mergePrivateNames, Z as roadmapOfLine, Zn as runnerBudget, Zt as parsePrivateNames, _ as runPrePushArgs, _n as MAP_RULE, _r as yamlFaults, _t as swallowsTests, a as listRules, an as homeModule, ar as ACTIONS_COMMIT, at as reachOf, b as GITHUB_YAML, bn as mapText, br as DEPENDENCY_FIELDS, bt as isPinned, c as runCli, cn as modulesOf, cr as prPathFilters, ct as UNSHIPPED_FILES, d as HOOK_MARKER, dn as messageOf, dr as summaryName, dt as unreleasedChangeRule, en as REAL_COMPARE, er as authorOf, et as releaseFiles, f as NO_READ_LINE, fn as repoOf, fr as gateAfterCancel, ft as playwrightInstall, g as prePush, gn as HOMES, gr as readWorkflow, gt as startsTests, h as parsePrePushArgs, hn as HOME_EXPORTS, hr as readAction, ht as parseAdvisory, i as formatResult, in as apiReportScript, ir as repositoryIsPublic, it as publishedMinorRule, j as typedFiles, jn as SHARED_CI, jr as readJsonc, jt as DEFAULT_ALLOWED, k as configsOfScript, kn as tsconfigTest, kr as parseCatFileBatch, kt as publishTextSafe, l as runFix, ln as declaredName, lr as skippableJobs, lt as npmLookup, m as installHook, mn as signaturesOf, mr as parseWorkflow, mt as jobFails, n as annotations, nn as mainCheck, nr as licenseFileOf, nt as minorOf, o as readConfig, on as moduleMessage, or as convertGate, ot as NPM_REGISTRY, p as PRE_PUSH_HOOK, pn as reposOf, pr as MATRIX_EXPAND_MAX, pt as hiddenFailures, q as workflowPeaks, qn as SECURITY_TIMEOUT_MINUTES, qt as lineNameHit, r as createContext, rn as coverageProvider, rr as mitText, rt as publishedMinor, s as runChecks, sn as moduleUses, sr as gateTrigger, st as SHIPPED_FIELDS, t as USAGE, tn as hasImportMetaMain, tr as licenseFile, tt as lockedVersions, u as summaryMarkdown, un as homePackage, ur as summaryJob, ut as unreleasedChange, v as RULES, vn as findHomes, vr as STRICT_OPTIONS, vt as pipeFails, w as versionTitle, wn as readOverlay, wr as hasFile, wt as pushMainOnly, x as workflowParses, xn as mergeHomes, xr as RULE_WARN_DAYS, xt as pinnedGitDeps, y as workspaceProtocol, yn as mapMarkdown, yr as cuePreset, yt as isGitSpecifier, z as sharedDocsRule, zn as securityWorkflow, zr as parseConfig, zt as privateNamesFiles } from "./run-Ck7ahUNV.js";
|
|
2
2
|
import { OWNERS, ownerOf, ownersOf, repoKeyer, sharedNames } from "./owners.js";
|
|
3
3
|
import { a as packageFolders, i as isWorkspaceFolder, l as workspaceGlobs, n as globFolders, o as parseWorkspaceGlobs, r as globToRegExp } from "./workspace-_CIq-8ei.js";
|
|
4
4
|
// src/release-text.ts
|
|
@@ -3265,7 +3265,7 @@ const securityGate = {
|
|
|
3265
3265
|
* GitHub fails at times with a 504, and a bare `curl` then fails the job.
|
|
3266
3266
|
*/
|
|
3267
3267
|
/** The files of a composite action. */
|
|
3268
|
-
const ACTION$
|
|
3268
|
+
const ACTION$4 = /^\.github\/actions\/.+\/action\.ya?ml$/;
|
|
3269
3269
|
/** The action of the template itself. It is the one place with the download. */
|
|
3270
3270
|
const SHARED_ACTION$1 = ".github/actions/setup-cue/action.yml";
|
|
3271
3271
|
/** A hand-written install of the cue CLI: a download of a release asset, or a build with `go install`. */
|
|
@@ -3312,7 +3312,7 @@ const setupCue = {
|
|
|
3312
3312
|
const files = context.gitFiles();
|
|
3313
3313
|
if (files === void 0) return { skipped: "the root is not in a git repository" };
|
|
3314
3314
|
const breaks = [];
|
|
3315
|
-
for (const file of files.filter((path) => (WORKFLOW$1.test(path) || ACTION$
|
|
3315
|
+
for (const file of files.filter((path) => (WORKFLOW$1.test(path) || ACTION$4.test(path)) && path !== SHARED_ACTION$1).sort(byCode)) {
|
|
3316
3316
|
let text;
|
|
3317
3317
|
try {
|
|
3318
3318
|
text = readFileSync(join(context.root, file), "utf8");
|
|
@@ -3380,7 +3380,7 @@ const SHARED_ACTIONS = [
|
|
|
3380
3380
|
/** The `uses` value of a job that calls the shared CI, with no pin. */
|
|
3381
3381
|
const SHARED_CI = "mark1russell7/template/.github/workflows/reusable-ci.yml";
|
|
3382
3382
|
/** The action folder of a path: `.github/actions/<name>/action.yml` gives `<name>`. */
|
|
3383
|
-
const ACTION$
|
|
3383
|
+
const ACTION$3 = /^\.github\/actions\/([^/]+)\//;
|
|
3384
3384
|
/** The file name of a path. */
|
|
3385
3385
|
const baseName = (path) => path.slice(path.lastIndexOf("/") + 1);
|
|
3386
3386
|
/** This function tells if a job of a workflow text uses the shared CI of the template. */
|
|
@@ -3444,7 +3444,7 @@ const sharedCi = {
|
|
|
3444
3444
|
});
|
|
3445
3445
|
const actions = /* @__PURE__ */ new Set();
|
|
3446
3446
|
for (const file of files) {
|
|
3447
|
-
const folder = ACTION$
|
|
3447
|
+
const folder = ACTION$3.exec(file)?.[1];
|
|
3448
3448
|
if (folder !== void 0 && SHARED_ACTIONS.includes(folder) && !actions.has(folder)) {
|
|
3449
3449
|
actions.add(folder);
|
|
3450
3450
|
breaks.push({
|
|
@@ -17716,7 +17716,7 @@ function movedTo(repo, moves) {
|
|
|
17716
17716
|
* Each run of the workflow then fails before it starts ("workflow file issue"), and no job shows why.
|
|
17717
17717
|
*/
|
|
17718
17718
|
/** The files of a composite action. */
|
|
17719
|
-
const ACTION$
|
|
17719
|
+
const ACTION$2 = /^\.github\/actions\/.+\/action\.ya?ml$/;
|
|
17720
17720
|
/** The value of `uses:` that names another repository: `owner/name`, then a path or nothing, then `@` and the ref. */
|
|
17721
17721
|
const REMOTE = /^([\w.-]+)\/([\w.-]+)(\/[^@\s]*)?@\S+$/;
|
|
17722
17722
|
/** This function gives each `uses:` of a workflow or an action that names another repository. A local path (`./`) and a Docker image (`docker://`) are not calls of a repository. */
|
|
@@ -17772,7 +17772,7 @@ const movedRepoCalls = {
|
|
|
17772
17772
|
if (bad !== void 0) return { skipped: `the option moves has "${bad.text}", which is not in the form owner/name=owner/name` };
|
|
17773
17773
|
const moves = [...MOVES, ...extra.map((each) => each.move)];
|
|
17774
17774
|
const breaks = [];
|
|
17775
|
-
for (const file of files.filter((path) => WORKFLOW$1.test(path) || ACTION$
|
|
17775
|
+
for (const file of files.filter((path) => WORKFLOW$1.test(path) || ACTION$2.test(path)).sort(byCode)) {
|
|
17776
17776
|
let text;
|
|
17777
17777
|
try {
|
|
17778
17778
|
text = readFileSync(join(context.root, file), "utf8");
|
|
@@ -17800,6 +17800,222 @@ const movedRepoCalls = {
|
|
|
17800
17800
|
return breaks;
|
|
17801
17801
|
}
|
|
17802
17802
|
};
|
|
17803
|
+
// src/places.ts
|
|
17804
|
+
/**
|
|
17805
|
+
* The places of a repository that name another repository: links, package fields, workflow keys and config values.
|
|
17806
|
+
* When a repository moves to another owner, each such place that names the old owner is stale. Some places break at
|
|
17807
|
+
* once. npm provenance compares the field `repository` with the repository of the run. A GitHub Pages address of the
|
|
17808
|
+
* old owner gives 404. A `uses:` line does not follow the move (the rule `moved-repo-calls` holds that kind). The other
|
|
17809
|
+
* places go through a redirect only until a new repository takes the old name.
|
|
17810
|
+
*
|
|
17811
|
+
* A kind of place is data: its id, the files it reads and a pure function. The function finds each place in a file.
|
|
17812
|
+
* The rule `moved-repo-names` and the move plan read the same kinds. This file reads no file and starts no program.
|
|
17813
|
+
*/
|
|
17814
|
+
/** An owner or a name of a repository on GitHub. */
|
|
17815
|
+
const PART = "[A-Za-z0-9_.-]+";
|
|
17816
|
+
/**
|
|
17817
|
+
* A repository in a URL or a specifier: `github.com/owner/name`, `github.com:owner/name` (SSH) and `github:owner/name`.
|
|
17818
|
+
* The name stops before `/`, `#`, `?`, a quote, a bracket, a space or the end.
|
|
17819
|
+
*/
|
|
17820
|
+
const HOSTED = new RegExp(`(?<![\\w.-])(?:github\\.com[/:]|github:)(${PART})/(${PART})`, "gd");
|
|
17821
|
+
/** A GitHub Pages address of a project: `owner.github.io/name`. */
|
|
17822
|
+
const PAGES = new RegExp(`(?<![\\w.-])(${PART})\\.github\\.io/(${PART})`, "gd");
|
|
17823
|
+
/** The paths of GitHub that are not owners. */
|
|
17824
|
+
const NOT_OWNERS = /* @__PURE__ */ new Set([
|
|
17825
|
+
"orgs",
|
|
17826
|
+
"users",
|
|
17827
|
+
"settings",
|
|
17828
|
+
"marketplace",
|
|
17829
|
+
"features",
|
|
17830
|
+
"sponsors",
|
|
17831
|
+
"apps",
|
|
17832
|
+
"topics",
|
|
17833
|
+
"collections",
|
|
17834
|
+
"login",
|
|
17835
|
+
"about",
|
|
17836
|
+
"pricing"
|
|
17837
|
+
]);
|
|
17838
|
+
/** This function gives the name of a repository without the end `.git` and without dots at the end (the end of a sentence). */
|
|
17839
|
+
function bareName(name) {
|
|
17840
|
+
return name.replace(/\.git$/i, "").replace(/\.+$/, "");
|
|
17841
|
+
}
|
|
17842
|
+
/** This function gives each match of `pattern` in the lines of `text`, as a name of a repository. The pattern has the flag d, and the place starts at its group 1 (the owner). */
|
|
17843
|
+
function matches(text, pattern, form, skip = () => false) {
|
|
17844
|
+
const found = [];
|
|
17845
|
+
text.split(/\r?\n/).forEach((line, index) => {
|
|
17846
|
+
if (skip(line)) return;
|
|
17847
|
+
for (const match of line.matchAll(pattern)) {
|
|
17848
|
+
const owner = match[1] ?? "";
|
|
17849
|
+
const name = bareName(match[2] ?? "");
|
|
17850
|
+
if (name === "" || NOT_OWNERS.has(owner.toLowerCase())) continue;
|
|
17851
|
+
const written = form === "pages" ? `${owner}.github.io/${name}` : `${owner}/${name}`;
|
|
17852
|
+
const column = match.indices?.[1]?.[0] ?? 0;
|
|
17853
|
+
found.push({
|
|
17854
|
+
line: index + 1,
|
|
17855
|
+
column,
|
|
17856
|
+
text: written,
|
|
17857
|
+
repo: `${owner}/${name}`.toLowerCase(),
|
|
17858
|
+
form
|
|
17859
|
+
});
|
|
17860
|
+
}
|
|
17861
|
+
});
|
|
17862
|
+
return found;
|
|
17863
|
+
}
|
|
17864
|
+
/** This function gives each GitHub address and each Pages address in a text. */
|
|
17865
|
+
function links(text, skip) {
|
|
17866
|
+
return [...matches(text, HOSTED, "repo", skip), ...matches(text, PAGES, "pages", skip)].sort((a, b) => a.line - b.line || a.column - b.column);
|
|
17867
|
+
}
|
|
17868
|
+
/** This function gives each value `"owner/name"` of a key in a JSON text, for a key that names a repository with no host. */
|
|
17869
|
+
function bareValues(text, keys) {
|
|
17870
|
+
return matches(text, new RegExp(`"(?:${keys.join("|")})"\\s*:\\s*"(${PART})/(${PART})"`, "gd"), "repo");
|
|
17871
|
+
}
|
|
17872
|
+
/** The file of a package. */
|
|
17873
|
+
const MANIFEST = /(^|\/)package\.json$/;
|
|
17874
|
+
/** A Markdown file. A change log is a record of the past: its links go through the redirect, so the kinds do not read it. */
|
|
17875
|
+
const MARKDOWN = /\.mdx?$/i;
|
|
17876
|
+
const CHANGELOG = /(^|\/)CHANGELOG\.md$/i;
|
|
17877
|
+
/** A file of a composite action. */
|
|
17878
|
+
const ACTION$1 = /^\.github\/actions\/.+\/action\.ya?ml$/;
|
|
17879
|
+
/** The kinds of place of the core, in the order of a report. */
|
|
17880
|
+
const PLACE_KINDS = [
|
|
17881
|
+
{
|
|
17882
|
+
id: "package-fields",
|
|
17883
|
+
title: "The fields repository, homepage and bugs and the git dependencies of each package.json. npm provenance compares the field repository with the repository of the run.",
|
|
17884
|
+
reads: (file) => MANIFEST.test(file),
|
|
17885
|
+
find: (text) => [...links(text), ...bareValues(text, ["repository"])]
|
|
17886
|
+
},
|
|
17887
|
+
{
|
|
17888
|
+
id: "doc-links",
|
|
17889
|
+
title: "The links, the badges and the Pages addresses of each Markdown file, except a change log.",
|
|
17890
|
+
reads: (file) => MARKDOWN.test(file) && !CHANGELOG.test(file),
|
|
17891
|
+
find: (text) => links(text)
|
|
17892
|
+
},
|
|
17893
|
+
{
|
|
17894
|
+
id: "workflow-names",
|
|
17895
|
+
title: "The addresses and each key repository of a workflow or a composite action, except uses: (the rule moved-repo-calls).",
|
|
17896
|
+
reads: (file) => WORKFLOW$1.test(file) || ACTION$1.test(file),
|
|
17897
|
+
find: (text) => {
|
|
17898
|
+
const skip = (line) => line.trimStart().startsWith("#") || keyValue(line, "uses") !== void 0;
|
|
17899
|
+
const keys = [];
|
|
17900
|
+
text.split(/\r?\n/).forEach((line, index) => {
|
|
17901
|
+
if (skip(line)) return;
|
|
17902
|
+
const value = keyValue(line, "repository");
|
|
17903
|
+
const match = value === void 0 ? null : new RegExp(`^(${PART})/(${PART})$`).exec(value);
|
|
17904
|
+
if (match === null) return;
|
|
17905
|
+
const written = `${match[1] ?? ""}/${match[2] ?? ""}`;
|
|
17906
|
+
keys.push({
|
|
17907
|
+
line: index + 1,
|
|
17908
|
+
column: line.indexOf(written),
|
|
17909
|
+
text: written,
|
|
17910
|
+
repo: written.toLowerCase(),
|
|
17911
|
+
form: "repo"
|
|
17912
|
+
});
|
|
17913
|
+
});
|
|
17914
|
+
return [...links(text, skip), ...keys].sort((a, b) => a.line - b.line || a.column - b.column);
|
|
17915
|
+
}
|
|
17916
|
+
},
|
|
17917
|
+
{
|
|
17918
|
+
id: "config-repos",
|
|
17919
|
+
title: "The key repo of the change log of Changesets, and the addresses in the config of Renovate.",
|
|
17920
|
+
reads: (file) => file === ".changeset/config.json" || /^(\.github\/)?renovate\.json5?$/.test(file),
|
|
17921
|
+
find: (text) => [...links(text), ...bareValues(text, ["repo"])]
|
|
17922
|
+
}
|
|
17923
|
+
];
|
|
17924
|
+
/**
|
|
17925
|
+
* This function gives each place of a file that names a moved repository by an old name. A name that the moves do not
|
|
17926
|
+
* know is not stale. The replacement keeps the form of the place: `owner/name` or `owner.github.io/name`.
|
|
17927
|
+
*/
|
|
17928
|
+
function stalePlaces(file, text, moves, kinds = PLACE_KINDS) {
|
|
17929
|
+
const found = [];
|
|
17930
|
+
for (const kind of kinds) {
|
|
17931
|
+
if (!kind.reads(file)) continue;
|
|
17932
|
+
for (const named of kind.find(text, file)) {
|
|
17933
|
+
const to = movedTo(named.repo, moves);
|
|
17934
|
+
if (to === void 0) continue;
|
|
17935
|
+
const [owner = "", name = ""] = to.split("/");
|
|
17936
|
+
const replacement = named.form === "pages" ? `${owner}.github.io/${name}` : to;
|
|
17937
|
+
found.push({
|
|
17938
|
+
...named,
|
|
17939
|
+
kind: kind.id,
|
|
17940
|
+
file,
|
|
17941
|
+
to,
|
|
17942
|
+
replacement
|
|
17943
|
+
});
|
|
17944
|
+
}
|
|
17945
|
+
}
|
|
17946
|
+
return found;
|
|
17947
|
+
}
|
|
17948
|
+
/**
|
|
17949
|
+
* This function gives the text with each stale place replaced. A place whose text is not at its line and column (an
|
|
17950
|
+
* earlier replacement moved it) stays as it is, and the next check finds it again.
|
|
17951
|
+
*/
|
|
17952
|
+
function replacePlaces(text, places) {
|
|
17953
|
+
const eol = text.includes("\r\n") ? "\r\n" : "\n";
|
|
17954
|
+
const lines = text.split(/\r?\n/);
|
|
17955
|
+
const order = [...places].sort((a, b) => a.line - b.line || b.column - a.column);
|
|
17956
|
+
for (const place of order) {
|
|
17957
|
+
const line = lines[place.line - 1];
|
|
17958
|
+
if (line === void 0 || line.slice(place.column, place.column + place.text.length) !== place.text) continue;
|
|
17959
|
+
lines[place.line - 1] = line.slice(0, place.column) + place.replacement + line.slice(place.column + place.text.length);
|
|
17960
|
+
}
|
|
17961
|
+
return lines.join(eol);
|
|
17962
|
+
}
|
|
17963
|
+
// src/rules/moved-repo-names.ts
|
|
17964
|
+
/**
|
|
17965
|
+
* The rule `moved-repo-names`: no package field, Markdown link, workflow key or config value names a repository by the
|
|
17966
|
+
* old name of a move. The kinds of place are in `places.ts`. The rule `moved-repo-calls` holds `uses:`.
|
|
17967
|
+
*/
|
|
17968
|
+
const movedRepoNames = {
|
|
17969
|
+
id: "moved-repo-names",
|
|
17970
|
+
title: "No package field, Markdown link, workflow key or config value names a repository by an old owner after the repository moved.",
|
|
17971
|
+
reason: "Some old names break at once: npm provenance compares the field repository of package.json with the repository of the run, and a GitHub Pages address of the old owner gives 404. The other old names go through a redirect only until a new repository takes the old name. On 2026-11-24, 11 repositories moved to metrograph-labs, and each place was found and changed by hand.",
|
|
17972
|
+
fix: "Write the new owner in each place. `conventions fix` writes each one. A change log is not read: it is a record of the past.",
|
|
17973
|
+
sources: [{
|
|
17974
|
+
repo: "private",
|
|
17975
|
+
rule: "repo-move-tool",
|
|
17976
|
+
doc: "a decision of 2026-11-25: one gate holds each place that names a moved repository"
|
|
17977
|
+
}],
|
|
17978
|
+
options: { moves: {
|
|
17979
|
+
type: "strings",
|
|
17980
|
+
default: [],
|
|
17981
|
+
description: "More moves for this repository, each in the form `owner/name=owner/name`, after the moves that the package knows."
|
|
17982
|
+
} },
|
|
17983
|
+
failsFrom: "2026-12-10",
|
|
17984
|
+
check(context, options) {
|
|
17985
|
+
const files = context.gitFiles();
|
|
17986
|
+
if (files === void 0) return { skipped: "the root is not in a git repository" };
|
|
17987
|
+
const extra = options["moves"].map((text) => ({
|
|
17988
|
+
text,
|
|
17989
|
+
move: parseMove(text)
|
|
17990
|
+
}));
|
|
17991
|
+
const bad = extra.find((each) => each.move === void 0);
|
|
17992
|
+
if (bad !== void 0) return { skipped: `the option moves has "${bad.text}", which is not in the form owner/name=owner/name` };
|
|
17993
|
+
const moves = [...MOVES, ...extra.map((each) => each.move)];
|
|
17994
|
+
const breaks = [];
|
|
17995
|
+
for (const file of files.filter((path) => PLACE_KINDS.some((kind) => kind.reads(path))).sort(byCode)) {
|
|
17996
|
+
let text;
|
|
17997
|
+
try {
|
|
17998
|
+
text = readFileSync(join(context.root, file), "utf8");
|
|
17999
|
+
} catch {
|
|
18000
|
+
continue;
|
|
18001
|
+
}
|
|
18002
|
+
const places = stalePlaces(file, text, moves);
|
|
18003
|
+
if (places.length === 0) continue;
|
|
18004
|
+
const after = replacePlaces(text, places);
|
|
18005
|
+
for (const place of places) breaks.push({
|
|
18006
|
+
file,
|
|
18007
|
+
line: place.line,
|
|
18008
|
+
message: `${file} names ${place.text} (${place.kind}), which moved to ${place.to}. Write ${place.replacement} in its place.`,
|
|
18009
|
+
...after === text ? {} : { edits: [{
|
|
18010
|
+
file,
|
|
18011
|
+
before: text,
|
|
18012
|
+
after
|
|
18013
|
+
}] }
|
|
18014
|
+
});
|
|
18015
|
+
}
|
|
18016
|
+
return breaks;
|
|
18017
|
+
}
|
|
18018
|
+
};
|
|
17803
18019
|
// src/rules/no-build-output.ts
|
|
17804
18020
|
/**
|
|
17805
18021
|
* The rule `no-build-output`: git does not keep build output.
|
|
@@ -23832,6 +24048,7 @@ const RULES = [
|
|
|
23832
24048
|
setupCue,
|
|
23833
24049
|
playwrightInstall,
|
|
23834
24050
|
movedRepoCalls,
|
|
24051
|
+
movedRepoNames,
|
|
23835
24052
|
scheduleLiterals,
|
|
23836
24053
|
homePackage,
|
|
23837
24054
|
homeModule,
|
|
@@ -24854,4 +25071,4 @@ function runHook(args, io) {
|
|
|
24854
25071
|
}
|
|
24855
25072
|
export { requiredScripts as $, LICENSE_TEXTS as $n, noBuildOutput as $t, scriptsOf as A, SHARED_ACTIONS as An, parseJsonc as Ar, packNoBuildinfo as At, TEMPLATE_CALLED as B, SUMMARY_GATES as Bn, parseRuleConfig as Br, privatePatterns as Bt, setVersions as C, npmNames as Cn, codePackages as Cr, pagesAfterRelease as Ct, trustPolicy as D, serviceRunMain as Dn, lineOf as Dr, pagesSite as Dt, TRAIN_SCOPES as E, runCalls as En, keyLine as Er, pagesCalls as Et, sourceMain as F, setupCue as Fn, runGitShow as Fr, PRIVATE_PATTERNS_VARIABLE as Ft, runnerPeak as G, SECURITY_SCAN_COMMIT as Gn, isAllowedHit as Gt, calledJobs as H, hasSummaryJob as Hn, PRIVATE_NAME_LIST as Ht, HOME_TIMEOUT_MS as I, SECURITY_FILE as In, showFiles as Ir, invalidPatternBreaks as It, evaluateExpression as J, securityCallers as Jn, lineNameHits as Jt, runsAtOnce as K, SECURITY_SCAN_INPUTS as Kn, isCommonUse as Kt, blockHash as L, isSecurityGate as Ln, specifiersOf as Lr, noLocalPaths as Lt, testsRequired as M, SHARED_WORKFLOWS as Mn, replaceLine as Mr, HOME_PATTERNS as Mt, isSourcePath as N, callsSharedCi as Nn, repositoryOfRemote as Nr, PRIVATE_NAMES_FILE_CONFIG as Nt, typedScripts as O, hasTests as On, matchesAny as Or, exportsRequire as Ot, pathsOf as P, sharedCi as Pn, runGit as Pr, PRIVATE_NAMES_FILE_VARIABLE as Pt, roadmapParses as Q, scheduleMinute as Qn, pathNameHit as Qt, githubFetch as R, securityGate as Rn, defaultOptions as Rr, privateNamesFile as Rt, namedVersions as S, npmDrift as Sn, cleanPath as Sr, siteCheckInCi as St, IGNORE_AFTER as T, SERVICE_PACKAGE as Tn, inFolder as Tr, PAGES_WORKFLOWS as Tt, eventClass as U, startsOnPullRequest as Un, PrivateNameListError as Ut, UNKNOWN_MATRIX_JOBS as V, addSummaryJob as Vn, privateTextBreaks as Vt, matrixPeak as W, summaryJobRule as Wn, firstNameMatch as Wt, mayRun as X, withOneJob as Xn, nameMatches as Xt, groupParts as Y, securityOneJob as Yn, mergePrivateNames as Yt, roadmapOfLine as Z, runnerBudget as Zn, parsePrivateNames as Zt, runPrePushArgs as _, MAP_RULE as _n, yamlFaults as _r, swallowsTests as _t, listRules as a, homeModule as an, ACTIONS_COMMIT as ar, reachOf as at, GITHUB_YAML as b, mapText as bn, DEPENDENCY_FIELDS as br, isPinned as bt, runCli as c, modulesOf as cn, prPathFilters as cr, UNSHIPPED_FILES as ct, HOOK_MARKER as d, messageOf as dn, summaryName as dr, unreleasedChangeRule as dt, REAL_COMPARE as en, authorOf as er, releaseFiles as et, NO_READ_LINE as f, repoOf as fn, gateAfterCancel as fr, playwrightInstall as ft, prePush as g, HOMES as gn, readWorkflow as gr, startsTests as gt, parsePrePushArgs as h, HOME_EXPORTS as hn, readAction as hr, parseAdvisory as ht, formatResult as i, apiReportScript as in, repositoryIsPublic as ir, publishedMinorRule as it, typedFiles as j, SHARED_CI as jn, readJsonc as jr, DEFAULT_ALLOWED as jt, configsOfScript as k, tsconfigTest as kn, parseCatFileBatch as kr, publishTextSafe as kt, runFix as l, declaredName as ln, skippableJobs as lr, npmLookup as lt, installHook as m, signaturesOf as mn, parseWorkflow as mr, jobFails as mt, annotations as n, mainCheck as nn, licenseFileOf as nr, minorOf as nt, readConfig as o, moduleMessage as on, convertGate as or, NPM_REGISTRY as ot, PRE_PUSH_HOOK as p, reposOf as pn, MATRIX_EXPAND_MAX as pr, hiddenFailures as pt, workflowPeaks as q, SECURITY_TIMEOUT_MINUTES as qn, lineNameHit as qt, createContext as r, coverageProvider as rn, mitText as rr, publishedMinor as rt, runChecks as s, moduleUses as sn, gateTrigger as sr, SHIPPED_FIELDS as st, USAGE as t, hasImportMetaMain as tn, licenseFile as tr, lockedVersions as tt, summaryMarkdown as u, homePackage as un, summaryJob as ur, unreleasedChange as ut, RULES as v, findHomes as vn, STRICT_OPTIONS as vr, pipeFails as vt, versionTitle as w, readOverlay as wn, hasFile as wr, pushMainOnly as wt, workflowParses as x, mergeHomes as xn, RULE_WARN_DAYS as xr, pinnedGitDeps as xt, workspaceProtocol as y, mapMarkdown as yn, cuePreset as yr, isGitSpecifier as yt, sharedDocsRule as z, securityWorkflow as zn, parseConfig as zr, privateNamesFiles as zt };
|
|
24856
25073
|
|
|
24857
|
-
//# sourceMappingURL=run-
|
|
25074
|
+
//# sourceMappingURL=run-Ck7ahUNV.js.map
|