@mark1russell7/conventions 0.49.1 → 0.49.2

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
@@ -323,4 +323,10 @@ The package also exports the functions of the tool:
323
323
  - `lineNameHits(list, line, place)` and `nameMatches(line, names)` give each name of a line, one hit for each name. A scan that counts the names uses them. The gate takes the first hit.
324
324
  - `privateNamesFiles(env, git)`, `privateNamesFile(env, git)`, `privatePatterns(env)` and `invalidPatternBreaks(patterns)` read the settings and the patterns. `privateNamesFiles` gives each path, and `privateNamesFile` gives one.
325
325
  - `mergePrivateNames(lists)` merges the lists in order. It throws a `PrivateNameListError` when two lists have the same id.
326
+ - `readWorkflow(file, text)` and `readAction(file, text)` read a workflow or a composite action by the indent of its lines. The site of the template shows their result.
327
+ - `parseWorkflow(file, text)` reads a workflow with the YAML parser. It gives the triggers, the permissions, the jobs and their steps, and the secrets that each job and each step read. A gate uses this reader.
328
+ - `permissions` is `null` when the key is not there. Else it is a text (for example `read-all`) or a record (for example `{}`).
329
+ - A secret is `secrets.NAME` or `secrets['NAME']` in an expression, or in the value of a key `if`. The name `*` is the whole context, and `inherit` is `secrets: inherit`.
330
+ - The reader does not throw. A file that does not parse gives its `faults` and no job, because GitHub starts no job of it. Two documents and a version of YAML that is not 1.2 are faults too.
331
+ - `yamlFaults(text)` gives the faults of the parser alone. The rule `workflow-parses` uses it.
326
332
  - `prePush(options, io)` is the command `pre-push`. With the option `base`, it is the check of a change in CI. `parsePrePushArgs(args)` reads its arguments, and `runPrePushArgs(args, io)` starts it in the git root. The bundle `private-names.mjs` of the shared actions uses these two functions. `installHook(options, io)` is the command `hook install`. `PRE_PUSH_HOOK` is the text of the hook.
package/build/cli.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { c as runCli } from "./run-C0inJi_2.js";
2
+ import { c as runCli } from "./run-DHR-sa4C.js";
3
3
  import { readFileSync } from "node:fs";
4
4
  // src/cli.ts
5
5
  try {
package/build/index.d.ts CHANGED
@@ -775,8 +775,52 @@ export declare function namedVersions(title: string): string[];
775
775
  /** This function gives the versions that the change from `from` to `to` sets: each `package.json` whose version changes. */
776
776
  export declare function setVersions(context: RuleContext, from: string, to: string): string[] | undefined;
777
777
  export declare const versionTitle: Rule;
778
- /** A file that GitHub reads as YAML: a workflow, or the file `action.yml` of an action of the repository. */
779
- export declare const GITHUB_YAML: RegExp;
778
+ interface WorkflowInput {
779
+ readonly name: string;
780
+ readonly type: string;
781
+ readonly description: string;
782
+ /** The default value, as YAML text. An empty text is no default. */
783
+ readonly default: string;
784
+ readonly required: boolean;
785
+ }
786
+ /** A step of a job. */
787
+ interface WorkflowStep {
788
+ /** The name of the step, or else its action, its id or its first command. */
789
+ readonly label: string;
790
+ /** The condition of the step (`if`), or an empty text. */
791
+ readonly if: string;
792
+ /** The action of the step (`uses`), with no pin, or an empty text. */
793
+ readonly uses: string;
794
+ }
795
+ /** A job of a workflow. */
796
+ interface WorkflowJob {
797
+ readonly id: string;
798
+ readonly if: string;
799
+ readonly needs: readonly string[];
800
+ readonly steps: readonly WorkflowStep[];
801
+ }
802
+ /** A shared workflow of the repository, or a composite action in the same form. */
803
+ interface Workflow {
804
+ /** The file name, for example `reusable-pages.yml`. */
805
+ readonly file: string;
806
+ /** The value `action` marks a composite action of {@link readAction}. A workflow has no value here. */
807
+ readonly kind?: "action";
808
+ /** The value of `name`. */
809
+ readonly name: string;
810
+ /** The first lines of the comment at the top of the file. */
811
+ readonly summary: string;
812
+ readonly inputs: readonly WorkflowInput[];
813
+ readonly jobs: readonly WorkflowJob[];
814
+ }
815
+ /** This function reads a shared workflow file. The file name goes into the result. */
816
+ export declare function readWorkflow(file: string, text: string): Workflow;
817
+ /**
818
+ * This function reads a composite action (`action.yml`) in the form of a workflow. The steps of `runs` are the steps of
819
+ * one job `steps`. An input of a composite action has no type, so an input with the default `true` or `false` gets the
820
+ * type `boolean`. The value of such an input is still a string for the runner. The description of the action is the
821
+ * summary. An action that is not composite gives no job.
822
+ */
823
+ export declare function readAction(file: string, text: string): Workflow;
780
824
  /** A fault of the YAML of a file: its line and column (from 1), and the first line of the message of the parser. */
781
825
  interface YamlFault {
782
826
  readonly line: number;
@@ -785,6 +829,65 @@ interface YamlFault {
785
829
  }
786
830
  /** This function gives the faults of a YAML text. A text with no fault gives an empty list. */
787
831
  export declare function yamlFaults(text: string): YamlFault[];
832
+ /**
833
+ * The permissions of a workflow or a job (`permissions`).
834
+ *
835
+ * - `null`: the key is not there. A job then gets the permissions of its workflow, and a workflow gets the default of the
836
+ * repository.
837
+ * - A text: `read-all`, `write-all`, or another value as JSON text (`permissions:` with no value gives `null` as text).
838
+ * - A record: the level of each scope, for example `{ contents: "read" }`. The record `{}` gives no scope to the token.
839
+ */
840
+ type WorkflowPermissions = string | Readonly<Record<string, string>> | null;
841
+ /** A step of a job, as the YAML parser reads it. */
842
+ interface ParsedStep {
843
+ /** The name of the step, or else its action, its first command or its id, as in {@link WorkflowStep}. */
844
+ readonly label: string;
845
+ /** The condition of the step (`if`), or an empty text. */
846
+ readonly if: string;
847
+ /** The action of the step (`uses`), with no pin, or an empty text. */
848
+ readonly uses: string;
849
+ /** The secrets that the expressions of the step read. The name `*` is the whole context, as in `toJSON(secrets)`. */
850
+ readonly secrets: readonly string[];
851
+ }
852
+ /** A job of a workflow, as the YAML parser reads it. */
853
+ interface ParsedJob {
854
+ readonly id: string;
855
+ /** The condition of the job (`if`), or an empty text. */
856
+ readonly if: string;
857
+ readonly needs: readonly string[];
858
+ /** The workflow that the job calls (`uses`), with no pin, or an empty text. */
859
+ readonly uses: string;
860
+ readonly permissions: WorkflowPermissions;
861
+ /** The secrets that the job and its steps read. The name `inherit` is `secrets: inherit`, and `*` is the whole context. */
862
+ readonly secrets: readonly string[];
863
+ readonly steps: readonly ParsedStep[];
864
+ }
865
+ /** The facts of a workflow file from the YAML parser. */
866
+ interface ParsedWorkflow {
867
+ /** The file name, for example `ci.yml`. */
868
+ readonly file: string;
869
+ /** The value of `name`, or the file name. */
870
+ readonly name: string;
871
+ /** The events of `on`, in the order of the file. */
872
+ readonly triggers: readonly string[];
873
+ readonly permissions: WorkflowPermissions;
874
+ /** The secrets that each part of the file reads, with each job. */
875
+ readonly secrets: readonly string[];
876
+ readonly jobs: readonly ParsedJob[];
877
+ /**
878
+ * The faults of the file. GitHub starts no job of a file that does not parse, so a file with a fault gives no trigger
879
+ * and no job. A gate fails on each fault. The reader also refuses two documents in one file. It refuses a version of
880
+ * YAML that is not 1.2, because YAML 1.1 reads the key `on` as `true`.
881
+ */
882
+ readonly faults: readonly YamlFault[];
883
+ }
884
+ /**
885
+ * This function reads a workflow file with the YAML parser. The file name goes into the result. It does not throw: each
886
+ * problem is a fault of the result. A file with a fault gives no trigger and no job.
887
+ */
888
+ export declare function parseWorkflow(file: string, text: string): ParsedWorkflow;
889
+ /** A file that GitHub reads as YAML: a workflow, or the file `action.yml` of an action of the repository. */
890
+ export declare const GITHUB_YAML: RegExp;
788
891
  export declare const workflowParses: Rule;
789
892
  export declare const workspaceProtocol: Rule;
790
893
  /** Each rule of the check. */
@@ -965,52 +1068,6 @@ export declare const HOME_EXPORTS: Readonly<Record<string, {
965
1068
  readonly version: string;
966
1069
  readonly names: readonly string[];
967
1070
  }>>;
968
- interface WorkflowInput {
969
- readonly name: string;
970
- readonly type: string;
971
- readonly description: string;
972
- /** The default value, as YAML text. An empty text is no default. */
973
- readonly default: string;
974
- readonly required: boolean;
975
- }
976
- /** A step of a job. */
977
- interface WorkflowStep {
978
- /** The name of the step, or else its action, its id or its first command. */
979
- readonly label: string;
980
- /** The condition of the step (`if`), or an empty text. */
981
- readonly if: string;
982
- /** The action of the step (`uses`), with no pin, or an empty text. */
983
- readonly uses: string;
984
- }
985
- /** A job of a workflow. */
986
- interface WorkflowJob {
987
- readonly id: string;
988
- readonly if: string;
989
- readonly needs: readonly string[];
990
- readonly steps: readonly WorkflowStep[];
991
- }
992
- /** A shared workflow of the repository, or a composite action in the same form. */
993
- interface Workflow {
994
- /** The file name, for example `reusable-pages.yml`. */
995
- readonly file: string;
996
- /** The value `action` marks a composite action of {@link readAction}. A workflow has no value here. */
997
- readonly kind?: "action";
998
- /** The value of `name`. */
999
- readonly name: string;
1000
- /** The first lines of the comment at the top of the file. */
1001
- readonly summary: string;
1002
- readonly inputs: readonly WorkflowInput[];
1003
- readonly jobs: readonly WorkflowJob[];
1004
- }
1005
- /** This function reads a shared workflow file. The file name goes into the result. */
1006
- export declare function readWorkflow(file: string, text: string): Workflow;
1007
- /**
1008
- * This function reads a composite action (`action.yml`) in the form of a workflow. The steps of `runs` are the steps of
1009
- * one job `steps`. An input of a composite action has no type, so an input with the default `true` or `false` gets the
1010
- * type `boolean`. The value of such an input is still a string for the runner. The description of the action is the
1011
- * summary. An action that is not composite gives no job.
1012
- */
1013
- export declare function readAction(file: string, text: string): Workflow;
1014
1071
  /**
1015
1072
  * The rule for the git tag and the text of a GitHub release of a package version.
1016
1073
  *
@@ -1036,5 +1093,5 @@ export declare function npmUrl(name: string, version: string): string;
1036
1093
  * link to npm. The Releases page of `site-pages` reads each list item as a change.
1037
1094
  */
1038
1095
  export declare function releaseNotes(name: string, version: string, changelog: string | undefined): string;
1039
- export { type Advisory, type AllowedHit, type AuditSource, type Break, type CheckOptions, type CheckResult, type CliIo, type ConventionsConfig, type Edit, type FixResult, type HiddenFailure, type Home, type HomeAnswer, type HomeFetch, type HomeModule, type HomeState, type HookOptions, type LinePlace, type Manifest, type Minor, type ModuleUse, type NameHit, type NameRule, type NpmDrift, type NpmDriftKind, type NpmPresence, OWNERS, type OptionSpec, type OptionValue, type Options, type Owner, type PackageInfo, type PagesCall, type PathFilter, type PrePushArgs, type PrePushOptions, type PrivateNameList, type PrivatePattern, type PrivateSources, type RegistryAnswer, type RegistryLookup, type Rule, type RuleConfig, type RuleContext, type RuleOutcome, type RuleResult, type SecurityCaller, type TextBreakOptions, type Workflow, type WorkflowInput, type WorkflowJob, type WorkflowStep, type YamlFault, globFolders, globToRegExp, isWorkspaceFolder, ownerOf, ownersOf, packageFolders, parseWorkspaceGlobs, sharedNames, workspaceGlobs };
1096
+ export { type Advisory, type AllowedHit, type AuditSource, type Break, type CheckOptions, type CheckResult, type CliIo, type ConventionsConfig, type Edit, type FixResult, type HiddenFailure, type Home, type HomeAnswer, type HomeFetch, type HomeModule, type HomeState, type HookOptions, type LinePlace, type Manifest, type Minor, type ModuleUse, type NameHit, type NameRule, type NpmDrift, type NpmDriftKind, type NpmPresence, OWNERS, type OptionSpec, type OptionValue, type Options, type Owner, type PackageInfo, type PagesCall, type ParsedJob, type ParsedStep, type ParsedWorkflow, type PathFilter, type PrePushArgs, type PrePushOptions, type PrivateNameList, type PrivatePattern, type PrivateSources, type RegistryAnswer, type RegistryLookup, type Rule, type RuleConfig, type RuleContext, type RuleOutcome, type RuleResult, type SecurityCaller, type TextBreakOptions, type Workflow, type WorkflowInput, type WorkflowJob, type WorkflowPermissions, type WorkflowStep, type YamlFault, globFolders, globToRegExp, isWorkspaceFolder, ownerOf, ownersOf, packageFolders, parseWorkspaceGlobs, sharedNames, workspaceGlobs };
1040
1097
  //# 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/rules/security-one-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/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/home-exports.ts","../src/workflow.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;;;KAIM,uBAAuB;WAAqB;;;qBAG3C;;UAGI;;WAEN;;WAEA;;WAEA;;WAEA;;WAEA,kBAAkB;;WAElB,SAAS,SAAS,eAAe;;;;;WAKjC;;;;;;;WAOA;EACT,MAAM,SAAS,aAAa,SAAS,UAAU;;;;;;EAM/C,QAAQ,SAAS,aAAa,SAAS;;;qBAO5B;;wBAGG,aAAa,UAAU,UAAU;;wBAOjC,OAAO,cAAc,gBAAgB;;wBAOrC,QAAQ,cAAc,eAAe;;qBAMxC,WAAY,gBAAgB;;qBAG5B,YAAa;;wBAGV,WAAW,cAAc;;;;;;wBASzB,WAAW;;wBA2BX,UAAU;;wB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EA;WACA,KAAK,SAAS;;WAEd;;WAEA,MAAM;;WAEN,YAAY;;;;;;;;;;;;wBA0MP,QAAQ,SAAS,gBAAgB,IAAI,KAAK;;UA6GzC;;WAEN;WACA;WACA;WACA;;;;;;wBAOK,iBAAiB,0BAA0B;;;;;wBAuB3C,eAAe,MAAM,aAAa,IAAI,KAAK;;qBAS9C;;;;;;;;qBAgCA;;UAgBI;;WAEN;WACA,KAAK,SAAS;;WAEd,MAAM;;;;;;;wBAQD,YAAY,SAAS,aAAa,IAAI,KAAK;;qBCnd9C,cAAc,SAAS;WAA0B;WAA0B;;UCuIvE;WACN;WACA;WACA;;WAEA;WACA;;;UAIM;;WAEN;;WAEA;;WAEA;;;UAIM;WACN;WACA;WACA;WACA,gBAAgB;;;UAIV;;WAEN;;WAEA;;WAEA;;WAEA;WACA,iBAAiB;WACjB,eAAe;;;wBAgGV,aAAa,cAAc,eAAe;;;;;;;wBAmD1C,WAAW,cAAc,eAAe;;;;;;;;qBC1T3C;;wBAGG,QAAQ,cAAc,iBAAiB;;;;;;;;wBAavC,iBAAiB,kBAAkB,iBAAiB;;wBA+BpD,OAAO,cAAc;;;;;wBAQrB,aAAa,cAAc,iBAAiB"}
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/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/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/workflow.ts","../src/rules/workflow-parses.ts","../src/rules/workspace-protocol.ts","../src/rules/index.ts","../src/run.ts","../src/pre-push.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;;;KAIM,uBAAuB;WAAqB;;;qBAG3C;;UAGI;;WAEN;;WAEA;;WAEA;;WAEA;;WAEA,kBAAkB;;WAElB,SAAS,SAAS,eAAe;;;;;WAKjC;;;;;;;WAOA;EACT,MAAM,SAAS,aAAa,SAAS,UAAU;;;;;;EAM/C,QAAQ,SAAS,aAAa,SAAS;;;qBAO5B;;wBAGG,aAAa,UAAU,UAAU;;wBAOjC,OAAO,cAAc,gBAAgB;;wBAOrC,QAAQ,cAAc,eAAe;;qBAMxC,WAAY,gBAAgB;;qBAG5B,YAAa;;wBAGV,WAAW,cAAc;;;;;;wBASzB,WAAW;;wBA2BX,UAAU;;w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jB;;;wBAaK,WAAW,cAAc,iBAAgB,SAAiB;;wBAO1D,cAAc,cAAc,QAAQ,mBAAmB,UAAS,KAAK,0CAA+C;;wBAyBpH,UAAU,SAAS,eAAe;;UAkEjC;;WAEN;;WAEA;;WAEA,QAAQ;;;;;;;wBAWH,OAAO,SAAS,eAAe;;wBAyC/B,aAAa,QAAQ;;wBA4BrB,gBAAgB,QAAQ;;;;;;wBA2BxB,YAAY,QAAQ;;wBAapB,UAAU,QAAQ,+BAA+B,iBAAgB;;UAkBhE;WACN;WACA,KAAK,SAAS;WACd,SAAS;WACT,SAAS;;WAET;;;qBAIE;;wBAwEG,OAAO,yBAAyB,IAAI;;qBCjXvC;;UAGI;;WAEN;;;;;WAKA;;;;;WAKA;;;;;WAKA;;WAEA;WACA,KAAK,SAAS;;WAEd;;WAEA,MAAM;;WAEN,YAAY;;;;;;;;;;;;wBA0MP,QAAQ,SAAS,gBAAgB,IAAI,KAAK;;UA6GzC;;WAEN;WACA;WACA;WACA;;;;;;wBAOK,iBAAiB,0BAA0B;;;;;wBAuB3C,eAAe,MAAM,aAAa,IAAI,KAAK;;qBAS9C;;;;;;;;qBAgCA;;UAgBI;;WAEN;WACA,KAAK,SAAS;;WAEd,MAAM;;;;;;;wBAQD,YAAY,SAAS,aAAa,IAAI,KAAK;;qBCnd9C,cAAc,SAAS;WAA0B;WAA0B;;;;;;;;;qBCM3E;;wBAGG,QAAQ,cAAc,iBAAiB;;;;;;;;wBAavC,iBAAiB,kBAAkB,iBAAiB;;wBA+BpD,OAAO,cAAc;;;;;wBAQrB,aAAa,cAAc,iBAAiB"}
package/build/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as npmLookup, $n as codePackages, $t as licenseFile, A as configsOfScript, An as SHARED_WORKFLOWS, At as privateNamesFile, B as sharedDocsRule, Bn as ACTIONS_COMMIT, Bt as lineNameHits, C as namedVersions, Cn as SERVICE_PACKAGE, Ct as DEFAULT_ALLOWED, D as TRAIN_SCOPES, Dn as tsconfigTest, Dt as PRIVATE_PATTERNS_VARIABLE, E as IGNORE_AFTER, En as hasTests, Et as PRIVATE_NAMES_FILE_VARIABLE, F as pathsOf, Fn as SECURITY_SCAN_INPUTS, Ft as PrivateNameListError, G as lockedVersions, Gn as gateAfterCancel, Gt as noBuildOutput, H as roadmapParses, Hn as gateTrigger, Ht as nameMatches, I as sourceMain, In as SECURITY_TIMEOUT_MINUTES, It as firstNameMatch, J as publishedMinorRule, Jn as STRICT_OPTIONS, Jt as mainCheck, K as minorOf, Kn as readAction, Kt as REAL_COMPARE, L as HOME_TIMEOUT_MS, Ln as securityCallers, Lt as isAllowedHit, M as typedFiles, Mn as sharedCi, Mt as privatePatterns, N as testsRequired, Nn as setupCue, Nt as privateTextBreaks, O as trustPolicy, On as SHARED_ACTIONS, Ot as invalidPatternBreaks, P as isSourcePath, Pn as SECURITY_SCAN_COMMIT, Pt as PRIVATE_NAME_LIST, Q as UNSHIPPED_FILES, Qn as cleanPath, Qt as authorOf, R as blockHash, Rn as securityOneJob, Rt as isCommonUse, S as yamlFaults, Sn as readOverlay, St as packNoBuildinfo, T as versionTitle, Tn as serviceRunMain, Tt as PRIVATE_NAMES_FILE_CONFIG, U as requiredScripts, Un as prPathFilters, Ut as parsePrivateNames, V as roadmapOfLine, Vn as convertGate, Vt as mergePrivateNames, W as releaseFiles, Wn as summaryName, Wt as pathNameHit, X as NPM_REGISTRY, Xn as DEPENDENCY_FIELDS, Xt as apiReportScript, Y as reachOf, Yn as cuePreset, Yt as coverageProvider, Z as SHIPPED_FIELDS, Zn as RULE_WARN_DAYS, Zt as LICENSE_TEXTS, _ as runPrePushArgs, _n as mapMarkdown, _t as PAGES_WORKFLOWS, a as listRules, an as moduleUses, ar as parseJsonc, at as parseAdvisory, b as GITHUB_YAML, bn as npmDrift, bt as exportsRequire, c as runCli, cn as homePackage, cr as repositoryOfRemote, ct as pipeFails, d as HOOK_MARKER, dn as reposOf, dr as defaultOptions, dt as pinnedGitDeps, en as licenseFileOf, er as hasFile, et as unreleasedChange, f as NO_READ_LINE, fn as signaturesOf, fr as parseConfig, ft as siteCheckInCi, g as prePush, gn as findHomes, gt as pushMainOnly, h as parsePrePushArgs, hn as MAP_RULE, ht as scheduleMinute, i as formatResult, in as moduleMessage, ir as matchesAny, it as jobFails, j as scriptsOf, jn as callsSharedCi, jt as privateNamesFiles, k as typedScripts, kn as SHARED_CI, kt as noLocalPaths, l as runFix, ln as messageOf, lr as runGit, lt as isGitSpecifier, m as installHook, mn as HOMES, mt as runnerBudget, n as annotations, nn as repositoryIsPublic, nr as keyLine, nt as playwrightInstall, o as readConfig, on as modulesOf, or as readJsonc, ot as startsTests, p as PRE_PUSH_HOOK, pn as HOME_EXPORTS, pr as parseRuleConfig, pt as pagesAfterRelease, q as publishedMinor, qn as readWorkflow, qt as hasImportMetaMain, r as createContext, rn as homeModule, rr as lineOf, rt as hiddenFailures, s as runChecks, sn as declaredName, sr as replaceLine, st as swallowsTests, t as USAGE, tn as mitText, tr as inFolder, tt as unreleasedChangeRule, u as summaryMarkdown, un as repoOf, ur as specifiersOf, ut as isPinned, v as RULES, vn as mapText, vt as pagesCalls, w as setVersions, wn as runCalls, wt as HOME_PATTERNS, x as workflowParses, xn as npmNames, xt as publishTextSafe, y as workspaceProtocol, yn as mergeHomes, yt as pagesSite, z as githubFetch, zn as withOneJob, zt as lineNameHit } from "./run-C0inJi_2.js";
1
+ import { $ as unreleasedChange, $n as cleanPath, $t as licenseFileOf, A as scriptsOf, An as callsSharedCi, At as privateNamesFiles, B as roadmapOfLine, Bn as convertGate, Bt as mergePrivateNames, C as setVersions, Cn as runCalls, Ct as HOME_PATTERNS, D as trustPolicy, Dn as SHARED_ACTIONS, Dt as invalidPatternBreaks, E as TRAIN_SCOPES, En as tsconfigTest, Et as PRIVATE_PATTERNS_VARIABLE, F as sourceMain, Fn as SECURITY_TIMEOUT_MINUTES, Ft as firstNameMatch, G as minorOf, Gn as parseWorkflow, Gt as REAL_COMPARE, H as requiredScripts, Hn as prPathFilters, Ht as parsePrivateNames, I as HOME_TIMEOUT_MS, In as securityCallers, It as isAllowedHit, J as reachOf, Jn as yamlFaults, Jt as coverageProvider, K as publishedMinor, Kn as readAction, Kt as hasImportMetaMain, L as blockHash, Ln as securityOneJob, Lt as isCommonUse, M as testsRequired, Mn as setupCue, Mt as privateTextBreaks, N as isSourcePath, Nn as SECURITY_SCAN_COMMIT, Nt as PRIVATE_NAME_LIST, O as typedScripts, On as SHARED_CI, Ot as noLocalPaths, P as pathsOf, Pn as SECURITY_SCAN_INPUTS, Pt as PrivateNameListError, Q as npmLookup, Qn as RULE_WARN_DAYS, Qt as licenseFile, R as githubFetch, Rn as withOneJob, Rt as lineNameHit, S as namedVersions, Sn as SERVICE_PACKAGE, St as DEFAULT_ALLOWED, T as IGNORE_AFTER, Tn as hasTests, Tt as PRIVATE_NAMES_FILE_VARIABLE, U as releaseFiles, Un as summaryName, Ut as pathNameHit, V as roadmapParses, Vn as gateTrigger, Vt as nameMatches, W as lockedVersions, Wn as gateAfterCancel, Wt as noBuildOutput, X as SHIPPED_FIELDS, Xn as cuePreset, Xt as LICENSE_TEXTS, Y as NPM_REGISTRY, Yn as STRICT_OPTIONS, Yt as apiReportScript, Z as UNSHIPPED_FILES, Zn as DEPENDENCY_FIELDS, Zt as authorOf, _ as runPrePushArgs, _n as mapText, _t as pagesCalls, a as listRules, an as modulesOf, ar as matchesAny, at as startsTests, b as GITHUB_YAML, bn as npmNames, bt as publishTextSafe, c as runCli, cn as messageOf, cr as replaceLine, ct as isGitSpecifier, d as HOOK_MARKER, dn as signaturesOf, dr as specifiersOf, dt as siteCheckInCi, en as mitText, er as codePackages, et as unreleasedChangeRule, f as NO_READ_LINE, fn as HOME_EXPORTS, fr as defaultOptions, ft as pagesAfterRelease, g as prePush, gn as mapMarkdown, gt as PAGES_WORKFLOWS, h as parsePrePushArgs, hn as findHomes, ht as pushMainOnly, i as formatResult, in as moduleUses, ir as lineOf, it as parseAdvisory, j as typedFiles, jn as sharedCi, jt as privatePatterns, k as configsOfScript, kn as SHARED_WORKFLOWS, kt as privateNamesFile, l as runFix, ln as repoOf, lr as repositoryOfRemote, lt as isPinned, m as installHook, mn as MAP_RULE, mr as parseRuleConfig, mt as scheduleMinute, n as annotations, nn as homeModule, nr as inFolder, nt as hiddenFailures, o as readConfig, on as declaredName, or as parseJsonc, ot as swallowsTests, p as PRE_PUSH_HOOK, pn as HOMES, pr as parseConfig, pt as runnerBudget, q as publishedMinorRule, qn as readWorkflow, qt as mainCheck, r as createContext, rn as moduleMessage, rr as keyLine, rt as jobFails, s as runChecks, sn as homePackage, sr as readJsonc, st as pipeFails, t as USAGE, tn as repositoryIsPublic, tr as hasFile, tt as playwrightInstall, u as summaryMarkdown, un as reposOf, ur as runGit, ut as pinnedGitDeps, v as RULES, vn as mergeHomes, vt as pagesSite, w as versionTitle, wn as serviceRunMain, wt as PRIVATE_NAMES_FILE_CONFIG, x as workflowParses, xn as readOverlay, xt as packNoBuildinfo, y as workspaceProtocol, yn as npmDrift, yt as exportsRequire, z as sharedDocsRule, zn as ACTIONS_COMMIT, zt as lineNameHits } from "./run-DHR-sa4C.js";
2
2
  import { OWNERS, ownerOf, ownersOf, 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
@@ -66,6 +66,6 @@ function releaseNotes(name, version, changelog) {
66
66
  if (section.length <= 1e5) return section;
67
67
  return `${section.slice(0, MAX_NOTES)}\n\n(The CHANGELOG.md of \`${name}\` has the full text.)`;
68
68
  }
69
- export { ACTIONS_COMMIT, DEFAULT_ALLOWED, DEPENDENCY_FIELDS, GITHUB_YAML, HOMES, HOME_EXPORTS, HOME_PATTERNS, HOME_TIMEOUT_MS, HOOK_MARKER, IGNORE_AFTER, LICENSE_TEXTS, MAP_RULE, MAX_NOTES, NO_READ_LINE, NPM_REGISTRY, OWNERS, PAGES_WORKFLOWS, PRE_PUSH_HOOK, PRIVATE_NAMES_FILE_CONFIG, PRIVATE_NAMES_FILE_VARIABLE, PRIVATE_NAME_LIST, PRIVATE_PATTERNS_VARIABLE, PrivateNameListError, REAL_COMPARE, RULES, RULE_WARN_DAYS, SECURITY_SCAN_COMMIT, SECURITY_SCAN_INPUTS, SECURITY_TIMEOUT_MINUTES, SERVICE_PACKAGE, SHARED_ACTIONS, SHARED_CI, SHARED_WORKFLOWS, SHIPPED_FIELDS, STRICT_OPTIONS, TRAIN_SCOPES, UNSHIPPED_FILES, USAGE, annotations, apiReportScript, authorOf, blockHash, callsSharedCi, changelogSection, cleanPath, codePackages, configsOfScript, convertGate, coverageProvider, createContext, cuePreset, declaredName, defaultOptions, exportsRequire, findHomes, firstNameMatch, formatResult, gateAfterCancel, gateTrigger, githubFetch, globFolders, globToRegExp, hasFile, hasImportMetaMain, hasTests, hiddenFailures, homeModule, homePackage, inFolder, installHook, invalidPatternBreaks, isAllowedHit, isCommonUse, isGitSpecifier, isPinned, isSourcePath, isWorkspaceFolder, jobFails, keyLine, licenseFile, licenseFileOf, lineNameHit, lineNameHits, lineOf, listRules, lockedVersions, mainCheck, mapMarkdown, mapText, matchesAny, mergeHomes, mergePrivateNames, messageOf, minorOf, mitText, moduleMessage, moduleUses, modulesOf, nameMatches, namedVersions, noBuildOutput, noLocalPaths, npmDrift, npmLookup, npmNames, npmUrl, ownerOf, ownersOf, packNoBuildinfo, packageFolders, pagesAfterRelease, pagesCalls, pagesSite, parseAdvisory, parseConfig, parseJsonc, parsePrePushArgs, parsePrivateNames, parseRuleConfig, parseWorkspaceGlobs, pathNameHit, pathsOf, pinnedGitDeps, pipeFails, playwrightInstall, prPathFilters, prePush, privateNamesFile, privateNamesFiles, privatePatterns, privateTextBreaks, publishTextSafe, publishedMinor, publishedMinorRule, pushMainOnly, reachOf, readAction, readConfig, readJsonc, readOverlay, readWorkflow, releaseFiles, releaseNotes, replaceLine, repoOf, reposOf, repositoryIsPublic, repositoryOfRemote, requiredScripts, roadmapOfLine, roadmapParses, runCalls, runChecks, runCli, runFix, runGit, runPrePushArgs, runnerBudget, scheduleMinute, scriptsOf, securityCallers, securityOneJob, serviceRunMain, setVersions, setupCue, sharedCi, sharedDocsRule, sharedNames, signaturesOf, siteCheckInCi, sourceMain, specifiersOf, startsTests, summaryMarkdown, summaryName, swallowsTests, tagName, testsRequired, trustPolicy, tsconfigTest, typedFiles, typedScripts, unreleasedChange, unreleasedChangeRule, versionTitle, withOneJob, workflowParses, workspaceGlobs, workspaceProtocol, yamlFaults };
69
+ export { ACTIONS_COMMIT, DEFAULT_ALLOWED, DEPENDENCY_FIELDS, GITHUB_YAML, HOMES, HOME_EXPORTS, HOME_PATTERNS, HOME_TIMEOUT_MS, HOOK_MARKER, IGNORE_AFTER, LICENSE_TEXTS, MAP_RULE, MAX_NOTES, NO_READ_LINE, NPM_REGISTRY, OWNERS, PAGES_WORKFLOWS, PRE_PUSH_HOOK, PRIVATE_NAMES_FILE_CONFIG, PRIVATE_NAMES_FILE_VARIABLE, PRIVATE_NAME_LIST, PRIVATE_PATTERNS_VARIABLE, PrivateNameListError, REAL_COMPARE, RULES, RULE_WARN_DAYS, SECURITY_SCAN_COMMIT, SECURITY_SCAN_INPUTS, SECURITY_TIMEOUT_MINUTES, SERVICE_PACKAGE, SHARED_ACTIONS, SHARED_CI, SHARED_WORKFLOWS, SHIPPED_FIELDS, STRICT_OPTIONS, TRAIN_SCOPES, UNSHIPPED_FILES, USAGE, annotations, apiReportScript, authorOf, blockHash, callsSharedCi, changelogSection, cleanPath, codePackages, configsOfScript, convertGate, coverageProvider, createContext, cuePreset, declaredName, defaultOptions, exportsRequire, findHomes, firstNameMatch, formatResult, gateAfterCancel, gateTrigger, githubFetch, globFolders, globToRegExp, hasFile, hasImportMetaMain, hasTests, hiddenFailures, homeModule, homePackage, inFolder, installHook, invalidPatternBreaks, isAllowedHit, isCommonUse, isGitSpecifier, isPinned, isSourcePath, isWorkspaceFolder, jobFails, keyLine, licenseFile, licenseFileOf, lineNameHit, lineNameHits, lineOf, listRules, lockedVersions, mainCheck, mapMarkdown, mapText, matchesAny, mergeHomes, mergePrivateNames, messageOf, minorOf, mitText, moduleMessage, moduleUses, modulesOf, nameMatches, namedVersions, noBuildOutput, noLocalPaths, npmDrift, npmLookup, npmNames, npmUrl, ownerOf, ownersOf, packNoBuildinfo, packageFolders, pagesAfterRelease, pagesCalls, pagesSite, parseAdvisory, parseConfig, parseJsonc, parsePrePushArgs, parsePrivateNames, parseRuleConfig, parseWorkflow, parseWorkspaceGlobs, pathNameHit, pathsOf, pinnedGitDeps, pipeFails, playwrightInstall, prPathFilters, prePush, privateNamesFile, privateNamesFiles, privatePatterns, privateTextBreaks, publishTextSafe, publishedMinor, publishedMinorRule, pushMainOnly, reachOf, readAction, readConfig, readJsonc, readOverlay, readWorkflow, releaseFiles, releaseNotes, replaceLine, repoOf, reposOf, repositoryIsPublic, repositoryOfRemote, requiredScripts, roadmapOfLine, roadmapParses, runCalls, runChecks, runCli, runFix, runGit, runPrePushArgs, runnerBudget, scheduleMinute, scriptsOf, securityCallers, securityOneJob, serviceRunMain, setVersions, setupCue, sharedCi, sharedDocsRule, sharedNames, signaturesOf, siteCheckInCi, sourceMain, specifiersOf, startsTests, summaryMarkdown, summaryName, swallowsTests, tagName, testsRequired, trustPolicy, tsconfigTest, typedFiles, typedScripts, unreleasedChange, unreleasedChangeRule, versionTitle, withOneJob, workflowParses, workspaceGlobs, workspaceProtocol, yamlFaults };
70
70
 
71
71
  //# sourceMappingURL=index.js.map
@@ -4,9 +4,10 @@ import { createRequire } from "node:module";
4
4
  import { spawnSync } from "node:child_process";
5
5
  import { appendFileSync, chmodSync, existsSync, mkdirSync, readFileSync, readdirSync, statSync, writeFileSync } from "node:fs";
6
6
  import { basename, delimiter, dirname, extname, isAbsolute, join, posix, relative, resolve } from "node:path";
7
+ import { parseAllDocuments } from "yaml";
8
+ import { errorMessage } from "@mark1russell7/text";
7
9
  import { SECRET_SHAPES, findSecretShapes, findSecretShapesInValue, redactSecretShapes } from "@mark1russell7/text/redact";
8
10
  import { createHash } from "node:crypto";
9
- import { parseAllDocuments } from "yaml";
10
11
  // src/config.ts
11
12
  /** The fields of the configuration of a rule that are not options. */
12
13
  const RULE_FIELDS = [
@@ -15,6 +16,10 @@ const RULE_FIELDS = [
15
16
  "generated",
16
17
  "reason"
17
18
  ];
19
+ /**
20
+ * This function tells if a value is a record: an object that is not a list. The parser reader of `workflow.ts` uses it
21
+ * too. The home of this check is the planned entry `/read` of `@mark1russell7/optional`.
22
+ */
18
23
  const isObject$1 = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
19
24
  const isStrings = (value) => Array.isArray(value) && value.every((item) => typeof item === "string");
20
25
  /** This function gives the options of a rule with their defaults. */
@@ -1258,9 +1263,13 @@ const cuePreset = {
1258
1263
  };
1259
1264
  // src/workflow.ts
1260
1265
  /**
1261
- * A small reader of GitHub workflow files, by the indent of the lines. The rules that read workflows share it. It
1262
- * knows the block form, the inline values of keys and the block scalars (`|` and `>`) that the workflows of the template
1263
- * use. `readWorkflow` gives the parts of a shared workflow that the site of the template shows.
1266
+ * The readers of GitHub workflow files. The rules that read workflows share them.
1267
+ *
1268
+ * - The line reader reads by the indent of the lines. It knows the block form, the inline values of keys and the block
1269
+ * scalars (`|` and `>`) that the workflows of the template use. `readWorkflow` gives the parts of a shared workflow
1270
+ * that the site of the template shows.
1271
+ * - `parseWorkflow` reads with the YAML parser of the package `yaml`. It gives the facts that a security gate needs: the
1272
+ * triggers, the permissions, the secrets that each job reads, and the steps. A gate uses this reader, not the line reader.
1264
1273
  */
1265
1274
  /** A workflow file. */
1266
1275
  const WORKFLOW$1 = /^\.github\/workflows\/[^/]+\.ya?ml$/;
@@ -1566,6 +1575,166 @@ function readAction(file, text) {
1566
1575
  jobs
1567
1576
  };
1568
1577
  }
1578
+ /** This constant is the options of the parser. With `prettyErrors`, each error has its line and its column. */
1579
+ const PARSE = { prettyErrors: true };
1580
+ /** This function gives the errors of the parser for each document of a text. */
1581
+ function faultsOf(documents) {
1582
+ const faults = [];
1583
+ for (const document of documents) for (const error of document.errors) {
1584
+ const at = error.linePos?.[0];
1585
+ faults.push({
1586
+ line: at?.line ?? 1,
1587
+ column: at?.col ?? 1,
1588
+ message: (error.message.split("\n")[0] ?? error.code).replace(/:$/, "")
1589
+ });
1590
+ }
1591
+ return faults;
1592
+ }
1593
+ /** This function gives the faults of a YAML text. A text with no fault gives an empty list. */
1594
+ function yamlFaults(text) {
1595
+ return faultsOf(parseAllDocuments(text, PARSE));
1596
+ }
1597
+ /** This function gives the text of a value of the parser: a string as it is, and another value as JSON text. */
1598
+ const textOf = (value) => typeof value === "string" ? value : JSON.stringify(value) ?? "";
1599
+ /** This function gives the text of a key that can be absent, with no space at its ends. No value gives an empty text. */
1600
+ const optionalText = (value) => value === void 0 || value === null ? "" : textOf(value).trim();
1601
+ /** This function gives the values of a key that holds one value or a list of values. */
1602
+ const listValues = (value) => value === void 0 || value === null ? [] : Array.isArray(value) ? value.map(textOf) : [textOf(value)];
1603
+ /** This function gives the permissions of a workflow or of a job. */
1604
+ function permissionsOf(owner) {
1605
+ if (!Object.hasOwn(owner, "permissions")) return null;
1606
+ const value = owner["permissions"];
1607
+ if (!isObject$1(value)) return textOf(value);
1608
+ return Object.fromEntries(Object.entries(value).map(([scope, level]) => [scope, textOf(level)]));
1609
+ }
1610
+ /** This function gives the events of the key `on`: one event, a list of events, or a map with an event as each key. */
1611
+ function triggersOf$1(on) {
1612
+ if (isObject$1(on)) return Object.keys(on);
1613
+ return listValues(on);
1614
+ }
1615
+ /**
1616
+ * This regular expression finds a reference to a secret in an expression: `secrets.NAME`, `secrets['NAME']`, or the
1617
+ * context `secrets` with no name. The names of the contexts of GitHub are not case-sensitive.
1618
+ */
1619
+ const SECRET = /(?<![\w.-])secrets(?![\w-])\s*(?:\.\s*([A-Za-z_][\w-]*)|\[\s*'([^']*)'\s*\])?/gi;
1620
+ /**
1621
+ * This function gives the expressions of a text: the parts between `${{` and `}}`. An expression with no `}}` goes to
1622
+ * the end of the text, so a reference in it still counts.
1623
+ */
1624
+ function expressionsOf(text) {
1625
+ const out = [];
1626
+ let at = text.indexOf("${{");
1627
+ while (at >= 0) {
1628
+ const end = text.indexOf("}}", at + 3);
1629
+ out.push(text.slice(at + 3, end < 0 ? void 0 : end));
1630
+ if (end < 0) break;
1631
+ at = text.indexOf("${{", end + 2);
1632
+ }
1633
+ return out;
1634
+ }
1635
+ /**
1636
+ * This function adds the secrets that a value of the parser reads: each string in it, and in its lists and maps. The
1637
+ * value of a key `if` is an expression also with no `${{ }}`, as GitHub reads it. The keys of a map are not expressions.
1638
+ */
1639
+ function addSecrets(value, key, into, seen) {
1640
+ if (typeof value === "string") {
1641
+ for (const body of key === "if" ? [value] : expressionsOf(value)) for (const match of body.matchAll(SECRET)) into.add(match[1] ?? match[2] ?? "*");
1642
+ return;
1643
+ }
1644
+ if (typeof value !== "object" || value === null || seen.has(value)) return;
1645
+ seen.add(value);
1646
+ if (Array.isArray(value)) for (const item of value) addSecrets(item, "", into, seen);
1647
+ else for (const [name, item] of Object.entries(value)) addSecrets(item, name, into, seen);
1648
+ }
1649
+ /** This function gives the secrets that a value of the parser reads. */
1650
+ function secretsOf(value) {
1651
+ const secrets = /* @__PURE__ */ new Set();
1652
+ addSecrets(value, "", secrets, /* @__PURE__ */ new Set());
1653
+ return secrets;
1654
+ }
1655
+ /** This function reads a step: the same label as the line reader gives, its condition, its action and its secrets. */
1656
+ function parsedStep(value) {
1657
+ const step = isObject$1(value) ? value : {};
1658
+ const uses = actionOf(optionalText(step["uses"]));
1659
+ return {
1660
+ label: optionalText(step["name"]) || uses || (optionalText(step["run"]).split("\n")[0] ?? "") || optionalText(step["id"]) || "step",
1661
+ if: optionalText(step["if"]),
1662
+ uses,
1663
+ secrets: [...secretsOf(step)]
1664
+ };
1665
+ }
1666
+ /** This function reads a job. */
1667
+ function parsedJob(id, value) {
1668
+ const job = isObject$1(value) ? value : {};
1669
+ const secrets = secretsOf(job);
1670
+ if (job["secrets"] === "inherit") secrets.add("inherit");
1671
+ return {
1672
+ id,
1673
+ if: optionalText(job["if"]),
1674
+ needs: listValues(job["needs"]),
1675
+ uses: actionOf(optionalText(job["uses"])),
1676
+ permissions: permissionsOf(job),
1677
+ secrets: [...secrets],
1678
+ steps: Array.isArray(job["steps"]) ? job["steps"].map(parsedStep) : []
1679
+ };
1680
+ }
1681
+ /** This function gives the line (from 1) of the offset `at` of a text. */
1682
+ const lineAt$1 = (text, at) => text.slice(0, at).split("\n").length;
1683
+ /**
1684
+ * This function reads a workflow file with the YAML parser. The file name goes into the result. It does not throw: each
1685
+ * problem is a fault of the result. A file with a fault gives no trigger and no job.
1686
+ */
1687
+ function parseWorkflow(file, text) {
1688
+ const documents = parseAllDocuments(text, PARSE);
1689
+ const faults = faultsOf(documents);
1690
+ const [first, second] = documents;
1691
+ if (second !== void 0) faults.push({
1692
+ line: lineAt$1(text, second.range[0]),
1693
+ column: 1,
1694
+ message: `The file has ${documents.length} YAML documents, and a workflow is one document`
1695
+ });
1696
+ const version = first?.directives?.yaml.version ?? "1.2";
1697
+ if (version !== "1.2") faults.push({
1698
+ line: 1,
1699
+ column: 1,
1700
+ message: `The file asks for YAML ${version}, and the reader takes only YAML 1.2`
1701
+ });
1702
+ const none = {
1703
+ file,
1704
+ name: file,
1705
+ triggers: [],
1706
+ permissions: null,
1707
+ secrets: [],
1708
+ jobs: [],
1709
+ faults
1710
+ };
1711
+ if (first === void 0 || faults.length > 0) return none;
1712
+ try {
1713
+ const top = first.toJS();
1714
+ if (!isObject$1(top)) return none;
1715
+ const jobs = isObject$1(top["jobs"]) ? Object.entries(top["jobs"]).map(([id, job]) => parsedJob(id, job)) : [];
1716
+ const secrets = secretsOf(top);
1717
+ if (jobs.some((job) => job.secrets.includes("inherit"))) secrets.add("inherit");
1718
+ return {
1719
+ file,
1720
+ name: optionalText(top["name"]) || file,
1721
+ triggers: triggersOf$1(top["on"]),
1722
+ permissions: permissionsOf(top),
1723
+ secrets: [...secrets],
1724
+ jobs,
1725
+ faults
1726
+ };
1727
+ } catch (error) {
1728
+ return {
1729
+ ...none,
1730
+ faults: [{
1731
+ line: 1,
1732
+ column: 1,
1733
+ message: errorMessage(error)
1734
+ }]
1735
+ };
1736
+ }
1737
+ }
1569
1738
  // src/rules/gate-after-cancel.ts
1570
1739
  /**
1571
1740
  * The rule `gate-after-cancel`: a summary job of a gate does not start after a cancel. A job with `if: always()` still
@@ -20454,19 +20623,6 @@ const versionTitle = {
20454
20623
  */
20455
20624
  /** A file that GitHub reads as YAML: a workflow, or the file `action.yml` of an action of the repository. */
20456
20625
  const GITHUB_YAML = /^\.github\/(?:workflows\/[^/]+|actions\/(?:[^/]+\/)*action)\.ya?ml$/;
20457
- /** This function gives the faults of a YAML text. A text with no fault gives an empty list. */
20458
- function yamlFaults(text) {
20459
- const faults = [];
20460
- for (const document of parseAllDocuments(text, { prettyErrors: true })) for (const error of document.errors) {
20461
- const at = error.linePos?.[0];
20462
- faults.push({
20463
- line: at?.line ?? 1,
20464
- column: at?.col ?? 1,
20465
- message: (error.message.split("\n")[0] ?? error.code).replace(/:$/, "")
20466
- });
20467
- }
20468
- return faults;
20469
- }
20470
20626
  const workflowParses = {
20471
20627
  id: "workflow-parses",
20472
20628
  title: "Each workflow file and each file `action.yml` of `.github` parses as YAML.",
@@ -21621,6 +21777,6 @@ function runHook(args, io) {
21621
21777
  git: (gitArgs) => runGit(io.cwd, gitArgs)
21622
21778
  }, io);
21623
21779
  }
21624
- export { npmLookup as $, codePackages as $n, licenseFile as $t, configsOfScript as A, SHARED_WORKFLOWS as An, privateNamesFile as At, sharedDocsRule as B, ACTIONS_COMMIT as Bn, lineNameHits as Bt, namedVersions as C, SERVICE_PACKAGE as Cn, DEFAULT_ALLOWED as Ct, TRAIN_SCOPES as D, tsconfigTest as Dn, PRIVATE_PATTERNS_VARIABLE as Dt, IGNORE_AFTER as E, hasTests as En, PRIVATE_NAMES_FILE_VARIABLE as Et, pathsOf as F, SECURITY_SCAN_INPUTS as Fn, PrivateNameListError as Ft, lockedVersions as G, gateAfterCancel as Gn, noBuildOutput as Gt, roadmapParses as H, gateTrigger as Hn, nameMatches as Ht, sourceMain as I, SECURITY_TIMEOUT_MINUTES as In, firstNameMatch as It, publishedMinorRule as J, STRICT_OPTIONS as Jn, mainCheck as Jt, minorOf as K, readAction as Kn, REAL_COMPARE as Kt, HOME_TIMEOUT_MS as L, securityCallers as Ln, isAllowedHit as Lt, typedFiles as M, sharedCi as Mn, privatePatterns as Mt, testsRequired as N, setupCue as Nn, privateTextBreaks as Nt, trustPolicy as O, SHARED_ACTIONS as On, invalidPatternBreaks as Ot, isSourcePath as P, SECURITY_SCAN_COMMIT as Pn, PRIVATE_NAME_LIST as Pt, UNSHIPPED_FILES as Q, cleanPath as Qn, authorOf as Qt, blockHash as R, securityOneJob as Rn, isCommonUse as Rt, yamlFaults as S, readOverlay as Sn, packNoBuildinfo as St, versionTitle as T, serviceRunMain as Tn, PRIVATE_NAMES_FILE_CONFIG as Tt, requiredScripts as U, prPathFilters as Un, parsePrivateNames as Ut, roadmapOfLine as V, convertGate as Vn, mergePrivateNames as Vt, releaseFiles as W, summaryName as Wn, pathNameHit as Wt, NPM_REGISTRY as X, DEPENDENCY_FIELDS as Xn, apiReportScript as Xt, reachOf as Y, cuePreset as Yn, coverageProvider as Yt, SHIPPED_FIELDS as Z, RULE_WARN_DAYS as Zn, LICENSE_TEXTS as Zt, runPrePushArgs as _, mapMarkdown as _n, PAGES_WORKFLOWS as _t, listRules as a, moduleUses as an, parseJsonc as ar, parseAdvisory as at, GITHUB_YAML as b, npmDrift as bn, exportsRequire as bt, runCli as c, homePackage as cn, repositoryOfRemote as cr, pipeFails as ct, HOOK_MARKER as d, reposOf as dn, defaultOptions as dr, pinnedGitDeps as dt, licenseFileOf as en, hasFile as er, unreleasedChange as et, NO_READ_LINE as f, signaturesOf as fn, parseConfig as fr, siteCheckInCi as ft, prePush as g, findHomes as gn, pushMainOnly as gt, parsePrePushArgs as h, MAP_RULE as hn, scheduleMinute as ht, formatResult as i, moduleMessage as in, matchesAny as ir, jobFails as it, scriptsOf as j, callsSharedCi as jn, privateNamesFiles as jt, typedScripts as k, SHARED_CI as kn, noLocalPaths as kt, runFix as l, messageOf as ln, runGit as lr, isGitSpecifier as lt, installHook as m, HOMES as mn, runnerBudget as mt, annotations as n, repositoryIsPublic as nn, keyLine as nr, playwrightInstall as nt, readConfig as o, modulesOf as on, readJsonc as or, startsTests as ot, PRE_PUSH_HOOK as p, HOME_EXPORTS as pn, parseRuleConfig as pr, pagesAfterRelease as pt, publishedMinor as q, readWorkflow as qn, hasImportMetaMain as qt, createContext as r, homeModule as rn, lineOf as rr, hiddenFailures as rt, runChecks as s, declaredName as sn, replaceLine as sr, swallowsTests as st, USAGE as t, mitText as tn, inFolder as tr, unreleasedChangeRule as tt, summaryMarkdown as u, repoOf as un, specifiersOf as ur, isPinned as ut, RULES as v, mapText as vn, pagesCalls as vt, setVersions as w, runCalls as wn, HOME_PATTERNS as wt, workflowParses as x, npmNames as xn, publishTextSafe as xt, workspaceProtocol as y, mergeHomes as yn, pagesSite as yt, githubFetch as z, withOneJob as zn, lineNameHit as zt };
21780
+ export { unreleasedChange as $, cleanPath as $n, licenseFileOf as $t, scriptsOf as A, callsSharedCi as An, privateNamesFiles as At, roadmapOfLine as B, convertGate as Bn, mergePrivateNames as Bt, setVersions as C, runCalls as Cn, HOME_PATTERNS as Ct, trustPolicy as D, SHARED_ACTIONS as Dn, invalidPatternBreaks as Dt, TRAIN_SCOPES as E, tsconfigTest as En, PRIVATE_PATTERNS_VARIABLE as Et, sourceMain as F, SECURITY_TIMEOUT_MINUTES as Fn, firstNameMatch as Ft, minorOf as G, parseWorkflow as Gn, REAL_COMPARE as Gt, requiredScripts as H, prPathFilters as Hn, parsePrivateNames as Ht, HOME_TIMEOUT_MS as I, securityCallers as In, isAllowedHit as It, reachOf as J, yamlFaults as Jn, coverageProvider as Jt, publishedMinor as K, readAction as Kn, hasImportMetaMain as Kt, blockHash as L, securityOneJob as Ln, isCommonUse as Lt, testsRequired as M, setupCue as Mn, privateTextBreaks as Mt, isSourcePath as N, SECURITY_SCAN_COMMIT as Nn, PRIVATE_NAME_LIST as Nt, typedScripts as O, SHARED_CI as On, noLocalPaths as Ot, pathsOf as P, SECURITY_SCAN_INPUTS as Pn, PrivateNameListError as Pt, npmLookup as Q, RULE_WARN_DAYS as Qn, licenseFile as Qt, githubFetch as R, withOneJob as Rn, lineNameHit as Rt, namedVersions as S, SERVICE_PACKAGE as Sn, DEFAULT_ALLOWED as St, IGNORE_AFTER as T, hasTests as Tn, PRIVATE_NAMES_FILE_VARIABLE as Tt, releaseFiles as U, summaryName as Un, pathNameHit as Ut, roadmapParses as V, gateTrigger as Vn, nameMatches as Vt, lockedVersions as W, gateAfterCancel as Wn, noBuildOutput as Wt, SHIPPED_FIELDS as X, cuePreset as Xn, LICENSE_TEXTS as Xt, NPM_REGISTRY as Y, STRICT_OPTIONS as Yn, apiReportScript as Yt, UNSHIPPED_FILES as Z, DEPENDENCY_FIELDS as Zn, authorOf as Zt, runPrePushArgs as _, mapText as _n, pagesCalls as _t, listRules as a, modulesOf as an, matchesAny as ar, startsTests as at, GITHUB_YAML as b, npmNames as bn, publishTextSafe as bt, runCli as c, messageOf as cn, replaceLine as cr, isGitSpecifier as ct, HOOK_MARKER as d, signaturesOf as dn, specifiersOf as dr, siteCheckInCi as dt, mitText as en, codePackages as er, unreleasedChangeRule as et, NO_READ_LINE as f, HOME_EXPORTS as fn, defaultOptions as fr, pagesAfterRelease as ft, prePush as g, mapMarkdown as gn, PAGES_WORKFLOWS as gt, parsePrePushArgs as h, findHomes as hn, pushMainOnly as ht, formatResult as i, moduleUses as in, lineOf as ir, parseAdvisory as it, typedFiles as j, sharedCi as jn, privatePatterns as jt, configsOfScript as k, SHARED_WORKFLOWS as kn, privateNamesFile as kt, runFix as l, repoOf as ln, repositoryOfRemote as lr, isPinned as lt, installHook as m, MAP_RULE as mn, parseRuleConfig as mr, scheduleMinute as mt, annotations as n, homeModule as nn, inFolder as nr, hiddenFailures as nt, readConfig as o, declaredName as on, parseJsonc as or, swallowsTests as ot, PRE_PUSH_HOOK as p, HOMES as pn, parseConfig as pr, runnerBudget as pt, publishedMinorRule as q, readWorkflow as qn, mainCheck as qt, createContext as r, moduleMessage as rn, keyLine as rr, jobFails as rt, runChecks as s, homePackage as sn, readJsonc as sr, pipeFails as st, USAGE as t, repositoryIsPublic as tn, hasFile as tr, playwrightInstall as tt, summaryMarkdown as u, reposOf as un, runGit as ur, pinnedGitDeps as ut, RULES as v, mergeHomes as vn, pagesSite as vt, versionTitle as w, serviceRunMain as wn, PRIVATE_NAMES_FILE_CONFIG as wt, workflowParses as x, readOverlay as xn, packNoBuildinfo as xt, workspaceProtocol as y, npmDrift as yn, exportsRequire as yt, sharedDocsRule as z, ACTIONS_COMMIT as zn, lineNameHits as zt };
21625
21781
 
21626
- //# sourceMappingURL=run-C0inJi_2.js.map
21782
+ //# sourceMappingURL=run-DHR-sa4C.js.map