@firestartr/cli 2.11.0-snapshot-orgsettings-binding-1 → 2.11.0-snapshot-objects-in-patches
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 +7 -1017
- package/build/packages/cdk8s_renderer/imports/firestartr.dev.d.ts +0 -457
- 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/renderer/claims-render.d.ts +1 -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
|
@@ -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[];
|
|
@@ -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[]
|
|
11
|
+
export declare function renderClaim(catalogScope: Construct, firestartrScope: Construct, claim: any, patches: ICustomResourcePatch[], previousCR?: any | null, claimPath?: string, variableSectionPreviousCR?: any | false, variableSectionPatches?: ICustomResourcePatch[]): Promise<IRenderClaimResult>;
|
|
12
12
|
export declare function renameVariantCrFiles(outputDir: string, renderedMap: RenderedCrMap): void;
|
|
@@ -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>;
|