@intentius/chant-lexicon-github 0.6.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/codegen/docs-cli.d.ts +2 -0
- package/dist/codegen/docs-cli.d.ts.map +1 -0
- package/dist/codegen/docs.d.ts +10 -0
- package/dist/codegen/docs.d.ts.map +1 -0
- package/dist/codegen/generate-cli.d.ts +6 -0
- package/dist/codegen/generate-cli.d.ts.map +1 -0
- package/dist/codegen/generate-lexicon.d.ts +19 -0
- package/dist/codegen/generate-lexicon.d.ts.map +1 -0
- package/dist/codegen/generate-typescript.d.ts +11 -0
- package/dist/codegen/generate-typescript.d.ts.map +1 -0
- package/dist/codegen/generate.d.ts +15 -0
- package/dist/codegen/generate.d.ts.map +1 -0
- package/dist/codegen/naming.d.ts +13 -0
- package/dist/codegen/naming.d.ts.map +1 -0
- package/dist/codegen/package.d.ts +10 -0
- package/dist/codegen/package.d.ts.map +1 -0
- package/dist/codegen/parse.d.ts +56 -0
- package/dist/codegen/parse.d.ts.map +1 -0
- package/dist/codegen/patches.d.ts +21 -0
- package/dist/codegen/patches.d.ts.map +1 -0
- package/dist/composites/cache.d.ts +11 -0
- package/dist/composites/cache.d.ts.map +1 -0
- package/dist/composites/checkout.d.ts +14 -0
- package/dist/composites/checkout.d.ts.map +1 -0
- package/dist/composites/dependabot.d.ts +74 -0
- package/dist/composites/dependabot.d.ts.map +1 -0
- package/dist/composites/deploy-environment.d.ts +23 -0
- package/dist/composites/deploy-environment.d.ts.map +1 -0
- package/dist/composites/docker-build.d.ts +29 -0
- package/dist/composites/docker-build.d.ts.map +1 -0
- package/dist/composites/download-artifact.d.ts +11 -0
- package/dist/composites/download-artifact.d.ts.map +1 -0
- package/dist/composites/go-ci.d.ts +21 -0
- package/dist/composites/go-ci.d.ts.map +1 -0
- package/dist/composites/index.d.ts +29 -0
- package/dist/composites/index.d.ts.map +1 -0
- package/dist/composites/node-ci.d.ts +14 -0
- package/dist/composites/node-ci.d.ts.map +1 -0
- package/dist/composites/node-pipeline.d.ts +79 -0
- package/dist/composites/node-pipeline.d.ts.map +1 -0
- package/dist/composites/python-ci.d.ts +22 -0
- package/dist/composites/python-ci.d.ts.map +1 -0
- package/dist/composites/setup-go.d.ts +11 -0
- package/dist/composites/setup-go.d.ts.map +1 -0
- package/dist/composites/setup-node.d.ts +12 -0
- package/dist/composites/setup-node.d.ts.map +1 -0
- package/dist/composites/setup-python.d.ts +11 -0
- package/dist/composites/setup-python.d.ts.map +1 -0
- package/dist/composites/upload-artifact.d.ts +12 -0
- package/dist/composites/upload-artifact.d.ts.map +1 -0
- package/dist/coverage.d.ts +15 -0
- package/dist/coverage.d.ts.map +1 -0
- package/dist/expression.d.ts +107 -0
- package/dist/expression.d.ts.map +1 -0
- package/dist/generated/index.d.ts +24 -0
- package/dist/generated/index.d.ts.map +1 -0
- package/dist/generated/runtime.d.ts +5 -0
- package/dist/generated/runtime.d.ts.map +1 -0
- package/dist/import/generator.d.ts +19 -0
- package/dist/import/generator.d.ts.map +1 -0
- package/dist/import/parser.d.ts +13 -0
- package/dist/import/parser.d.ts.map +1 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/integrity.json +2 -2
- package/dist/lint/post-synth/gha006.d.ts +8 -0
- package/dist/lint/post-synth/gha006.d.ts.map +1 -0
- package/dist/lint/post-synth/gha009.d.ts +8 -0
- package/dist/lint/post-synth/gha009.d.ts.map +1 -0
- package/dist/lint/post-synth/gha011.d.ts +8 -0
- package/dist/lint/post-synth/gha011.d.ts.map +1 -0
- package/dist/lint/post-synth/gha013.d.ts +9 -0
- package/dist/lint/post-synth/gha013.d.ts.map +1 -0
- package/dist/lint/post-synth/gha017.d.ts +8 -0
- package/dist/lint/post-synth/gha017.d.ts.map +1 -0
- package/dist/lint/post-synth/gha018.d.ts +9 -0
- package/dist/lint/post-synth/gha018.d.ts.map +1 -0
- package/dist/lint/post-synth/gha019.d.ts +9 -0
- package/dist/lint/post-synth/gha019.d.ts.map +1 -0
- package/dist/lint/post-synth/gha021.d.ts +9 -0
- package/dist/lint/post-synth/gha021.d.ts.map +1 -0
- package/dist/lint/post-synth/gha022.d.ts +9 -0
- package/dist/lint/post-synth/gha022.d.ts.map +1 -0
- package/dist/lint/post-synth/gha023.d.ts +9 -0
- package/dist/lint/post-synth/gha023.d.ts.map +1 -0
- package/dist/lint/post-synth/gha024.d.ts +9 -0
- package/dist/lint/post-synth/gha024.d.ts.map +1 -0
- package/dist/lint/post-synth/gha025.d.ts +9 -0
- package/dist/lint/post-synth/gha025.d.ts.map +1 -0
- package/dist/lint/post-synth/gha026.d.ts +10 -0
- package/dist/lint/post-synth/gha026.d.ts.map +1 -0
- package/dist/lint/post-synth/gha027.d.ts +10 -0
- package/dist/lint/post-synth/gha027.d.ts.map +1 -0
- package/dist/lint/post-synth/gha028.d.ts +9 -0
- package/dist/lint/post-synth/gha028.d.ts.map +1 -0
- package/dist/lint/post-synth/gha029.d.ts +25 -0
- package/dist/lint/post-synth/gha029.d.ts.map +1 -0
- package/dist/lint/post-synth/gha030.d.ts +10 -0
- package/dist/lint/post-synth/gha030.d.ts.map +1 -0
- package/dist/lint/post-synth/gha031.d.ts +15 -0
- package/dist/lint/post-synth/gha031.d.ts.map +1 -0
- package/dist/lint/post-synth/gha032.d.ts +10 -0
- package/dist/lint/post-synth/gha032.d.ts.map +1 -0
- package/dist/lint/post-synth/gha033.d.ts +10 -0
- package/dist/lint/post-synth/gha033.d.ts.map +1 -0
- package/dist/lint/post-synth/gha034.d.ts +12 -0
- package/dist/lint/post-synth/gha034.d.ts.map +1 -0
- package/dist/lint/post-synth/gha035.d.ts +13 -0
- package/dist/lint/post-synth/gha035.d.ts.map +1 -0
- package/dist/lint/post-synth/gha036.d.ts +12 -0
- package/dist/lint/post-synth/gha036.d.ts.map +1 -0
- package/dist/lint/post-synth/gha037.d.ts +12 -0
- package/dist/lint/post-synth/gha037.d.ts.map +1 -0
- package/dist/lint/post-synth/gha038.d.ts +11 -0
- package/dist/lint/post-synth/gha038.d.ts.map +1 -0
- package/dist/lint/post-synth/gha039.d.ts +12 -0
- package/dist/lint/post-synth/gha039.d.ts.map +1 -0
- package/dist/lint/post-synth/gha040.d.ts +11 -0
- package/dist/lint/post-synth/gha040.d.ts.map +1 -0
- package/dist/lint/post-synth/gha041.d.ts +10 -0
- package/dist/lint/post-synth/gha041.d.ts.map +1 -0
- package/dist/lint/post-synth/gha042.d.ts +10 -0
- package/dist/lint/post-synth/gha042.d.ts.map +1 -0
- package/dist/lint/post-synth/gha043.d.ts +12 -0
- package/dist/lint/post-synth/gha043.d.ts.map +1 -0
- package/dist/lint/post-synth/gha044.d.ts +10 -0
- package/dist/lint/post-synth/gha044.d.ts.map +1 -0
- package/dist/lint/post-synth/gha045.d.ts +12 -0
- package/dist/lint/post-synth/gha045.d.ts.map +1 -0
- package/dist/lint/post-synth/gha046.d.ts +13 -0
- package/dist/lint/post-synth/gha046.d.ts.map +1 -0
- package/dist/lint/post-synth/gha047.d.ts +12 -0
- package/dist/lint/post-synth/gha047.d.ts.map +1 -0
- package/dist/lint/post-synth/gha048.d.ts +12 -0
- package/dist/lint/post-synth/gha048.d.ts.map +1 -0
- package/dist/lint/post-synth/gha049.d.ts +12 -0
- package/dist/lint/post-synth/gha049.d.ts.map +1 -0
- package/dist/lint/post-synth/gha050.d.ts +12 -0
- package/dist/lint/post-synth/gha050.d.ts.map +1 -0
- package/dist/lint/post-synth/gha051.d.ts +12 -0
- package/dist/lint/post-synth/gha051.d.ts.map +1 -0
- package/dist/lint/post-synth/gha052.d.ts +11 -0
- package/dist/lint/post-synth/gha052.d.ts.map +1 -0
- package/dist/lint/post-synth/gha053.d.ts +11 -0
- package/dist/lint/post-synth/gha053.d.ts.map +1 -0
- package/dist/lint/post-synth/gha054.d.ts +11 -0
- package/dist/lint/post-synth/gha054.d.ts.map +1 -0
- package/dist/lint/post-synth/gha055.d.ts +11 -0
- package/dist/lint/post-synth/gha055.d.ts.map +1 -0
- package/dist/lint/post-synth/gha056.d.ts +10 -0
- package/dist/lint/post-synth/gha056.d.ts.map +1 -0
- package/dist/lint/post-synth/gha057.d.ts +12 -0
- package/dist/lint/post-synth/gha057.d.ts.map +1 -0
- package/dist/lint/post-synth/gha058.d.ts +12 -0
- package/dist/lint/post-synth/gha058.d.ts.map +1 -0
- package/dist/lint/post-synth/index.d.ts +3 -0
- package/dist/lint/post-synth/index.d.ts.map +1 -0
- package/dist/lint/post-synth/yaml-helpers.d.ts +143 -0
- package/dist/lint/post-synth/yaml-helpers.d.ts.map +1 -0
- package/dist/lint/rules/data/deprecated-versions.d.ts +8 -0
- package/dist/lint/rules/data/deprecated-versions.d.ts.map +1 -0
- package/dist/lint/rules/data/flagged-actions.d.ts +19 -0
- package/dist/lint/rules/data/flagged-actions.d.ts.map +1 -0
- package/dist/lint/rules/data/known-action-slugs.d.ts +13 -0
- package/dist/lint/rules/data/known-action-slugs.d.ts.map +1 -0
- package/dist/lint/rules/data/known-actions.d.ts +8 -0
- package/dist/lint/rules/data/known-actions.d.ts.map +1 -0
- package/dist/lint/rules/data/preinstalled-tools.d.ts +11 -0
- package/dist/lint/rules/data/preinstalled-tools.d.ts.map +1 -0
- package/dist/lint/rules/data/recommended-inputs.d.ts +6 -0
- package/dist/lint/rules/data/recommended-inputs.d.ts.map +1 -0
- package/dist/lint/rules/data/risky-features.d.ts +18 -0
- package/dist/lint/rules/data/risky-features.d.ts.map +1 -0
- package/dist/lint/rules/data/secret-patterns.d.ts +8 -0
- package/dist/lint/rules/data/secret-patterns.d.ts.map +1 -0
- package/dist/lint/rules/data/trusted-action-owners.d.ts +13 -0
- package/dist/lint/rules/data/trusted-action-owners.d.ts.map +1 -0
- package/dist/lint/rules/data/untrusted-contexts.d.ts +19 -0
- package/dist/lint/rules/data/untrusted-contexts.d.ts.map +1 -0
- package/dist/lint/rules/deprecated-action-version.d.ts +8 -0
- package/dist/lint/rules/deprecated-action-version.d.ts.map +1 -0
- package/dist/lint/rules/detect-secrets.d.ts +9 -0
- package/dist/lint/rules/detect-secrets.d.ts.map +1 -0
- package/dist/lint/rules/extract-inline-structs.d.ts +8 -0
- package/dist/lint/rules/extract-inline-structs.d.ts.map +1 -0
- package/dist/lint/rules/file-job-limit.d.ts +8 -0
- package/dist/lint/rules/file-job-limit.d.ts.map +1 -0
- package/dist/lint/rules/index.d.ts +17 -0
- package/dist/lint/rules/index.d.ts.map +1 -0
- package/dist/lint/rules/job-timeout.d.ts +8 -0
- package/dist/lint/rules/job-timeout.d.ts.map +1 -0
- package/dist/lint/rules/missing-recommended-inputs.d.ts +8 -0
- package/dist/lint/rules/missing-recommended-inputs.d.ts.map +1 -0
- package/dist/lint/rules/no-hardcoded-secrets.d.ts +8 -0
- package/dist/lint/rules/no-hardcoded-secrets.d.ts.map +1 -0
- package/dist/lint/rules/no-raw-expressions.d.ts +8 -0
- package/dist/lint/rules/no-raw-expressions.d.ts.map +1 -0
- package/dist/lint/rules/suggest-cache.d.ts +8 -0
- package/dist/lint/rules/suggest-cache.d.ts.map +1 -0
- package/dist/lint/rules/use-condition-builders.d.ts +9 -0
- package/dist/lint/rules/use-condition-builders.d.ts.map +1 -0
- package/dist/lint/rules/use-matrix-builder.d.ts +9 -0
- package/dist/lint/rules/use-matrix-builder.d.ts.map +1 -0
- package/dist/lint/rules/use-typed-actions.d.ts +8 -0
- package/dist/lint/rules/use-typed-actions.d.ts.map +1 -0
- package/dist/lint/rules/validate-concurrency.d.ts +8 -0
- package/dist/lint/rules/validate-concurrency.d.ts.map +1 -0
- package/dist/lsp/completions.d.ts +6 -0
- package/dist/lsp/completions.d.ts.map +1 -0
- package/dist/lsp/hover.d.ts +6 -0
- package/dist/lsp/hover.d.ts.map +1 -0
- package/dist/manifest.json +1 -1
- package/dist/mcp/context-tools.d.ts +19 -0
- package/dist/mcp/context-tools.d.ts.map +1 -0
- package/dist/package-cli.d.ts +3 -0
- package/dist/package-cli.d.ts.map +1 -0
- package/dist/plugin.d.ts +9 -0
- package/dist/plugin.d.ts.map +1 -0
- package/dist/serializer.d.ts +13 -0
- package/dist/serializer.d.ts.map +1 -0
- package/dist/spec/fetch.d.ts +26 -0
- package/dist/spec/fetch.d.ts.map +1 -0
- package/dist/validate-cli.d.ts +3 -0
- package/dist/validate-cli.d.ts.map +1 -0
- package/dist/validate.d.ts +12 -0
- package/dist/validate.d.ts.map +1 -0
- package/dist/variables.d.ts +42 -0
- package/dist/variables.d.ts.map +1 -0
- package/package.json +19 -5
- package/src/lint/post-synth/index.ts +95 -0
- package/src/mcp/context-tools.ts +2 -5
- package/src/plugin.ts +2 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setup-go.d.ts","sourceRoot":"","sources":["../../src/composites/setup-go.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAE/C,MAAM,WAAW,YAAY;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE;QACT,IAAI,CAAC,EAAE,OAAO,CAAC,qBAAqB,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;KACvD,CAAC;CACH;AAED,eAAO,MAAM,OAAO,2GAgBP,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Step } from "../generated/index.js";
|
|
2
|
+
export interface SetupNodeProps {
|
|
3
|
+
nodeVersion?: string;
|
|
4
|
+
registryUrl?: string;
|
|
5
|
+
cache?: string;
|
|
6
|
+
cacheFilePath?: string;
|
|
7
|
+
defaults?: {
|
|
8
|
+
step?: Partial<ConstructorParameters<typeof Step>[0]>;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export declare const SetupNode: import("@intentius/chant").CompositeDefinition<SetupNodeProps, import("@intentius/chant").CompositeMembers>;
|
|
12
|
+
//# sourceMappingURL=setup-node.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setup-node.d.ts","sourceRoot":"","sources":["../../src/composites/setup-node.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAE/C,MAAM,WAAW,cAAc;IAC7B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE;QACT,IAAI,CAAC,EAAE,OAAO,CAAC,qBAAqB,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;KACvD,CAAC;CACH;AAED,eAAO,MAAM,SAAS,6GAiBP,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Step } from "../generated/index.js";
|
|
2
|
+
export interface SetupPythonProps {
|
|
3
|
+
pythonVersion?: string;
|
|
4
|
+
cache?: string;
|
|
5
|
+
architecture?: string;
|
|
6
|
+
defaults?: {
|
|
7
|
+
step?: Partial<ConstructorParameters<typeof Step>[0]>;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
export declare const SetupPython: import("@intentius/chant").CompositeDefinition<SetupPythonProps, import("@intentius/chant").CompositeMembers>;
|
|
11
|
+
//# sourceMappingURL=setup-python.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setup-python.d.ts","sourceRoot":"","sources":["../../src/composites/setup-python.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAE/C,MAAM,WAAW,gBAAgB;IAC/B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE;QACT,IAAI,CAAC,EAAE,OAAO,CAAC,qBAAqB,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;KACvD,CAAC;CACH;AAED,eAAO,MAAM,WAAW,+GAgBP,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Step } from "../generated/index.js";
|
|
2
|
+
export interface UploadArtifactProps {
|
|
3
|
+
name: string;
|
|
4
|
+
path: string;
|
|
5
|
+
retentionDays?: number;
|
|
6
|
+
compressionLevel?: number;
|
|
7
|
+
defaults?: {
|
|
8
|
+
step?: Partial<ConstructorParameters<typeof Step>[0]>;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export declare const UploadArtifact: import("@intentius/chant").CompositeDefinition<UploadArtifactProps, import("@intentius/chant").CompositeMembers>;
|
|
12
|
+
//# sourceMappingURL=upload-artifact.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upload-artifact.d.ts","sourceRoot":"","sources":["../../src/composites/upload-artifact.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAE/C,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,EAAE;QACT,IAAI,CAAC,EAAE,OAAO,CAAC,qBAAqB,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;KACvD,CAAC;CACH;AAED,eAAO,MAAM,cAAc,kHAkBP,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Coverage analysis for GitHub Actions lexicon.
|
|
3
|
+
*/
|
|
4
|
+
import { computeCoverage, overallPct, formatSummary, formatVerbose, checkThresholds, type CoverageReport, type CoverageThresholds } from "@intentius/chant/codegen/coverage";
|
|
5
|
+
export type { CoverageReport, CoverageThresholds };
|
|
6
|
+
export { computeCoverage, overallPct, formatSummary, formatVerbose, checkThresholds };
|
|
7
|
+
/**
|
|
8
|
+
* Run coverage analysis for the GitHub Actions lexicon.
|
|
9
|
+
*/
|
|
10
|
+
export declare function analyzeGitHubCoverage(opts?: {
|
|
11
|
+
basePath?: string;
|
|
12
|
+
verbose?: boolean;
|
|
13
|
+
minOverall?: number;
|
|
14
|
+
}): Promise<CoverageReport>;
|
|
15
|
+
//# sourceMappingURL=coverage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"coverage.d.ts","sourceRoot":"","sources":["../src/coverage.ts"],"names":[],"mappings":"AAAA;;GAEG;AAKH,OAAO,EACL,eAAe,EACf,UAAU,EACV,aAAa,EACb,aAAa,EACb,eAAe,EACf,KAAK,cAAc,EACnB,KAAK,kBAAkB,EACxB,MAAM,mCAAmC,CAAC;AAE3C,YAAY,EAAE,cAAc,EAAE,kBAAkB,EAAE,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,aAAa,EAAE,aAAa,EAAE,eAAe,EAAE,CAAC;AAEtF;;GAEG;AACH,wBAAsB,qBAAqB,CAAC,IAAI,CAAC,EAAE;IACjD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,GAAG,OAAO,CAAC,cAAc,CAAC,CAqB1B"}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GitHub Actions expression system.
|
|
3
|
+
*
|
|
4
|
+
* Provides a typed Expression class and context accessors for building
|
|
5
|
+
* ${{ }} expressions in GitHub Actions workflows.
|
|
6
|
+
*/
|
|
7
|
+
import { INTRINSIC_MARKER, type Intrinsic } from "@intentius/chant/intrinsic";
|
|
8
|
+
/**
|
|
9
|
+
* A GitHub Actions expression that serializes to `${{ raw }}`.
|
|
10
|
+
*/
|
|
11
|
+
export declare class Expression implements Intrinsic {
|
|
12
|
+
readonly [INTRINSIC_MARKER]: true;
|
|
13
|
+
private readonly _raw;
|
|
14
|
+
constructor(raw: string);
|
|
15
|
+
/** The raw expression string without ${{ }} wrapper. */
|
|
16
|
+
raw(): string;
|
|
17
|
+
/** Returns the expression wrapped in ${{ }}. */
|
|
18
|
+
toString(): string;
|
|
19
|
+
toJSON(): string;
|
|
20
|
+
/** YAML serialization — plain string with ${{ }}. */
|
|
21
|
+
toYAML(): string;
|
|
22
|
+
/** Logical AND with another expression. */
|
|
23
|
+
and(other: Expression): Expression;
|
|
24
|
+
/** Logical OR with another expression. */
|
|
25
|
+
or(other: Expression): Expression;
|
|
26
|
+
/** Logical NOT of this expression. */
|
|
27
|
+
not(): Expression;
|
|
28
|
+
/** Equality comparison. */
|
|
29
|
+
eq(value: string | Expression): Expression;
|
|
30
|
+
/** Inequality comparison. */
|
|
31
|
+
ne(value: string | Expression): Expression;
|
|
32
|
+
}
|
|
33
|
+
/** GitHub context — github.* properties. */
|
|
34
|
+
export declare const github: {
|
|
35
|
+
readonly ref: Expression;
|
|
36
|
+
readonly sha: Expression;
|
|
37
|
+
readonly actor: Expression;
|
|
38
|
+
readonly repository: Expression;
|
|
39
|
+
readonly repositoryOwner: Expression;
|
|
40
|
+
readonly event: Expression;
|
|
41
|
+
readonly eventName: Expression;
|
|
42
|
+
readonly runId: Expression;
|
|
43
|
+
readonly runNumber: Expression;
|
|
44
|
+
readonly workflow: Expression;
|
|
45
|
+
readonly workspace: Expression;
|
|
46
|
+
readonly token: Expression;
|
|
47
|
+
readonly job: Expression;
|
|
48
|
+
readonly refName: Expression;
|
|
49
|
+
readonly refType: Expression;
|
|
50
|
+
readonly headRef: Expression;
|
|
51
|
+
readonly baseRef: Expression;
|
|
52
|
+
readonly serverUrl: Expression;
|
|
53
|
+
readonly apiUrl: Expression;
|
|
54
|
+
readonly graphqlUrl: Expression;
|
|
55
|
+
readonly action: Expression;
|
|
56
|
+
readonly actionPath: Expression;
|
|
57
|
+
readonly triggeringActor: Expression;
|
|
58
|
+
};
|
|
59
|
+
/** Runner context — runner.* properties. */
|
|
60
|
+
export declare const runner: {
|
|
61
|
+
readonly os: Expression;
|
|
62
|
+
readonly arch: Expression;
|
|
63
|
+
readonly temp: Expression;
|
|
64
|
+
readonly toolCache: Expression;
|
|
65
|
+
readonly name: Expression;
|
|
66
|
+
};
|
|
67
|
+
/** Access a secret by name. */
|
|
68
|
+
export declare function secrets(name: string): Expression;
|
|
69
|
+
/** Access a matrix value by key. */
|
|
70
|
+
export declare function matrix(key: string): Expression;
|
|
71
|
+
/** Access a step output. */
|
|
72
|
+
export declare function steps(id: string): {
|
|
73
|
+
outputs(name: string): Expression;
|
|
74
|
+
};
|
|
75
|
+
/** Access a job output from a needed job. */
|
|
76
|
+
export declare function needs(job: string): {
|
|
77
|
+
outputs(name: string): Expression;
|
|
78
|
+
};
|
|
79
|
+
/** Access a workflow input. */
|
|
80
|
+
export declare function inputs(name: string): Expression;
|
|
81
|
+
/** Access a configuration variable. */
|
|
82
|
+
export declare function vars(name: string): Expression;
|
|
83
|
+
/** Access an environment variable. */
|
|
84
|
+
export declare function env(name: string): Expression;
|
|
85
|
+
/** Always run, regardless of status. */
|
|
86
|
+
export declare function always(): Expression;
|
|
87
|
+
/** Run only if a previous step has failed. */
|
|
88
|
+
export declare function failure(): Expression;
|
|
89
|
+
/** Run only if all previous steps succeeded (default). */
|
|
90
|
+
export declare function success(): Expression;
|
|
91
|
+
/** Run only if the workflow was cancelled. */
|
|
92
|
+
export declare function cancelled(): Expression;
|
|
93
|
+
/** Check if a string contains a substring. */
|
|
94
|
+
export declare function contains(haystack: Expression | string, needle: Expression | string): Expression;
|
|
95
|
+
/** Check if a string starts with a prefix. */
|
|
96
|
+
export declare function startsWith(value: Expression | string, prefix: Expression | string): Expression;
|
|
97
|
+
/** Convert a value to JSON. */
|
|
98
|
+
export declare function toJSON(value: Expression): Expression;
|
|
99
|
+
/** Parse a JSON string. */
|
|
100
|
+
export declare function fromJSON(json: Expression | string): Expression;
|
|
101
|
+
/** Format a string with placeholders. */
|
|
102
|
+
export declare function format(template: string, ...args: Expression[]): Expression;
|
|
103
|
+
/** Check if the ref matches a branch name. */
|
|
104
|
+
export declare function branch(name: string): Expression;
|
|
105
|
+
/** Check if the ref matches a tag prefix. */
|
|
106
|
+
export declare function tag(name: string): Expression;
|
|
107
|
+
//# sourceMappingURL=expression.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"expression.d.ts","sourceRoot":"","sources":["../src/expression.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,gBAAgB,EAAE,KAAK,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAE9E;;GAEG;AACH,qBAAa,UAAW,YAAW,SAAS;IAC1C,QAAQ,CAAC,CAAC,gBAAgB,CAAC,EAAG,IAAI,CAAU;IAC5C,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAS;gBAElB,GAAG,EAAE,MAAM;IAIvB,wDAAwD;IACxD,GAAG,IAAI,MAAM;IAIb,gDAAgD;IAChD,QAAQ,IAAI,MAAM;IAIlB,MAAM,IAAI,MAAM;IAIhB,qDAAqD;IACrD,MAAM,IAAI,MAAM;IAIhB,2CAA2C;IAC3C,GAAG,CAAC,KAAK,EAAE,UAAU,GAAG,UAAU;IAIlC,0CAA0C;IAC1C,EAAE,CAAC,KAAK,EAAE,UAAU,GAAG,UAAU;IAIjC,sCAAsC;IACtC,GAAG,IAAI,UAAU;IAIjB,2BAA2B;IAC3B,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,UAAU,GAAG,UAAU;IAK1C,6BAA6B;IAC7B,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,UAAU,GAAG,UAAU;CAI3C;AAID,4CAA4C;AAC5C,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;CAwBT,CAAC;AAEX,4CAA4C;AAC5C,eAAO,MAAM,MAAM;;;;;;CAMT,CAAC;AAEX,+BAA+B;AAC/B,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,UAAU,CAEhD;AAED,oCAAoC;AACpC,wBAAgB,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAE9C;AAED,4BAA4B;AAC5B,wBAAgB,KAAK,CAAC,EAAE,EAAE,MAAM,GAAG;IAAE,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,UAAU,CAAA;CAAE,CAMvE;AAED,6CAA6C;AAC7C,wBAAgB,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG;IAAE,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,UAAU,CAAA;CAAE,CAMxE;AAED,+BAA+B;AAC/B,wBAAgB,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,UAAU,CAE/C;AAED,uCAAuC;AACvC,wBAAgB,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,UAAU,CAE7C;AAED,sCAAsC;AACtC,wBAAgB,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,UAAU,CAE5C;AAID,wCAAwC;AACxC,wBAAgB,MAAM,IAAI,UAAU,CAEnC;AAED,8CAA8C;AAC9C,wBAAgB,OAAO,IAAI,UAAU,CAEpC;AAED,0DAA0D;AAC1D,wBAAgB,OAAO,IAAI,UAAU,CAEpC;AAED,8CAA8C;AAC9C,wBAAgB,SAAS,IAAI,UAAU,CAEtC;AAID,8CAA8C;AAC9C,wBAAgB,QAAQ,CAAC,QAAQ,EAAE,UAAU,GAAG,MAAM,EAAE,MAAM,EAAE,UAAU,GAAG,MAAM,GAAG,UAAU,CAI/F;AAED,8CAA8C;AAC9C,wBAAgB,UAAU,CAAC,KAAK,EAAE,UAAU,GAAG,MAAM,EAAE,MAAM,EAAE,UAAU,GAAG,MAAM,GAAG,UAAU,CAI9F;AAED,+BAA+B;AAC/B,wBAAgB,MAAM,CAAC,KAAK,EAAE,UAAU,GAAG,UAAU,CAEpD;AAED,2BAA2B;AAC3B,wBAAgB,QAAQ,CAAC,IAAI,EAAE,UAAU,GAAG,MAAM,GAAG,UAAU,CAG9D;AAED,yCAAyC;AACzC,wBAAgB,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,UAAU,EAAE,GAAG,UAAU,CAG1E;AAID,8CAA8C;AAC9C,wBAAgB,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,UAAU,CAE/C;AAED,6CAA6C;AAC7C,wBAAgB,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,UAAU,CAE5C"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare const Job: new (props: Record<string, unknown>, attributes?: Record<string, unknown>) => import("packages/core/src").Declarable & Record<string, string>;
|
|
2
|
+
export declare const ReusableWorkflowCallJob: new (props: Record<string, unknown>, attributes?: Record<string, unknown>) => import("packages/core/src").Declarable & Record<string, string>;
|
|
3
|
+
export declare const Workflow: new (props: Record<string, unknown>, attributes?: Record<string, unknown>) => import("packages/core/src").Declarable & Record<string, string>;
|
|
4
|
+
export declare const Concurrency: new (props: Record<string, unknown>) => Record<string, unknown>;
|
|
5
|
+
export declare const Container: new (props: Record<string, unknown>) => Record<string, unknown>;
|
|
6
|
+
export declare const Defaults: new (props: Record<string, unknown>) => Record<string, unknown>;
|
|
7
|
+
export declare const Environment: new (props: Record<string, unknown>) => Record<string, unknown>;
|
|
8
|
+
export declare const Permissions: new (props: Record<string, unknown>) => Record<string, unknown>;
|
|
9
|
+
export declare const PullRequestTargetTrigger: new (props: Record<string, unknown>) => Record<string, unknown>;
|
|
10
|
+
export declare const PullRequestTrigger: new (props: Record<string, unknown>) => Record<string, unknown>;
|
|
11
|
+
export declare const PushTrigger: new (props: Record<string, unknown>) => Record<string, unknown>;
|
|
12
|
+
export declare const RepositoryDispatchTrigger: new (props: Record<string, unknown>) => Record<string, unknown>;
|
|
13
|
+
export declare const ScheduleTrigger: new (props: Record<string, unknown>) => Record<string, unknown>;
|
|
14
|
+
export declare const Service: new (props: Record<string, unknown>) => Record<string, unknown>;
|
|
15
|
+
export declare const Step: new (props: Record<string, unknown>) => Record<string, unknown>;
|
|
16
|
+
export declare const Strategy: new (props: Record<string, unknown>) => Record<string, unknown>;
|
|
17
|
+
export declare const WorkflowCallTrigger: new (props: Record<string, unknown>) => Record<string, unknown>;
|
|
18
|
+
export declare const WorkflowDispatchTrigger: new (props: Record<string, unknown>) => Record<string, unknown>;
|
|
19
|
+
export declare const WorkflowInput: new (props: Record<string, unknown>) => Record<string, unknown>;
|
|
20
|
+
export declare const WorkflowOutput: new (props: Record<string, unknown>) => Record<string, unknown>;
|
|
21
|
+
export declare const WorkflowRunTrigger: new (props: Record<string, unknown>) => Record<string, unknown>;
|
|
22
|
+
export declare const WorkflowSecret: new (props: Record<string, unknown>) => Record<string, unknown>;
|
|
23
|
+
export { GitHub, Runner } from "../variables.js";
|
|
24
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/generated/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,GAAG,+IAAuD,CAAC;AACxE,eAAO,MAAM,uBAAuB,+IAA2E,CAAC;AAChH,eAAO,MAAM,QAAQ,+IAA4D,CAAC;AAElF,eAAO,MAAM,WAAW,iEAA2D,CAAC;AACpF,eAAO,MAAM,SAAS,iEAAyD,CAAC;AAChF,eAAO,MAAM,QAAQ,iEAAwD,CAAC;AAC9E,eAAO,MAAM,WAAW,iEAA2D,CAAC;AACpF,eAAO,MAAM,WAAW,iEAA2D,CAAC;AACpF,eAAO,MAAM,wBAAwB,iEAAwE,CAAC;AAC9G,eAAO,MAAM,kBAAkB,iEAAkE,CAAC;AAClG,eAAO,MAAM,WAAW,iEAA2D,CAAC;AACpF,eAAO,MAAM,yBAAyB,iEAAyE,CAAC;AAChH,eAAO,MAAM,eAAe,iEAA+D,CAAC;AAC5F,eAAO,MAAM,OAAO,iEAAuD,CAAC;AAC5E,eAAO,MAAM,IAAI,iEAAoD,CAAC;AACtE,eAAO,MAAM,QAAQ,iEAAwD,CAAC;AAC9E,eAAO,MAAM,mBAAmB,iEAAmE,CAAC;AACpG,eAAO,MAAM,uBAAuB,iEAAuE,CAAC;AAC5G,eAAO,MAAM,aAAa,iEAA6D,CAAC;AACxF,eAAO,MAAM,cAAc,iEAA8D,CAAC;AAC1F,eAAO,MAAM,kBAAkB,iEAAkE,CAAC;AAClG,eAAO,MAAM,cAAc,iEAA8D,CAAC;AAG1F,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../src/generated/runtime.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TypeScript code generator for GitHub Actions import.
|
|
3
|
+
*
|
|
4
|
+
* Converts a TemplateIR into TypeScript source code using
|
|
5
|
+
* the @intentius/chant-lexicon-github constructors.
|
|
6
|
+
*/
|
|
7
|
+
import type { TypeScriptGenerator, GeneratedFile } from "@intentius/chant/import/generator";
|
|
8
|
+
import type { TemplateIR } from "@intentius/chant/import/parser";
|
|
9
|
+
/**
|
|
10
|
+
* Generate TypeScript source code from a GitHub Actions IR.
|
|
11
|
+
*/
|
|
12
|
+
export declare class GitHubActionsGenerator implements TypeScriptGenerator {
|
|
13
|
+
generate(ir: TemplateIR): GeneratedFile[];
|
|
14
|
+
private collectNestedConstructors;
|
|
15
|
+
private emitProps;
|
|
16
|
+
private emitValue;
|
|
17
|
+
private emitLiteral;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=generator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generator.d.ts","sourceRoot":"","sources":["../../src/import/generator.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAC5F,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAiBjE;;GAEG;AACH,qBAAa,sBAAuB,YAAW,mBAAmB;IAChE,QAAQ,CAAC,EAAE,EAAE,UAAU,GAAG,aAAa,EAAE;IA2BzC,OAAO,CAAC,yBAAyB;IASjC,OAAO,CAAC,SAAS;IAejB,OAAO,CAAC,SAAS;IAYjB,OAAO,CAAC,WAAW;CA0BpB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GitHub Actions YAML parser for `chant import`.
|
|
3
|
+
*
|
|
4
|
+
* Parses existing .github/workflows/*.yml files into TemplateIR.
|
|
5
|
+
*/
|
|
6
|
+
import type { TemplateParser, TemplateIR } from "@intentius/chant/import/parser";
|
|
7
|
+
/**
|
|
8
|
+
* GitHub Actions YAML parser implementation.
|
|
9
|
+
*/
|
|
10
|
+
export declare class GitHubActionsParser implements TemplateParser {
|
|
11
|
+
parse(content: string): TemplateIR;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=parser.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parser.d.ts","sourceRoot":"","sources":["../../src/import/parser.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAc,MAAM,gCAAgC,CAAC;AAW7F;;GAEG;AACH,qBAAa,mBAAoB,YAAW,cAAc;IACxD,KAAK,CAAC,OAAO,EAAE,MAAM,GAAG,UAAU;CAmDnC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export { githubSerializer } from "./serializer.js";
|
|
2
|
+
export { githubPlugin } from "./plugin.js";
|
|
3
|
+
export { Expression, github, runner, secrets, matrix, steps, needs, inputs, vars, env, always, failure, success, cancelled, contains, startsWith, toJSON, fromJSON, format, branch, tag, } from "./expression.js";
|
|
4
|
+
export { GitHub, Runner } from "./variables.js";
|
|
5
|
+
export * from "./generated/index.js";
|
|
6
|
+
export { Checkout, SetupNode, SetupGo, SetupPython, CacheAction, UploadArtifact, DownloadArtifact, NodeCI, NodePipeline, BunPipeline, PnpmPipeline, YarnPipeline, PythonCI, DockerBuild, DeployEnvironment, GoCI, Dependabot, DependabotConfig, } from "./composites/index.js";
|
|
7
|
+
export type { CheckoutProps, SetupNodeProps, SetupGoProps, SetupPythonProps, CacheActionProps, UploadArtifactProps, DownloadArtifactProps, NodeCIProps, NodePipelineProps, PythonCIProps, DockerBuildProps, DeployEnvironmentProps, GoCIProps, DependabotProps, DependabotConfigProps, DependabotUpdate, DependabotEcosystem, } from "./composites/index.js";
|
|
8
|
+
export { fetchWorkflowSchema, fetchSchemas } from "./spec/fetch.js";
|
|
9
|
+
export { parseWorkflowSchema, githubShortName, githubServiceName } from "./codegen/parse.js";
|
|
10
|
+
export type { GitHubParseResult, ParsedResource, ParsedProperty, ParsedPropertyType, ParsedEnum } from "./codegen/parse.js";
|
|
11
|
+
export { generate, writeGeneratedFiles } from "./codegen/generate.js";
|
|
12
|
+
export { packageLexicon } from "./codegen/package.js";
|
|
13
|
+
export type { PackageOptions, PackageResult } from "./codegen/package.js";
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAGhD,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAGxC,OAAO,EACL,UAAU,EACV,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAChE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EACnC,QAAQ,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAC9C,MAAM,EAAE,GAAG,GACZ,MAAM,cAAc,CAAC;AAGtB,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAI7C,cAAc,mBAAmB,CAAC;AAGlC,OAAO,EACL,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,WAAW,EACzC,WAAW,EAAE,cAAc,EAAE,gBAAgB,EAC7C,MAAM,EACN,YAAY,EAAE,WAAW,EAAE,YAAY,EAAE,YAAY,EACrD,QAAQ,EACR,WAAW,EACX,iBAAiB,EACjB,IAAI,EACJ,UAAU,EAAE,gBAAgB,GAC7B,MAAM,oBAAoB,CAAC;AAC5B,YAAY,EACV,aAAa,EAAE,cAAc,EAAE,YAAY,EAAE,gBAAgB,EAC7D,gBAAgB,EAAE,mBAAmB,EAAE,qBAAqB,EAC5D,WAAW,EACX,iBAAiB,EACjB,aAAa,EACb,gBAAgB,EAChB,sBAAsB,EACtB,SAAS,EACT,eAAe,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,mBAAmB,GAC9E,MAAM,oBAAoB,CAAC;AAG5B,OAAO,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AACjE,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAC1F,YAAY,EAAE,iBAAiB,EAAE,cAAc,EAAE,cAAc,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAGzH,OAAO,EAAE,QAAQ,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,YAAY,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC"}
|
package/dist/integrity.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"algorithm": "sha256",
|
|
3
3
|
"artifacts": {
|
|
4
|
-
"manifest.json": "
|
|
4
|
+
"manifest.json": "10771b6add0980cd49b4089f1113219b8e9be97a449361cebcdc0a2982ba3647",
|
|
5
5
|
"meta.json": "798c5f5f37b0174756d2451299acfdc95c014f11d06d32b9153bbdfa9f3a580c",
|
|
6
6
|
"types/index.d.ts": "39c0791f0e58025bcef82e0f7a92240508f899fc2771d5dd51b2369b4d330f13",
|
|
7
7
|
"rules/deprecated-action-version.ts": "d41e6e532ab7f623af1bee4ac5279fcb2baada7defa1c5d022a5bc71983e8797",
|
|
@@ -67,5 +67,5 @@
|
|
|
67
67
|
"skills/chant-github-patterns.md": "bb3abef289a8fdfcf07d6bb2d7289dcb2f38bc0cb0321ea320b78b45a6f548c0",
|
|
68
68
|
"skills/chant-github-security.md": "aab111cb0871cad30281ce48d7da23663689619351029219e2be019a1a61e394"
|
|
69
69
|
},
|
|
70
|
-
"composite": "
|
|
70
|
+
"composite": "3fd009c480fc8a3c927d5131bfc0c0ce6d93c562db6bd66405230d98b3a35106"
|
|
71
71
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GHA006: Duplicate Workflow Name
|
|
3
|
+
*
|
|
4
|
+
* Detects multiple workflows sharing the same `name:` value.
|
|
5
|
+
*/
|
|
6
|
+
import type { PostSynthCheck } from "@intentius/chant/lint/post-synth";
|
|
7
|
+
export declare const gha006: PostSynthCheck;
|
|
8
|
+
//# sourceMappingURL=gha006.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gha006.d.ts","sourceRoot":"","sources":["../../../src/lint/post-synth/gha006.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAyC,MAAM,kCAAkC,CAAC;AAI9G,eAAO,MAAM,MAAM,EAAE,cA+CpB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gha009.d.ts","sourceRoot":"","sources":["../../../src/lint/post-synth/gha009.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAyC,MAAM,kCAAkC,CAAC;AAG9G,eAAO,MAAM,MAAM,EAAE,cAgCpB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gha011.d.ts","sourceRoot":"","sources":["../../../src/lint/post-synth/gha011.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAyC,MAAM,kCAAkC,CAAC;AAG9G,eAAO,MAAM,MAAM,EAAE,cA8BpB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GHA013: Missing Job-Level Permissions for Sensitive Triggers
|
|
3
|
+
*
|
|
4
|
+
* Flags jobs without explicit `permissions:` when the workflow uses
|
|
5
|
+
* `pull_request_target` or `workflow_dispatch` triggers.
|
|
6
|
+
*/
|
|
7
|
+
import type { PostSynthCheck } from "@intentius/chant/lint/post-synth";
|
|
8
|
+
export declare const gha013: PostSynthCheck;
|
|
9
|
+
//# sourceMappingURL=gha013.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gha013.d.ts","sourceRoot":"","sources":["../../../src/lint/post-synth/gha013.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAyC,MAAM,kCAAkC,CAAC;AAG9G,eAAO,MAAM,MAAM,EAAE,cA6BpB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GHA017: Missing Permissions
|
|
3
|
+
*
|
|
4
|
+
* Flags workflows without an explicit `permissions:` block.
|
|
5
|
+
*/
|
|
6
|
+
import type { PostSynthCheck } from "@intentius/chant/lint/post-synth";
|
|
7
|
+
export declare const gha017: PostSynthCheck;
|
|
8
|
+
//# sourceMappingURL=gha017.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gha017.d.ts","sourceRoot":"","sources":["../../../src/lint/post-synth/gha017.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAyC,MAAM,kCAAkC,CAAC;AAG9G,eAAO,MAAM,MAAM,EAAE,cAsBpB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GHA018: Pull Request Target + Checkout Security Risk
|
|
3
|
+
*
|
|
4
|
+
* Flags workflows using `pull_request_target` trigger with a checkout action
|
|
5
|
+
* in steps — this is a known security anti-pattern.
|
|
6
|
+
*/
|
|
7
|
+
import type { PostSynthCheck } from "@intentius/chant/lint/post-synth";
|
|
8
|
+
export declare const gha018: PostSynthCheck;
|
|
9
|
+
//# sourceMappingURL=gha018.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gha018.d.ts","sourceRoot":"","sources":["../../../src/lint/post-synth/gha018.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAyC,MAAM,kCAAkC,CAAC;AAG9G,eAAO,MAAM,MAAM,EAAE,cA6BpB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GHA019: Circular Needs Chain
|
|
3
|
+
*
|
|
4
|
+
* DFS-based cycle detection on the job `needs:` dependency graph.
|
|
5
|
+
*/
|
|
6
|
+
import type { PostSynthCheck, PostSynthContext, PostSynthDiagnostic } from "@intentius/chant/lint/post-synth";
|
|
7
|
+
export declare function checkCircularNeeds(ctx: PostSynthContext): PostSynthDiagnostic[];
|
|
8
|
+
export declare const gha019: PostSynthCheck;
|
|
9
|
+
//# sourceMappingURL=gha019.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gha019.d.ts","sourceRoot":"","sources":["../../../src/lint/post-synth/gha019.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAG9G,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,gBAAgB,GAAG,mBAAmB,EAAE,CAqD/E;AAED,eAAO,MAAM,MAAM,EAAE,cAOpB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GHA021: Checkout Action Without Pinned SHA
|
|
3
|
+
*
|
|
4
|
+
* Flags `actions/checkout` usage that references a tag (e.g. v4) instead of
|
|
5
|
+
* a pinned commit SHA.
|
|
6
|
+
*/
|
|
7
|
+
import type { PostSynthCheck } from "@intentius/chant/lint/post-synth";
|
|
8
|
+
export declare const gha021: PostSynthCheck;
|
|
9
|
+
//# sourceMappingURL=gha021.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gha021.d.ts","sourceRoot":"","sources":["../../../src/lint/post-synth/gha021.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAyC,MAAM,kCAAkC,CAAC;AAG9G,eAAO,MAAM,MAAM,EAAE,cAqCpB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GHA022: Job Without timeout-minutes
|
|
3
|
+
*
|
|
4
|
+
* Flags jobs that do not specify `timeout-minutes`, which can lead to
|
|
5
|
+
* hung workflows consuming runner minutes.
|
|
6
|
+
*/
|
|
7
|
+
import type { PostSynthCheck } from "@intentius/chant/lint/post-synth";
|
|
8
|
+
export declare const gha022: PostSynthCheck;
|
|
9
|
+
//# sourceMappingURL=gha022.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gha022.d.ts","sourceRoot":"","sources":["../../../src/lint/post-synth/gha022.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAyC,MAAM,kCAAkC,CAAC;AAG9G,eAAO,MAAM,MAAM,EAAE,cA0CpB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GHA023: Deprecated set-output Command
|
|
3
|
+
*
|
|
4
|
+
* Flags usage of `::set-output` in run steps, which has been deprecated
|
|
5
|
+
* in favor of `$GITHUB_OUTPUT`.
|
|
6
|
+
*/
|
|
7
|
+
import type { PostSynthCheck } from "@intentius/chant/lint/post-synth";
|
|
8
|
+
export declare const gha023: PostSynthCheck;
|
|
9
|
+
//# sourceMappingURL=gha023.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gha023.d.ts","sourceRoot":"","sources":["../../../src/lint/post-synth/gha023.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAyC,MAAM,kCAAkC,CAAC;AAG9G,eAAO,MAAM,MAAM,EAAE,cAiCpB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GHA024: Missing Concurrency for Deploy Workflows
|
|
3
|
+
*
|
|
4
|
+
* Flags deploy workflows that lack a `concurrency:` block, which risks
|
|
5
|
+
* overlapping deployments.
|
|
6
|
+
*/
|
|
7
|
+
import type { PostSynthCheck } from "@intentius/chant/lint/post-synth";
|
|
8
|
+
export declare const gha024: PostSynthCheck;
|
|
9
|
+
//# sourceMappingURL=gha024.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gha024.d.ts","sourceRoot":"","sources":["../../../src/lint/post-synth/gha024.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAyC,MAAM,kCAAkC,CAAC;AAG9G,eAAO,MAAM,MAAM,EAAE,cA+BpB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GHA025: Using `pull_request_target` Without Restrictions
|
|
3
|
+
*
|
|
4
|
+
* Flags workflows that use `pull_request_target` without a `types:` filter,
|
|
5
|
+
* which can expose secrets to untrusted fork PRs.
|
|
6
|
+
*/
|
|
7
|
+
import type { PostSynthCheck } from "@intentius/chant/lint/post-synth";
|
|
8
|
+
export declare const gha025: PostSynthCheck;
|
|
9
|
+
//# sourceMappingURL=gha025.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gha025.d.ts","sourceRoot":"","sources":["../../../src/lint/post-synth/gha025.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAyC,MAAM,kCAAkC,CAAC;AAG9G,eAAO,MAAM,MAAM,EAAE,cA+BpB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GHA026: Secret Passed to Action Without `environment` Protection
|
|
3
|
+
*
|
|
4
|
+
* Flags workflows that reference `secrets.` in steps but have no
|
|
5
|
+
* `environment:` key in any job, meaning secrets lack deployment
|
|
6
|
+
* protection rules.
|
|
7
|
+
*/
|
|
8
|
+
import type { PostSynthCheck } from "@intentius/chant/lint/post-synth";
|
|
9
|
+
export declare const gha026: PostSynthCheck;
|
|
10
|
+
//# sourceMappingURL=gha026.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gha026.d.ts","sourceRoot":"","sources":["../../../src/lint/post-synth/gha026.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAyC,MAAM,kCAAkC,CAAC;AAG9G,eAAO,MAAM,MAAM,EAAE,cA4BpB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GHA027: Missing `if: always()` on Cleanup Steps
|
|
3
|
+
*
|
|
4
|
+
* Flags steps whose name contains "cleanup", "teardown", or "clean up"
|
|
5
|
+
* (case-insensitive) that lack an `if:` condition. Cleanup steps should
|
|
6
|
+
* typically run with `if: always()` so they execute even when prior steps fail.
|
|
7
|
+
*/
|
|
8
|
+
import type { PostSynthCheck } from "@intentius/chant/lint/post-synth";
|
|
9
|
+
export declare const gha027: PostSynthCheck;
|
|
10
|
+
//# sourceMappingURL=gha027.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gha027.d.ts","sourceRoot":"","sources":["../../../src/lint/post-synth/gha027.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAyC,MAAM,kCAAkC,CAAC;AAK9G,eAAO,MAAM,MAAM,EAAE,cA2CpB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GHA028: Workflow With No `on` Triggers
|
|
3
|
+
*
|
|
4
|
+
* Flags workflow files that lack a top-level `on:` key, which means
|
|
5
|
+
* the workflow will never be triggered.
|
|
6
|
+
*/
|
|
7
|
+
import type { PostSynthCheck } from "@intentius/chant/lint/post-synth";
|
|
8
|
+
export declare const gha028: PostSynthCheck;
|
|
9
|
+
//# sourceMappingURL=gha028.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gha028.d.ts","sourceRoot":"","sources":["../../../src/lint/post-synth/gha028.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAyC,MAAM,kCAAkC,CAAC;AAG9G,eAAO,MAAM,MAAM,EAAE,cA0BpB,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GHA029: Unpinned Action or Reusable-Workflow Reference
|
|
3
|
+
*
|
|
4
|
+
* Flags any `uses:` (step action or job-level reusable workflow) that is pinned
|
|
5
|
+
* to a mutable tag or branch instead of a full 40-character commit SHA. A tag
|
|
6
|
+
* can be repointed to malicious code after review, so every external reference
|
|
7
|
+
* is a supply-chain trust decision.
|
|
8
|
+
*
|
|
9
|
+
* `actions/checkout` is intentionally left to the more specific GHA021. Local
|
|
10
|
+
* references (`./`, `../`) and `docker://` images (GHA030) are out of scope.
|
|
11
|
+
* Owners in the trusted allowlist are exempt.
|
|
12
|
+
*/
|
|
13
|
+
import type { PostSynthCheck } from "@intentius/chant/lint/post-synth";
|
|
14
|
+
export interface UnpinnedRef {
|
|
15
|
+
job: string;
|
|
16
|
+
ref: string;
|
|
17
|
+
slug: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Find every action/reusable-workflow `uses:` that is not pinned to a commit
|
|
21
|
+
* SHA. Exposed as a pure function so the allowlist behaviour is testable.
|
|
22
|
+
*/
|
|
23
|
+
export declare function findUnpinnedActions(yaml: string, trustedOwners?: ReadonlySet<string>): UnpinnedRef[];
|
|
24
|
+
export declare const gha029: PostSynthCheck;
|
|
25
|
+
//# sourceMappingURL=gha029.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gha029.d.ts","sourceRoot":"","sources":["../../../src/lint/post-synth/gha029.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAyC,MAAM,kCAAkC,CAAC;AAM9G,MAAM,WAAW,WAAW;IAC1B,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,MAAM,EACZ,aAAa,GAAE,WAAW,CAAC,MAAM,CAAyB,GACzD,WAAW,EAAE,CAWf;AAED,eAAO,MAAM,MAAM,EAAE,cAsBpB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GHA030: Container Image Without an Immutable Digest
|
|
3
|
+
*
|
|
4
|
+
* Flags job `container:` images, `services:` images, and `docker://` step
|
|
5
|
+
* references that are not pinned to an immutable `@sha256:` digest. A mutable
|
|
6
|
+
* tag (`:latest`, `:20`) can be repointed to a different image after review.
|
|
7
|
+
*/
|
|
8
|
+
import type { PostSynthCheck } from "@intentius/chant/lint/post-synth";
|
|
9
|
+
export declare const gha030: PostSynthCheck;
|
|
10
|
+
//# sourceMappingURL=gha030.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gha030.d.ts","sourceRoot":"","sources":["../../../src/lint/post-synth/gha030.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAyC,MAAM,kCAAkC,CAAC;AAS9G,eAAO,MAAM,MAAM,EAAE,cAuBpB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GHA031: Action Reference Resembling a Well-Known Action
|
|
3
|
+
*
|
|
4
|
+
* Flags a `uses:` slug that is a near-miss (edit distance 1–2) of a popular
|
|
5
|
+
* action but not an exact match — a likely typo or a deliberate impersonation
|
|
6
|
+
* of the well-known action under different ownership. Advisory only; backed by
|
|
7
|
+
* a vendored reference list.
|
|
8
|
+
*/
|
|
9
|
+
import type { PostSynthCheck } from "@intentius/chant/lint/post-synth";
|
|
10
|
+
/** Levenshtein edit distance, capped: returns early once it exceeds `max`. */
|
|
11
|
+
export declare function editDistance(a: string, b: string, max: number): number;
|
|
12
|
+
/** Find the nearest known slug within edit distance 1–2 of `slug`, if any. */
|
|
13
|
+
export declare function nearestLookAlike(slug: string): string | undefined;
|
|
14
|
+
export declare const gha031: PostSynthCheck;
|
|
15
|
+
//# sourceMappingURL=gha031.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gha031.d.ts","sourceRoot":"","sources":["../../../src/lint/post-synth/gha031.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAyC,MAAM,kCAAkC,CAAC;AAM9G,8EAA8E;AAC9E,wBAAgB,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAiBtE;AAED,8EAA8E;AAC9E,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAYjE;AAED,eAAO,MAAM,MAAM,EAAE,cA0BpB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GHA032: Reference to an Archived or Compromised Action
|
|
3
|
+
*
|
|
4
|
+
* Flags a `uses:` slug that a vendored snapshot marks as archived/abandoned or
|
|
5
|
+
* carrying a disclosed security issue. Advisory only — the dataset is
|
|
6
|
+
* necessarily incomplete and may lag upstream changes.
|
|
7
|
+
*/
|
|
8
|
+
import type { PostSynthCheck } from "@intentius/chant/lint/post-synth";
|
|
9
|
+
export declare const gha032: PostSynthCheck;
|
|
10
|
+
//# sourceMappingURL=gha032.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gha032.d.ts","sourceRoot":"","sources":["../../../src/lint/post-synth/gha032.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAyC,MAAM,kCAAkC,CAAC;AAI9G,eAAO,MAAM,MAAM,EAAE,cA0BpB,CAAC"}
|