@intentius/chant-lexicon-github 0.124.11 → 0.124.13

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.
@@ -1,22 +1,22 @@
1
1
  {
2
2
  "algorithm": "sha256",
3
3
  "artifacts": {
4
- "manifest.json": "ae2f5b72e0a3a2ea2f1322112abf95a3ae0c99eaf539e9e1f0dcead6dcf6d146",
4
+ "manifest.json": "ac146d6030ea7fc4152c7f17bfa7ceee1190e581e57838415efdc9f41860efee",
5
5
  "meta.json": "c50e0ef3845c370c3ad2210b8bba455980417c0f818aa6ed46e06d4fb8b1b9f9",
6
6
  "types/index.d.ts": "0ead95536e947ddfb98a5acf0ddb88547913b5a53a342df67711c59266f84b3e",
7
- "rules/deprecated-action-version.ts": "d41e6e532ab7f623af1bee4ac5279fcb2baada7defa1c5d022a5bc71983e8797",
8
- "rules/detect-secrets.ts": "5829832eb7b43993424971041ed386b196850183bffd34bddd6439f99061e4ae",
9
- "rules/extract-inline-structs.ts": "8f8147c200de8ffd0620dfdcca2e2cea76a520303ce431479ebecad6aa26aab5",
10
- "rules/file-job-limit.ts": "80f494c9e2eedd70b1df0c672215968faad18be139a430197e452a72ad38a7d6",
11
- "rules/job-timeout.ts": "312b249ee3fd9d3d0b11f95ab6567c586ec366af9dd4f19d43b280de892838ad",
12
- "rules/missing-recommended-inputs.ts": "547faca227a7e43fa137e3d79fb77b79193a3a59c9455a152711b7d079c3b3df",
13
- "rules/no-hardcoded-secrets.ts": "b9e73a7233d64d4037a48857faba43d14fa5f9c22e22d3525bb0917fa64db474",
14
- "rules/no-raw-expressions.ts": "a266fceae6522a31df509210153d3f1f88dbba323f443e0f9263961884583179",
15
- "rules/suggest-cache.ts": "cf8e59ea29031fc0c26229260708a00784691a51e67ac5d65521fb1c25481f9e",
16
- "rules/use-condition-builders.ts": "75aa7dc377f14068676614d9bfa85646a04aeed14738a002ad19117efb915169",
17
- "rules/use-matrix-builder.ts": "cbabb3e91222243627c558c2106ee91a34a59e41c003ee507e37da29926e2e55",
18
- "rules/use-typed-actions.ts": "ad0775b64b268365d450eaa4c08e7ff17f02074392e04d7a746708bf214afd27",
19
- "rules/validate-concurrency.ts": "848a6cedc6aeb7f0bc3715368436e40d96f8074e6c6987f1ea010f7e53ce9541",
7
+ "rules/deprecated-action-version.ts": "a9ba7cc924ff1c7055110416d8989273690415bfb5e8dcc32dc9431b9351f5ca",
8
+ "rules/detect-secrets.ts": "6b02d6eb6cdab8e45a084f744809fd0020cd8e5fecb5ea0628b53f7b0c3e9531",
9
+ "rules/extract-inline-structs.ts": "1d528b7fa4a3911af12ee2ee61cddd6c1399b7e8150c47510b83a76ee6326387",
10
+ "rules/file-job-limit.ts": "7944b73b4e9a65620aadb94754146f783f243afb499155ddce77003d7419dead",
11
+ "rules/job-timeout.ts": "794d5f535c88ff59bc1c9102764ae639c0b05a97b64b7ad0c0dd9083fade60f9",
12
+ "rules/missing-recommended-inputs.ts": "f70d12b2082c5519535f44922e2bb499fb6efc5498dc6c8d814c518468863265",
13
+ "rules/no-hardcoded-secrets.ts": "aa5756e8bbe7e8a0657d64c54fcf98ab497d71b770813c6ef8f0695635982272",
14
+ "rules/no-raw-expressions.ts": "6da73fbf13969a68abca159f4939ea17ac162db5f541a9b45af09e3328406e37",
15
+ "rules/suggest-cache.ts": "ef80f8833121eb4424521517a53611641b33b25f1cb777eb097d58ef1cd6e356",
16
+ "rules/use-condition-builders.ts": "d897942a985db99c7c76fe7fd916c93cc966b10c684f7e2e1572aa2fc2d5c9b3",
17
+ "rules/use-matrix-builder.ts": "bd446eaeb4416a1441f3c3cfab1e022f58586c374302c3373a4da465fbbab2b2",
18
+ "rules/use-typed-actions.ts": "a0f09fef797df421342c139cf797ace9f34f0ff2d5ce628e90c23222c773e59d",
19
+ "rules/validate-concurrency.ts": "4866b3b8cf1fe9c73f4566feb0abff773096791df4d39ff5038844a4d60ef575",
20
20
  "rules/gha006.ts": "7e2977d34851ce2ed9f91c4dd78ecda8d4de099ceaac1cd9ab74960a193133a3",
21
21
  "rules/gha009.ts": "0f9a261e886309679494da32b72a0d9ea20017e5da75a9d59a04846a0e4d78db",
22
22
  "rules/gha011.ts": "53b7ca79b5bf56e5793a9b7a44ae0ac766eb5acf0669005e7810cb7762bab79c",
@@ -78,5 +78,5 @@
78
78
  "skills/chant-github-patterns.md": "bb3abef289a8fdfcf07d6bb2d7289dcb2f38bc0cb0321ea320b78b45a6f548c0",
79
79
  "skills/chant-github-security.md": "aab111cb0871cad30281ce48d7da23663689619351029219e2be019a1a61e394"
80
80
  },
81
- "composite": "77307e559c350468ead201211a6da714f801d36e96f5605708a85d4fca54846a"
81
+ "composite": "51cd66e7c237243e7153d158f2b1c4ee2205d325ed12c270512dcbe6c61057fd"
82
82
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "github",
3
- "version": "0.124.11",
3
+ "version": "0.124.13",
4
4
  "chantVersion": ">=0.1.0",
5
5
  "namespace": "GitHub",
6
6
  "intrinsics": [
@@ -5,7 +5,7 @@
5
5
  */
6
6
 
7
7
  import type { LintRule, LintDiagnostic, LintContext } from "@intentius/chant/lint/rule";
8
- import * as ts from "typescript";
8
+ import { ts } from "@intentius/chant/lint/typescript";
9
9
  import { deprecatedVersions } from "./data/deprecated-versions";
10
10
 
11
11
  export const deprecatedActionVersionRule: LintRule = {
@@ -6,7 +6,7 @@
6
6
  */
7
7
 
8
8
  import type { LintRule, LintDiagnostic, LintContext } from "@intentius/chant/lint/rule";
9
- import * as ts from "typescript";
9
+ import { ts } from "@intentius/chant/lint/typescript";
10
10
  import { secretPatterns } from "./data/secret-patterns";
11
11
 
12
12
  export const detectSecretsRule: LintRule = {
@@ -5,7 +5,7 @@
5
5
  */
6
6
 
7
7
  import type { LintRule, LintDiagnostic, LintContext } from "@intentius/chant/lint/rule";
8
- import * as ts from "typescript";
8
+ import { ts } from "@intentius/chant/lint/typescript";
9
9
 
10
10
  const RESOURCE_NAMES = new Set(["Job", "Workflow", "ReusableWorkflowCallJob"]);
11
11
  const MAX_DEPTH = 2;
@@ -5,7 +5,7 @@
5
5
  */
6
6
 
7
7
  import type { LintRule, LintDiagnostic, LintContext } from "@intentius/chant/lint/rule";
8
- import * as ts from "typescript";
8
+ import { ts } from "@intentius/chant/lint/typescript";
9
9
 
10
10
  const JOB_NAMES = new Set(["Job", "ReusableWorkflowCallJob"]);
11
11
  const MAX_JOBS = 10;
@@ -5,7 +5,7 @@
5
5
  */
6
6
 
7
7
  import type { LintRule, LintDiagnostic, LintContext } from "@intentius/chant/lint/rule";
8
- import * as ts from "typescript";
8
+ import { ts } from "@intentius/chant/lint/typescript";
9
9
 
10
10
  export const jobTimeoutRule: LintRule = {
11
11
  id: "GHA014",
@@ -5,7 +5,7 @@
5
5
  */
6
6
 
7
7
  import type { LintRule, LintDiagnostic, LintContext } from "@intentius/chant/lint/rule";
8
- import * as ts from "typescript";
8
+ import { ts } from "@intentius/chant/lint/typescript";
9
9
  import { recommendedInputs } from "./data/recommended-inputs";
10
10
 
11
11
  const SETUP_ACTIONS = new Set(Object.keys(recommendedInputs));
@@ -5,7 +5,7 @@
5
5
  */
6
6
 
7
7
  import type { LintRule, LintDiagnostic, LintContext } from "@intentius/chant/lint/rule";
8
- import * as ts from "typescript";
8
+ import { ts } from "@intentius/chant/lint/typescript";
9
9
 
10
10
  const TOKEN_PREFIXES = ["ghp_", "ghs_", "ghu_", "ghr_", "gho_", "github_pat_"];
11
11
 
@@ -5,7 +5,7 @@
5
5
  */
6
6
 
7
7
  import type { LintRule, LintDiagnostic, LintContext } from "@intentius/chant/lint/rule";
8
- import * as ts from "typescript";
8
+ import { ts } from "@intentius/chant/lint/typescript";
9
9
 
10
10
  const VALID_CONTEXTS = ["github.", "secrets.", "matrix.", "steps.", "needs.", "inputs.", "env.", "vars.", "runner.", "always()", "failure()", "success()", "cancelled()", "contains(", "startsWith(", "endsWith(", "format(", "join(", "toJSON(", "fromJSON(", "hashFiles("];
11
11
 
@@ -5,7 +5,7 @@
5
5
  */
6
6
 
7
7
  import type { LintRule, LintDiagnostic, LintContext } from "@intentius/chant/lint/rule";
8
- import * as ts from "typescript";
8
+ import { ts } from "@intentius/chant/lint/typescript";
9
9
 
10
10
  const setupActionsNeedingCache = new Set(["SetupNode", "SetupGo", "SetupPython"]);
11
11
 
@@ -6,7 +6,7 @@
6
6
  */
7
7
 
8
8
  import type { LintRule, LintDiagnostic, LintContext } from "@intentius/chant/lint/rule";
9
- import * as ts from "typescript";
9
+ import { ts } from "@intentius/chant/lint/typescript";
10
10
 
11
11
  export const useConditionBuildersRule: LintRule = {
12
12
  id: "GHA002",
@@ -6,7 +6,7 @@
6
6
  */
7
7
 
8
8
  import type { LintRule, LintDiagnostic, LintContext } from "@intentius/chant/lint/rule";
9
- import * as ts from "typescript";
9
+ import { ts } from "@intentius/chant/lint/typescript";
10
10
 
11
11
  export const useMatrixBuilderRule: LintRule = {
12
12
  id: "GHA004",
@@ -5,7 +5,7 @@
5
5
  */
6
6
 
7
7
  import type { LintRule, LintDiagnostic, LintContext } from "@intentius/chant/lint/rule";
8
- import * as ts from "typescript";
8
+ import { ts } from "@intentius/chant/lint/typescript";
9
9
  import { knownActions } from "./data/known-actions";
10
10
 
11
11
  export const useTypedActionsRule: LintRule = {
@@ -5,7 +5,7 @@
5
5
  */
6
6
 
7
7
  import type { LintRule, LintDiagnostic, LintContext } from "@intentius/chant/lint/rule";
8
- import * as ts from "typescript";
8
+ import { ts } from "@intentius/chant/lint/typescript";
9
9
 
10
10
  export const validateConcurrencyRule: LintRule = {
11
11
  id: "GHA016",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intentius/chant-lexicon-github",
3
- "version": "0.124.11",
3
+ "version": "0.124.13",
4
4
  "description": "GitHub Actions lexicon for chant — declarative IaC in TypeScript",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://intentius.io/chant",
@@ -61,7 +61,6 @@
61
61
  "typescript": "^5.9.3"
62
62
  },
63
63
  "peerDependencies": {
64
- "@intentius/chant": "^0.124.11",
65
- "typescript": "^5.9.3"
64
+ "@intentius/chant": "^0.124.13"
66
65
  }
67
66
  }
@@ -5,7 +5,7 @@
5
5
  */
6
6
 
7
7
  import type { LintRule, LintDiagnostic, LintContext } from "@intentius/chant/lint/rule";
8
- import * as ts from "typescript";
8
+ import { ts } from "@intentius/chant/lint/typescript";
9
9
  import { deprecatedVersions } from "./data/deprecated-versions";
10
10
 
11
11
  export const deprecatedActionVersionRule: LintRule = {
@@ -6,7 +6,7 @@
6
6
  */
7
7
 
8
8
  import type { LintRule, LintDiagnostic, LintContext } from "@intentius/chant/lint/rule";
9
- import * as ts from "typescript";
9
+ import { ts } from "@intentius/chant/lint/typescript";
10
10
  import { secretPatterns } from "./data/secret-patterns";
11
11
 
12
12
  export const detectSecretsRule: LintRule = {
@@ -5,7 +5,7 @@
5
5
  */
6
6
 
7
7
  import type { LintRule, LintDiagnostic, LintContext } from "@intentius/chant/lint/rule";
8
- import * as ts from "typescript";
8
+ import { ts } from "@intentius/chant/lint/typescript";
9
9
 
10
10
  const RESOURCE_NAMES = new Set(["Job", "Workflow", "ReusableWorkflowCallJob"]);
11
11
  const MAX_DEPTH = 2;
@@ -5,7 +5,7 @@
5
5
  */
6
6
 
7
7
  import type { LintRule, LintDiagnostic, LintContext } from "@intentius/chant/lint/rule";
8
- import * as ts from "typescript";
8
+ import { ts } from "@intentius/chant/lint/typescript";
9
9
 
10
10
  const JOB_NAMES = new Set(["Job", "ReusableWorkflowCallJob"]);
11
11
  const MAX_JOBS = 10;
@@ -5,7 +5,7 @@
5
5
  */
6
6
 
7
7
  import type { LintRule, LintDiagnostic, LintContext } from "@intentius/chant/lint/rule";
8
- import * as ts from "typescript";
8
+ import { ts } from "@intentius/chant/lint/typescript";
9
9
 
10
10
  export const jobTimeoutRule: LintRule = {
11
11
  id: "GHA014",
@@ -5,7 +5,7 @@
5
5
  */
6
6
 
7
7
  import type { LintRule, LintDiagnostic, LintContext } from "@intentius/chant/lint/rule";
8
- import * as ts from "typescript";
8
+ import { ts } from "@intentius/chant/lint/typescript";
9
9
  import { recommendedInputs } from "./data/recommended-inputs";
10
10
 
11
11
  const SETUP_ACTIONS = new Set(Object.keys(recommendedInputs));
@@ -5,7 +5,7 @@
5
5
  */
6
6
 
7
7
  import type { LintRule, LintDiagnostic, LintContext } from "@intentius/chant/lint/rule";
8
- import * as ts from "typescript";
8
+ import { ts } from "@intentius/chant/lint/typescript";
9
9
 
10
10
  const TOKEN_PREFIXES = ["ghp_", "ghs_", "ghu_", "ghr_", "gho_", "github_pat_"];
11
11
 
@@ -5,7 +5,7 @@
5
5
  */
6
6
 
7
7
  import type { LintRule, LintDiagnostic, LintContext } from "@intentius/chant/lint/rule";
8
- import * as ts from "typescript";
8
+ import { ts } from "@intentius/chant/lint/typescript";
9
9
 
10
10
  const VALID_CONTEXTS = ["github.", "secrets.", "matrix.", "steps.", "needs.", "inputs.", "env.", "vars.", "runner.", "always()", "failure()", "success()", "cancelled()", "contains(", "startsWith(", "endsWith(", "format(", "join(", "toJSON(", "fromJSON(", "hashFiles("];
11
11
 
@@ -5,7 +5,7 @@
5
5
  */
6
6
 
7
7
  import type { LintRule, LintDiagnostic, LintContext } from "@intentius/chant/lint/rule";
8
- import * as ts from "typescript";
8
+ import { ts } from "@intentius/chant/lint/typescript";
9
9
 
10
10
  const setupActionsNeedingCache = new Set(["SetupNode", "SetupGo", "SetupPython"]);
11
11
 
@@ -6,7 +6,7 @@
6
6
  */
7
7
 
8
8
  import type { LintRule, LintDiagnostic, LintContext } from "@intentius/chant/lint/rule";
9
- import * as ts from "typescript";
9
+ import { ts } from "@intentius/chant/lint/typescript";
10
10
 
11
11
  export const useConditionBuildersRule: LintRule = {
12
12
  id: "GHA002",
@@ -6,7 +6,7 @@
6
6
  */
7
7
 
8
8
  import type { LintRule, LintDiagnostic, LintContext } from "@intentius/chant/lint/rule";
9
- import * as ts from "typescript";
9
+ import { ts } from "@intentius/chant/lint/typescript";
10
10
 
11
11
  export const useMatrixBuilderRule: LintRule = {
12
12
  id: "GHA004",
@@ -5,7 +5,7 @@
5
5
  */
6
6
 
7
7
  import type { LintRule, LintDiagnostic, LintContext } from "@intentius/chant/lint/rule";
8
- import * as ts from "typescript";
8
+ import { ts } from "@intentius/chant/lint/typescript";
9
9
  import { knownActions } from "./data/known-actions";
10
10
 
11
11
  export const useTypedActionsRule: LintRule = {
@@ -5,7 +5,7 @@
5
5
  */
6
6
 
7
7
  import type { LintRule, LintDiagnostic, LintContext } from "@intentius/chant/lint/rule";
8
- import * as ts from "typescript";
8
+ import { ts } from "@intentius/chant/lint/typescript";
9
9
 
10
10
  export const validateConcurrencyRule: LintRule = {
11
11
  id: "GHA016",