@firestartr/cli 2.11.0-snapshot-org-secrets-00 → 2.11.0-snapshot-patch-claims-4
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/build/index.js +1475 -1881
- package/build/packages/cdk8s_renderer/imports/firestartr.dev.d.ts +0 -491
- package/build/packages/cdk8s_renderer/src/charts/github/index.d.ts +0 -1
- package/build/packages/cdk8s_renderer/src/charts/index.d.ts +1 -2
- package/build/packages/cdk8s_renderer/src/claims/base/schemas/index.d.ts +0 -89
- package/build/packages/cdk8s_renderer/src/claims/github/index.d.ts +0 -89
- package/build/packages/cdk8s_renderer/src/claims/github/orgSettings.d.ts +0 -20
- package/build/packages/cdk8s_renderer/src/claims/github/orgsettings.schema.d.ts +0 -24
- package/build/packages/cdk8s_renderer/src/claims/stitching/errors.d.ts +14 -0
- package/build/packages/cdk8s_renderer/src/claims/stitching/protectedPaths.d.ts +3 -0
- package/build/packages/cdk8s_renderer/src/claims/stitching/stitching.d.ts +20 -0
- package/build/packages/cdk8s_renderer/src/claims/stitching/validateFeatureDescriptors.d.ts +1 -0
- package/build/packages/cdk8s_renderer/src/overriders/featureOverride.d.ts +2 -11
- package/build/packages/cdk8s_renderer/src/renderer/claims-render.d.ts +1 -1
- package/build/packages/features_preparer/index.d.ts +3 -0
- package/build/packages/features_preparer/src/index.d.ts +5 -2
- package/build/packages/features_preparer/src/installer.d.ts +2 -0
- package/build/packages/features_preparer/src/renderer.d.ts +2 -0
- package/build/packages/features_renderer/index.d.ts +4 -1
- package/build/packages/features_renderer/src/auxiliar.d.ts +6 -3
- package/build/packages/features_renderer/src/render.d.ts +2 -1
- package/build/packages/features_renderer/src/schema.d.ts +7 -1
- package/build/packages/github/index.d.ts +1 -7
- package/package.json +1 -1
- package/build/packages/cdk8s_renderer/src/charts/github/orgSecretSectionChart.d.ts +0 -8
- package/build/packages/cdk8s_renderer/src/claims/github/orgSecrets.schema.d.ts +0 -67
- package/build/packages/cdk8s_renderer/src/validations/githubOrgSecretSection.d.ts +0 -4
- package/build/packages/gh_provisioner/src/entities/ghorgsecretsection/index.d.ts +0 -7
- package/build/packages/gh_provisioner/src/entities/ghorgsecretsection/secrets.d.ts +0 -16
- package/build/packages/github/src/orgSecrets.d.ts +0 -10
|
@@ -529,30 +529,6 @@ export declare const GithubSchemas: ({
|
|
|
529
529
|
}[];
|
|
530
530
|
};
|
|
531
531
|
};
|
|
532
|
-
org_secrets: {
|
|
533
|
-
type: string;
|
|
534
|
-
properties: {
|
|
535
|
-
actions: {
|
|
536
|
-
type: string;
|
|
537
|
-
items: {
|
|
538
|
-
$ref: string;
|
|
539
|
-
};
|
|
540
|
-
};
|
|
541
|
-
codespaces: {
|
|
542
|
-
type: string;
|
|
543
|
-
items: {
|
|
544
|
-
$ref: string;
|
|
545
|
-
};
|
|
546
|
-
};
|
|
547
|
-
dependabot: {
|
|
548
|
-
type: string;
|
|
549
|
-
items: {
|
|
550
|
-
$ref: string;
|
|
551
|
-
};
|
|
552
|
-
};
|
|
553
|
-
};
|
|
554
|
-
additionalProperties: boolean;
|
|
555
|
-
};
|
|
556
532
|
};
|
|
557
533
|
additionalProperties: boolean;
|
|
558
534
|
required: string[];
|
|
@@ -723,69 +699,4 @@ export declare const GithubSchemas: ({
|
|
|
723
699
|
};
|
|
724
700
|
};
|
|
725
701
|
};
|
|
726
|
-
} | {
|
|
727
|
-
$schema: string;
|
|
728
|
-
$id: string;
|
|
729
|
-
definitions: {
|
|
730
|
-
GithubOrgClaimSecrets: {
|
|
731
|
-
$id: string;
|
|
732
|
-
type: string;
|
|
733
|
-
description: string;
|
|
734
|
-
properties: {
|
|
735
|
-
actions: {
|
|
736
|
-
type: string;
|
|
737
|
-
items: {
|
|
738
|
-
$ref: string;
|
|
739
|
-
};
|
|
740
|
-
};
|
|
741
|
-
codespaces: {
|
|
742
|
-
type: string;
|
|
743
|
-
items: {
|
|
744
|
-
$ref: string;
|
|
745
|
-
};
|
|
746
|
-
};
|
|
747
|
-
dependabot: {
|
|
748
|
-
type: string;
|
|
749
|
-
items: {
|
|
750
|
-
$ref: string;
|
|
751
|
-
};
|
|
752
|
-
};
|
|
753
|
-
};
|
|
754
|
-
additionalProperties: boolean;
|
|
755
|
-
};
|
|
756
|
-
GithubOrgClaimSecretRef: {
|
|
757
|
-
$id: string;
|
|
758
|
-
type: string;
|
|
759
|
-
description: string;
|
|
760
|
-
pattern: string;
|
|
761
|
-
};
|
|
762
|
-
GithubOrgClaimSecret: {
|
|
763
|
-
$id: string;
|
|
764
|
-
type: string;
|
|
765
|
-
description: string;
|
|
766
|
-
properties: {
|
|
767
|
-
name: {
|
|
768
|
-
type: string;
|
|
769
|
-
description: string;
|
|
770
|
-
};
|
|
771
|
-
value: {
|
|
772
|
-
$ref: string;
|
|
773
|
-
};
|
|
774
|
-
visibility: {
|
|
775
|
-
type: string;
|
|
776
|
-
enum: string[];
|
|
777
|
-
description: string;
|
|
778
|
-
};
|
|
779
|
-
selected_repositories: {
|
|
780
|
-
type: string;
|
|
781
|
-
items: {
|
|
782
|
-
type: string;
|
|
783
|
-
};
|
|
784
|
-
description: string;
|
|
785
|
-
};
|
|
786
|
-
};
|
|
787
|
-
required: string[];
|
|
788
|
-
additionalProperties: boolean;
|
|
789
|
-
};
|
|
790
|
-
};
|
|
791
702
|
})[];
|
|
@@ -35,26 +35,6 @@ export interface IGithubOrgSettingsClaim extends IOrgSettingsClaim {
|
|
|
35
35
|
visibility: 'all' | 'private' | 'selected';
|
|
36
36
|
selected_repositories?: string[];
|
|
37
37
|
}[];
|
|
38
|
-
org_secrets?: {
|
|
39
|
-
actions?: {
|
|
40
|
-
name: string;
|
|
41
|
-
value: string;
|
|
42
|
-
visibility?: 'all' | 'private' | 'selected';
|
|
43
|
-
selected_repositories?: string[];
|
|
44
|
-
}[];
|
|
45
|
-
codespaces?: {
|
|
46
|
-
name: string;
|
|
47
|
-
value: string;
|
|
48
|
-
visibility?: 'all' | 'private' | 'selected';
|
|
49
|
-
selected_repositories?: string[];
|
|
50
|
-
}[];
|
|
51
|
-
dependabot?: {
|
|
52
|
-
name: string;
|
|
53
|
-
value: string;
|
|
54
|
-
visibility?: 'all' | 'private' | 'selected';
|
|
55
|
-
selected_repositories?: string[];
|
|
56
|
-
}[];
|
|
57
|
-
};
|
|
58
38
|
};
|
|
59
39
|
};
|
|
60
40
|
}
|
|
@@ -146,30 +146,6 @@ declare const _default: {
|
|
|
146
146
|
}[];
|
|
147
147
|
};
|
|
148
148
|
};
|
|
149
|
-
org_secrets: {
|
|
150
|
-
type: string;
|
|
151
|
-
properties: {
|
|
152
|
-
actions: {
|
|
153
|
-
type: string;
|
|
154
|
-
items: {
|
|
155
|
-
$ref: string;
|
|
156
|
-
};
|
|
157
|
-
};
|
|
158
|
-
codespaces: {
|
|
159
|
-
type: string;
|
|
160
|
-
items: {
|
|
161
|
-
$ref: string;
|
|
162
|
-
};
|
|
163
|
-
};
|
|
164
|
-
dependabot: {
|
|
165
|
-
type: string;
|
|
166
|
-
items: {
|
|
167
|
-
$ref: string;
|
|
168
|
-
};
|
|
169
|
-
};
|
|
170
|
-
};
|
|
171
|
-
additionalProperties: boolean;
|
|
172
|
-
};
|
|
173
149
|
};
|
|
174
150
|
additionalProperties: boolean;
|
|
175
151
|
required: string[];
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type StitchingViolationReason = 'protected-path' | 'overwrite-protected' | 'duplicate-path' | 'user-declared-path';
|
|
2
|
+
export interface StitchingViolation {
|
|
3
|
+
feature: string;
|
|
4
|
+
op: string;
|
|
5
|
+
path: string;
|
|
6
|
+
reason: StitchingViolationReason;
|
|
7
|
+
conflictingFeature?: string;
|
|
8
|
+
message: string;
|
|
9
|
+
}
|
|
10
|
+
export declare class StitchingError extends Error {
|
|
11
|
+
violations: StitchingViolation[];
|
|
12
|
+
constructor(violations: StitchingViolation[]);
|
|
13
|
+
}
|
|
14
|
+
export declare function formatStitchingError(error: StitchingError): string;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface FeaturePatchEnvelope {
|
|
2
|
+
feature: string;
|
|
3
|
+
patches: Array<{
|
|
4
|
+
op: string;
|
|
5
|
+
path: string;
|
|
6
|
+
value?: unknown;
|
|
7
|
+
name?: string;
|
|
8
|
+
}>;
|
|
9
|
+
}
|
|
10
|
+
export declare function MOCK_STITCHING_FEATURES(mock?: (claim: unknown) => Promise<FeaturePatchEnvelope[]>): void;
|
|
11
|
+
export declare const STITCHED_CLAIM: unique symbol;
|
|
12
|
+
export declare function stitchClaim(claimAfterDefaults: unknown, preCollectedEnvelopes?: FeaturePatchEnvelope[], originalClaim?: unknown): Promise<unknown>;
|
|
13
|
+
export declare function extractClaimPatches(rendered: {
|
|
14
|
+
claimPatches?: unknown;
|
|
15
|
+
}): Array<{
|
|
16
|
+
op: string;
|
|
17
|
+
path: string;
|
|
18
|
+
value?: unknown;
|
|
19
|
+
name?: string;
|
|
20
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function validateFeatureDescriptors(claim: unknown): void;
|
|
@@ -12,7 +12,7 @@ export declare class FeaturesOverrider extends OverriderPatches {
|
|
|
12
12
|
getFeatureConfig(cr: any): any;
|
|
13
13
|
setUpAndRunRenderer(cr: any): any;
|
|
14
14
|
__validate(): Promise<boolean>;
|
|
15
|
-
__patches(claim: any, _previousCR: any): Promise<
|
|
15
|
+
__patches(claim: any, _previousCR: any): Promise<{
|
|
16
16
|
validate(_cr: any): boolean;
|
|
17
17
|
apply(cr: any): Promise<any>;
|
|
18
18
|
identify(): string;
|
|
@@ -20,14 +20,5 @@ export declare class FeaturesOverrider extends OverriderPatches {
|
|
|
20
20
|
applicableProviders: string[];
|
|
21
21
|
};
|
|
22
22
|
post(cr: any): Promise<import("../claims/github/repositoryFeature").IGithubRepositoryFeatureClaim>;
|
|
23
|
-
|
|
24
|
-
} | {
|
|
25
|
-
isPostPatch: boolean;
|
|
26
|
-
validate(): boolean;
|
|
27
|
-
apply(cr: any): Promise<any>;
|
|
28
|
-
identify(): string;
|
|
29
|
-
applicable(): {
|
|
30
|
-
applicableProviders: string[];
|
|
31
|
-
};
|
|
32
|
-
})[]>;
|
|
23
|
+
}[]>;
|
|
33
24
|
}
|
|
@@ -8,5 +8,5 @@ export declare function renderClaims(catalogScope: Construct, firestartrScope: C
|
|
|
8
8
|
crs: any;
|
|
9
9
|
renames?: IRenameResult[];
|
|
10
10
|
}): Promise<RenderedCrMap>;
|
|
11
|
-
export declare function renderClaim(catalogScope: Construct, firestartrScope: Construct, claim: any, patches: ICustomResourcePatch[], previousCR?: any | null, claimPath?: string, variableSectionPreviousCR?: any | false, variableSectionPatches?: ICustomResourcePatch[], crs?: any
|
|
11
|
+
export declare function renderClaim(catalogScope: Construct, firestartrScope: Construct, claim: any, patches: ICustomResourcePatch[], previousCR?: any | null, claimPath?: string, variableSectionPreviousCR?: any | false, variableSectionPatches?: ICustomResourcePatch[], crs?: any): Promise<IRenderClaimResult>;
|
|
12
12
|
export declare function renameVariantCrFiles(outputDir: string, renderedMap: RenderedCrMap): void;
|
|
@@ -5,5 +5,8 @@ declare const _default: {
|
|
|
5
5
|
renderFeatureFromPath: typeof import("./src/renderer").renderFeatureFromPath;
|
|
6
6
|
getFeatureConfig: typeof import("./src/installer").getFeatureConfig;
|
|
7
7
|
getFeatureConfigFromRef: typeof import("./src/installer").getFeatureConfigFromRef;
|
|
8
|
+
getFeatureClaimPatches: typeof import("./src/installer").getFeatureClaimPatches;
|
|
9
|
+
getFeatureClaimPatchesFromRef: typeof import("./src/installer").getFeatureClaimPatchesFromRef;
|
|
10
|
+
getFeatureClaimPatchesFromPath: typeof import("./src/renderer").getFeatureClaimPatchesFromPath;
|
|
8
11
|
};
|
|
9
12
|
export default _default;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import { getFeatureConfigFromRef, getFeatureConfig, prepareFeature } from './installer';
|
|
2
|
-
import { renderFeature, renderFeatureFromPath } from './renderer';
|
|
1
|
+
import { getFeatureConfigFromRef, getFeatureConfig, getFeatureClaimPatches, getFeatureClaimPatchesFromRef, prepareFeature } from './installer';
|
|
2
|
+
import { renderFeature, renderFeatureFromPath, getFeatureClaimPatchesFromPath } from './renderer';
|
|
3
3
|
declare const _default: {
|
|
4
4
|
renderFeature: typeof renderFeature;
|
|
5
5
|
renderFeatureFromPath: typeof renderFeatureFromPath;
|
|
6
|
+
getFeatureClaimPatches: typeof getFeatureClaimPatches;
|
|
7
|
+
getFeatureClaimPatchesFromRef: typeof getFeatureClaimPatchesFromRef;
|
|
8
|
+
getFeatureClaimPatchesFromPath: typeof getFeatureClaimPatchesFromPath;
|
|
6
9
|
getFeatureConfigFromRef: typeof getFeatureConfigFromRef;
|
|
7
10
|
getFeatureConfig: typeof getFeatureConfig;
|
|
8
11
|
prepareFeature: typeof prepareFeature;
|
|
@@ -2,6 +2,8 @@ export declare function getFeatureConfigFromRef(featureName: string, featureRef:
|
|
|
2
2
|
featureArgs?: any, repo?: string, owner?: string): Promise<any>;
|
|
3
3
|
export declare function getFeatureConfig(featureName: string, version: string, featureOwner: any, // -> cr
|
|
4
4
|
featureArgs?: any, repo?: string, owner?: string): Promise<any>;
|
|
5
|
+
export declare function getFeatureClaimPatches(featureName: string, version: string, featureOwner: any, featureArgs?: any, repo?: string, owner?: string): Promise<any[]>;
|
|
6
|
+
export declare function getFeatureClaimPatchesFromRef(featureName: string, featureRef: string, featureOwner: any, featureArgs?: any, repo?: string, owner?: string): Promise<any[]>;
|
|
5
7
|
export declare function resolveFeatureCommit(owner: string, repo: string, reference: string): Promise<{
|
|
6
8
|
sha: string;
|
|
7
9
|
tags: string[];
|
|
@@ -1,2 +1,4 @@
|
|
|
1
1
|
export declare function renderFeature(featureName: string, version: string, owner: any, repo: any, featureOwner: any, renderPath?: string, featureArgs?: any): any;
|
|
2
2
|
export declare function renderFeatureFromPath(extractPath: string, renderedPath: string, featureOwner: any, featureArgs?: any): any;
|
|
3
|
+
export declare function getFeatureClaimPatches(featureName: string, version: string, owner: any, repo: any, featureOwner: any, featureArgs?: any): any[];
|
|
4
|
+
export declare function getFeatureClaimPatchesFromPath(extractPath: string, featureOwner: any, featureArgs?: any): any[];
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import validate from './src/validate';
|
|
2
|
-
import render, { buildContext, renderContent, expandFiles } from './src/render';
|
|
2
|
+
import render, { buildContext, renderContent, expandFiles, getClaimPatches } from './src/render';
|
|
3
3
|
import updateFileContent from './src/update_file';
|
|
4
4
|
import { validateFeatureArgs } from './src/featureArgsValidation';
|
|
5
|
+
export { getClaimPatches, buildContext, renderContent, expandFiles };
|
|
5
6
|
declare const _default: {
|
|
6
7
|
validate: typeof validate;
|
|
7
8
|
render: typeof render;
|
|
@@ -12,10 +13,12 @@ declare const _default: {
|
|
|
12
13
|
buildExpectedOutput: (config: import("./src/auxiliar").FeatureConfig, renderDir: string) => import("./src/auxiliar").ExpectedOutput;
|
|
13
14
|
loadAndValidateRenderTests: (featurePath: string) => import("./src/auxiliar").RenderTestsFile;
|
|
14
15
|
resolveCrPath: (featurePath: string, crRelPath: string) => string;
|
|
16
|
+
resolveClaimPath: (featurePath: string, claimRelPath: string) => string;
|
|
15
17
|
};
|
|
16
18
|
buildContext: typeof buildContext;
|
|
17
19
|
renderContent: typeof renderContent;
|
|
18
20
|
expandFiles: typeof expandFiles;
|
|
19
21
|
validateFeatureArgs: typeof validateFeatureArgs;
|
|
22
|
+
getClaimPatches: typeof getClaimPatches;
|
|
20
23
|
};
|
|
21
24
|
export default _default;
|
|
@@ -11,7 +11,7 @@ export interface ConfigFile {
|
|
|
11
11
|
}
|
|
12
12
|
export interface FeatureConfig {
|
|
13
13
|
files?: ConfigFile[];
|
|
14
|
-
|
|
14
|
+
claimPatches?: unknown[];
|
|
15
15
|
}
|
|
16
16
|
export interface ExpectedFile {
|
|
17
17
|
localPath: string;
|
|
@@ -31,12 +31,13 @@ export interface Traceability {
|
|
|
31
31
|
}
|
|
32
32
|
export interface ExpectedOutput {
|
|
33
33
|
files: ExpectedFile[];
|
|
34
|
-
|
|
34
|
+
claimPatches: unknown[];
|
|
35
35
|
traceability?: Traceability;
|
|
36
36
|
}
|
|
37
37
|
export interface RenderTest {
|
|
38
38
|
name: string;
|
|
39
|
-
cr
|
|
39
|
+
cr?: string;
|
|
40
|
+
claim?: string;
|
|
40
41
|
args?: Record<string, unknown>;
|
|
41
42
|
}
|
|
42
43
|
export interface RenderTestsFile {
|
|
@@ -71,6 +72,7 @@ export interface RenderContext {
|
|
|
71
72
|
export declare function formatAjvErrors(errors: ErrorObject[] | null | undefined): string;
|
|
72
73
|
declare function loadAndValidateRenderTests(featurePath: string): RenderTestsFile;
|
|
73
74
|
declare function resolveCrPath(featurePath: string, crRelPath: string): string;
|
|
75
|
+
declare function resolveClaimPath(featurePath: string, claimRelPath: string): string;
|
|
74
76
|
export declare function listYamlFiles(dir: string): string[];
|
|
75
77
|
declare function loadYaml<T = unknown>(file: string): T;
|
|
76
78
|
declare function mkNamedTmp(...names: string[]): Promise<string>;
|
|
@@ -83,5 +85,6 @@ declare const _default: {
|
|
|
83
85
|
buildExpectedOutput: typeof buildExpectedOutput;
|
|
84
86
|
loadAndValidateRenderTests: typeof loadAndValidateRenderTests;
|
|
85
87
|
resolveCrPath: typeof resolveCrPath;
|
|
88
|
+
resolveClaimPath: typeof resolveClaimPath;
|
|
86
89
|
};
|
|
87
90
|
export default _default;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export default function render(featurePath: string, featureRenderPath: string, entity: any, firestartrConfig?: any, featureArgs?: any): any;
|
|
2
|
-
export declare function
|
|
2
|
+
export declare function getClaimPatches(featurePath: string, entity: any, firestartrConfig?: any, featureArgs?: any): any[];
|
|
3
|
+
export declare function buildContext(stitchedClaim: any, args: any, firestartrConfig: any, featureArgs: any): any;
|
|
3
4
|
export declare function expandFiles(featurePath: string, configData: any, context: any): void;
|
|
4
5
|
export declare function renderContent(template: string, ctx: any): any;
|
|
5
6
|
export declare function assertNonEmptyString(value: unknown, what: string): asserts value is string;
|
|
@@ -18,6 +18,12 @@ declare const _default: {
|
|
|
18
18
|
$ref: string;
|
|
19
19
|
};
|
|
20
20
|
};
|
|
21
|
+
claimPatches: {
|
|
22
|
+
type: string;
|
|
23
|
+
items: {
|
|
24
|
+
$ref: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
21
27
|
patches: {
|
|
22
28
|
type: string;
|
|
23
29
|
patternProperties: {
|
|
@@ -129,7 +135,7 @@ declare const _default: {
|
|
|
129
135
|
type: string;
|
|
130
136
|
};
|
|
131
137
|
value: {
|
|
132
|
-
type: string;
|
|
138
|
+
type: string[];
|
|
133
139
|
};
|
|
134
140
|
};
|
|
135
141
|
required: string[];
|
|
@@ -2,9 +2,7 @@ import { createCheckRun } from './src/check_run';
|
|
|
2
2
|
import { upsertMultiPartStickyComments } from './src/sticky_comment';
|
|
3
3
|
import { getOctokitForOrg, getGithubAppToken, getOctokitFromPat } from './src/auth';
|
|
4
4
|
import { encryptRepoSecret, getRepoPublicKey } from './src/encrypt';
|
|
5
|
-
import { getOrgPublicKey, encryptOrgSecret, getOrgSecret } from './src/orgSecrets';
|
|
6
5
|
import type { RepoSecretsSection } from './src/encrypt';
|
|
7
|
-
import type { OrgSecretsSection } from './src/orgSecrets';
|
|
8
6
|
import type { WorkflowCompletionResult, WorkflowDispatchInputs, WorkflowRunConclusion, WorkflowRunStatus, WorkflowRunStatusFilter, WorkflowRunSummary } from './src/workflow';
|
|
9
7
|
import { withProfile } from './src/with_profile';
|
|
10
8
|
import { createProfile } from './src/profile';
|
|
@@ -105,14 +103,10 @@ declare const _default: {
|
|
|
105
103
|
encryption: {
|
|
106
104
|
encryptRepoSecret: typeof encryptRepoSecret;
|
|
107
105
|
getRepoPublicKey: typeof getRepoPublicKey;
|
|
108
|
-
getOrgPublicKey: typeof getOrgPublicKey;
|
|
109
|
-
encryptOrgSecret: typeof encryptOrgSecret;
|
|
110
|
-
getOrgSecret: typeof getOrgSecret;
|
|
111
106
|
};
|
|
112
107
|
withProfile: typeof withProfile;
|
|
113
108
|
createProfile: typeof createProfile;
|
|
114
109
|
};
|
|
115
110
|
export default _default;
|
|
116
|
-
export { createProfile };
|
|
117
|
-
export type { RepoSecretsSection, OrgSecretsSection };
|
|
111
|
+
export { RepoSecretsSection, createProfile };
|
|
118
112
|
export type { WorkflowCompletionResult, WorkflowDispatchInputs, WorkflowRunConclusion, WorkflowRunStatus, WorkflowRunStatusFilter, WorkflowRunSummary, };
|
package/package.json
CHANGED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { FirestartrGithubOrganizationSecretSection, FirestartrGithubOrganizationSecretSectionProps } from '../../../imports/firestartr.dev';
|
|
2
|
-
import { IUnitializedStateKey } from '../../claims/base';
|
|
3
|
-
import { BaseGithubChart } from './base';
|
|
4
|
-
export declare class GithubOrgSecretSectionChart extends BaseGithubChart {
|
|
5
|
-
template(): FirestartrGithubOrganizationSecretSectionProps | IUnitializedStateKey;
|
|
6
|
-
gvk(): import("cdk8s").GroupVersionKind;
|
|
7
|
-
instanceApiObject(template: any): FirestartrGithubOrganizationSecretSection;
|
|
8
|
-
}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
$schema: string;
|
|
3
|
-
$id: string;
|
|
4
|
-
definitions: {
|
|
5
|
-
GithubOrgClaimSecrets: {
|
|
6
|
-
$id: string;
|
|
7
|
-
type: string;
|
|
8
|
-
description: string;
|
|
9
|
-
properties: {
|
|
10
|
-
actions: {
|
|
11
|
-
type: string;
|
|
12
|
-
items: {
|
|
13
|
-
$ref: string;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
codespaces: {
|
|
17
|
-
type: string;
|
|
18
|
-
items: {
|
|
19
|
-
$ref: string;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
dependabot: {
|
|
23
|
-
type: string;
|
|
24
|
-
items: {
|
|
25
|
-
$ref: string;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
additionalProperties: boolean;
|
|
30
|
-
};
|
|
31
|
-
GithubOrgClaimSecretRef: {
|
|
32
|
-
$id: string;
|
|
33
|
-
type: string;
|
|
34
|
-
description: string;
|
|
35
|
-
pattern: string;
|
|
36
|
-
};
|
|
37
|
-
GithubOrgClaimSecret: {
|
|
38
|
-
$id: string;
|
|
39
|
-
type: string;
|
|
40
|
-
description: string;
|
|
41
|
-
properties: {
|
|
42
|
-
name: {
|
|
43
|
-
type: string;
|
|
44
|
-
description: string;
|
|
45
|
-
};
|
|
46
|
-
value: {
|
|
47
|
-
$ref: string;
|
|
48
|
-
};
|
|
49
|
-
visibility: {
|
|
50
|
-
type: string;
|
|
51
|
-
enum: string[];
|
|
52
|
-
description: string;
|
|
53
|
-
};
|
|
54
|
-
selected_repositories: {
|
|
55
|
-
type: string;
|
|
56
|
-
items: {
|
|
57
|
-
type: string;
|
|
58
|
-
};
|
|
59
|
-
description: string;
|
|
60
|
-
};
|
|
61
|
-
};
|
|
62
|
-
required: string[];
|
|
63
|
-
additionalProperties: boolean;
|
|
64
|
-
};
|
|
65
|
-
};
|
|
66
|
-
};
|
|
67
|
-
export default _default;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { RenderClaims, RenderedCrMap } from '../renderer/types';
|
|
2
|
-
export declare function validateGithubOrgSecretSectionSingleton(crs: RenderedCrMap): void;
|
|
3
|
-
export declare function validateSecretNamesUniqueness(crs: RenderedCrMap): void;
|
|
4
|
-
export declare function validateOrgSecretsCrossReferences(renderClaims: RenderClaims): void;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { EntityGHOrgSecretSection } from '.';
|
|
2
|
-
import { type OrgSecretsSection } from 'github';
|
|
3
|
-
export type SecretEntry = {
|
|
4
|
-
name: string;
|
|
5
|
-
ref: {
|
|
6
|
-
kind: string;
|
|
7
|
-
name: string;
|
|
8
|
-
key: string;
|
|
9
|
-
};
|
|
10
|
-
visibility: string;
|
|
11
|
-
selectedRepositories?: string[];
|
|
12
|
-
};
|
|
13
|
-
declare const SECTIONS: OrgSecretsSection[];
|
|
14
|
-
export { SECTIONS };
|
|
15
|
-
export declare function provisionOrgSecrets(entity: EntityGHOrgSecretSection, secrets: Record<string, SecretEntry[]>): Promise<void>;
|
|
16
|
-
export declare function adoptSecretsIfNeeded(entity: EntityGHOrgSecretSection, secrets: Record<string, SecretEntry[]>): Promise<void>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export type OrgSecretsSection = 'actions' | 'dependabot' | 'codespaces';
|
|
2
|
-
export declare function getOrgPublicKey(org: string, section: OrgSecretsSection, octokit?: any): Promise<any>;
|
|
3
|
-
export declare function encryptOrgSecret(org: string, section: OrgSecretsSection, plaintextValue: string, preFetchedKey?: {
|
|
4
|
-
key_id: string;
|
|
5
|
-
key: string;
|
|
6
|
-
}, octokit?: any): Promise<{
|
|
7
|
-
key_id: any;
|
|
8
|
-
encrypted_value: string;
|
|
9
|
-
}>;
|
|
10
|
-
export declare function getOrgSecret(org: string, section: OrgSecretsSection, name: string, octokit?: any): Promise<any>;
|