@firestartr/cli 1.49.0-snapshot-6 → 1.50.0-snapshot-1
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 +1161 -58
- package/build/packages/cdk8s_renderer/imports/firestartr.dev.d.ts +244 -0
- package/build/packages/cdk8s_renderer/src/charts/github/repositoryChart.d.ts +15 -0
- package/build/packages/cdk8s_renderer/src/claims/base/schemas/index.d.ts +0 -12
- package/build/packages/cdk8s_renderer/src/claims/github/component.secrets-vars.schema.d.ts +0 -12
- package/build/packages/cdk8s_renderer/src/claims/github/index.d.ts +0 -12
- package/build/packages/cdk8s_renderer/src/refsSorter/refsExtractor.d.ts +1 -0
- package/build/packages/cdk8s_renderer/src/utils/repositoryClaimUtils.d.ts +40 -0
- package/build/packages/github/index.d.ts +5 -0
- package/build/packages/github/src/encrypt.d.ts +12 -0
- package/build/packages/operator/src/utils/index.d.ts +2 -0
- package/build/packages/provisioner/src/entities/firestartrgithubrepository/helpers/RepositorySecret.d.ts +4 -0
- package/build/packages/provisioner/src/entities/firestartrgithubrepository/helpers/RepositoryVariable.d.ts +4 -0
- package/package.json +1 -1
|
@@ -896,6 +896,14 @@ export interface FirestartrGithubRepositorySpec {
|
|
|
896
896
|
* @schema FirestartrGithubRepositorySpec#permissions
|
|
897
897
|
*/
|
|
898
898
|
readonly permissions: FirestartrGithubRepositorySpecPermissions[];
|
|
899
|
+
/**
|
|
900
|
+
* @schema FirestartrGithubRepositorySpec#secrets
|
|
901
|
+
*/
|
|
902
|
+
readonly secrets?: FirestartrGithubRepositorySpecSecrets;
|
|
903
|
+
/**
|
|
904
|
+
* @schema FirestartrGithubRepositorySpec#vars
|
|
905
|
+
*/
|
|
906
|
+
readonly vars?: FirestartrGithubRepositorySpecVars;
|
|
899
907
|
/**
|
|
900
908
|
* @schema FirestartrGithubRepositorySpec#branchProtections
|
|
901
909
|
*/
|
|
@@ -1067,6 +1075,44 @@ export interface FirestartrGithubRepositorySpecPermissions {
|
|
|
1067
1075
|
* Converts an object of type 'FirestartrGithubRepositorySpecPermissions' to JSON representation.
|
|
1068
1076
|
*/
|
|
1069
1077
|
export declare function toJson_FirestartrGithubRepositorySpecPermissions(obj: FirestartrGithubRepositorySpecPermissions | undefined): Record<string, any> | undefined;
|
|
1078
|
+
/**
|
|
1079
|
+
* @schema FirestartrGithubRepositorySpecSecrets
|
|
1080
|
+
*/
|
|
1081
|
+
export interface FirestartrGithubRepositorySpecSecrets {
|
|
1082
|
+
/**
|
|
1083
|
+
* @schema FirestartrGithubRepositorySpecSecrets#actions
|
|
1084
|
+
*/
|
|
1085
|
+
readonly actions?: FirestartrGithubRepositorySpecSecretsActions[];
|
|
1086
|
+
/**
|
|
1087
|
+
* @schema FirestartrGithubRepositorySpecSecrets#codespaces
|
|
1088
|
+
*/
|
|
1089
|
+
readonly codespaces?: FirestartrGithubRepositorySpecSecretsCodespaces[];
|
|
1090
|
+
/**
|
|
1091
|
+
* @schema FirestartrGithubRepositorySpecSecrets#dependabot
|
|
1092
|
+
*/
|
|
1093
|
+
readonly dependabot?: FirestartrGithubRepositorySpecSecretsDependabot[];
|
|
1094
|
+
}
|
|
1095
|
+
/**
|
|
1096
|
+
* Converts an object of type 'FirestartrGithubRepositorySpecSecrets' to JSON representation.
|
|
1097
|
+
*/
|
|
1098
|
+
export declare function toJson_FirestartrGithubRepositorySpecSecrets(obj: FirestartrGithubRepositorySpecSecrets | undefined): Record<string, any> | undefined;
|
|
1099
|
+
/**
|
|
1100
|
+
* @schema FirestartrGithubRepositorySpecVars
|
|
1101
|
+
*/
|
|
1102
|
+
export interface FirestartrGithubRepositorySpecVars {
|
|
1103
|
+
/**
|
|
1104
|
+
* @schema FirestartrGithubRepositorySpecVars#variableItemSchema
|
|
1105
|
+
*/
|
|
1106
|
+
readonly variableItemSchema?: FirestartrGithubRepositorySpecVarsVariableItemSchema;
|
|
1107
|
+
/**
|
|
1108
|
+
* @schema FirestartrGithubRepositorySpecVars#actions
|
|
1109
|
+
*/
|
|
1110
|
+
readonly actions?: FirestartrGithubRepositorySpecVarsActions[];
|
|
1111
|
+
}
|
|
1112
|
+
/**
|
|
1113
|
+
* Converts an object of type 'FirestartrGithubRepositorySpecVars' to JSON representation.
|
|
1114
|
+
*/
|
|
1115
|
+
export declare function toJson_FirestartrGithubRepositorySpecVars(obj: FirestartrGithubRepositorySpecVars | undefined): Record<string, any> | undefined;
|
|
1070
1116
|
/**
|
|
1071
1117
|
* @schema FirestartrGithubRepositorySpecBranchProtections
|
|
1072
1118
|
*/
|
|
@@ -1251,6 +1297,99 @@ export interface FirestartrGithubRepositorySpecPermissionsRef {
|
|
|
1251
1297
|
* Converts an object of type 'FirestartrGithubRepositorySpecPermissionsRef' to JSON representation.
|
|
1252
1298
|
*/
|
|
1253
1299
|
export declare function toJson_FirestartrGithubRepositorySpecPermissionsRef(obj: FirestartrGithubRepositorySpecPermissionsRef | undefined): Record<string, any> | undefined;
|
|
1300
|
+
/**
|
|
1301
|
+
* @schema FirestartrGithubRepositorySpecSecretsActions
|
|
1302
|
+
*/
|
|
1303
|
+
export interface FirestartrGithubRepositorySpecSecretsActions {
|
|
1304
|
+
/**
|
|
1305
|
+
* @schema FirestartrGithubRepositorySpecSecretsActions#name
|
|
1306
|
+
*/
|
|
1307
|
+
readonly name: string;
|
|
1308
|
+
/**
|
|
1309
|
+
* @schema FirestartrGithubRepositorySpecSecretsActions#ref
|
|
1310
|
+
*/
|
|
1311
|
+
readonly ref: FirestartrGithubRepositorySpecSecretsActionsRef;
|
|
1312
|
+
}
|
|
1313
|
+
/**
|
|
1314
|
+
* Converts an object of type 'FirestartrGithubRepositorySpecSecretsActions' to JSON representation.
|
|
1315
|
+
*/
|
|
1316
|
+
export declare function toJson_FirestartrGithubRepositorySpecSecretsActions(obj: FirestartrGithubRepositorySpecSecretsActions | undefined): Record<string, any> | undefined;
|
|
1317
|
+
/**
|
|
1318
|
+
* @schema FirestartrGithubRepositorySpecSecretsCodespaces
|
|
1319
|
+
*/
|
|
1320
|
+
export interface FirestartrGithubRepositorySpecSecretsCodespaces {
|
|
1321
|
+
/**
|
|
1322
|
+
* @schema FirestartrGithubRepositorySpecSecretsCodespaces#name
|
|
1323
|
+
*/
|
|
1324
|
+
readonly name: string;
|
|
1325
|
+
/**
|
|
1326
|
+
* @schema FirestartrGithubRepositorySpecSecretsCodespaces#ref
|
|
1327
|
+
*/
|
|
1328
|
+
readonly ref: FirestartrGithubRepositorySpecSecretsCodespacesRef;
|
|
1329
|
+
}
|
|
1330
|
+
/**
|
|
1331
|
+
* Converts an object of type 'FirestartrGithubRepositorySpecSecretsCodespaces' to JSON representation.
|
|
1332
|
+
*/
|
|
1333
|
+
export declare function toJson_FirestartrGithubRepositorySpecSecretsCodespaces(obj: FirestartrGithubRepositorySpecSecretsCodespaces | undefined): Record<string, any> | undefined;
|
|
1334
|
+
/**
|
|
1335
|
+
* @schema FirestartrGithubRepositorySpecSecretsDependabot
|
|
1336
|
+
*/
|
|
1337
|
+
export interface FirestartrGithubRepositorySpecSecretsDependabot {
|
|
1338
|
+
/**
|
|
1339
|
+
* @schema FirestartrGithubRepositorySpecSecretsDependabot#name
|
|
1340
|
+
*/
|
|
1341
|
+
readonly name: string;
|
|
1342
|
+
/**
|
|
1343
|
+
* @schema FirestartrGithubRepositorySpecSecretsDependabot#ref
|
|
1344
|
+
*/
|
|
1345
|
+
readonly ref: FirestartrGithubRepositorySpecSecretsDependabotRef;
|
|
1346
|
+
}
|
|
1347
|
+
/**
|
|
1348
|
+
* Converts an object of type 'FirestartrGithubRepositorySpecSecretsDependabot' to JSON representation.
|
|
1349
|
+
*/
|
|
1350
|
+
export declare function toJson_FirestartrGithubRepositorySpecSecretsDependabot(obj: FirestartrGithubRepositorySpecSecretsDependabot | undefined): Record<string, any> | undefined;
|
|
1351
|
+
/**
|
|
1352
|
+
* @schema FirestartrGithubRepositorySpecVarsVariableItemSchema
|
|
1353
|
+
*/
|
|
1354
|
+
export interface FirestartrGithubRepositorySpecVarsVariableItemSchema {
|
|
1355
|
+
/**
|
|
1356
|
+
* @schema FirestartrGithubRepositorySpecVarsVariableItemSchema#name
|
|
1357
|
+
*/
|
|
1358
|
+
readonly name?: string;
|
|
1359
|
+
/**
|
|
1360
|
+
* @schema FirestartrGithubRepositorySpecVarsVariableItemSchema#value
|
|
1361
|
+
*/
|
|
1362
|
+
readonly value?: string;
|
|
1363
|
+
/**
|
|
1364
|
+
* @schema FirestartrGithubRepositorySpecVarsVariableItemSchema#ref
|
|
1365
|
+
*/
|
|
1366
|
+
readonly ref?: FirestartrGithubRepositorySpecVarsVariableItemSchemaRef;
|
|
1367
|
+
}
|
|
1368
|
+
/**
|
|
1369
|
+
* Converts an object of type 'FirestartrGithubRepositorySpecVarsVariableItemSchema' to JSON representation.
|
|
1370
|
+
*/
|
|
1371
|
+
export declare function toJson_FirestartrGithubRepositorySpecVarsVariableItemSchema(obj: FirestartrGithubRepositorySpecVarsVariableItemSchema | undefined): Record<string, any> | undefined;
|
|
1372
|
+
/**
|
|
1373
|
+
* @schema FirestartrGithubRepositorySpecVarsActions
|
|
1374
|
+
*/
|
|
1375
|
+
export interface FirestartrGithubRepositorySpecVarsActions {
|
|
1376
|
+
/**
|
|
1377
|
+
* @schema FirestartrGithubRepositorySpecVarsActions#name
|
|
1378
|
+
*/
|
|
1379
|
+
readonly name?: string;
|
|
1380
|
+
/**
|
|
1381
|
+
* @schema FirestartrGithubRepositorySpecVarsActions#value
|
|
1382
|
+
*/
|
|
1383
|
+
readonly value?: string;
|
|
1384
|
+
/**
|
|
1385
|
+
* @schema FirestartrGithubRepositorySpecVarsActions#ref
|
|
1386
|
+
*/
|
|
1387
|
+
readonly ref?: FirestartrGithubRepositorySpecVarsActionsRef;
|
|
1388
|
+
}
|
|
1389
|
+
/**
|
|
1390
|
+
* Converts an object of type 'FirestartrGithubRepositorySpecVarsActions' to JSON representation.
|
|
1391
|
+
*/
|
|
1392
|
+
export declare function toJson_FirestartrGithubRepositorySpecVarsActions(obj: FirestartrGithubRepositorySpecVarsActions | undefined): Record<string, any> | undefined;
|
|
1254
1393
|
/**
|
|
1255
1394
|
* @schema FirestartrGithubRepositorySpecWriteConnectionSecretToRefOutputs
|
|
1256
1395
|
*/
|
|
@@ -1298,6 +1437,111 @@ export interface FirestartrGithubRepositorySpecContextProviderRef {
|
|
|
1298
1437
|
* Converts an object of type 'FirestartrGithubRepositorySpecContextProviderRef' to JSON representation.
|
|
1299
1438
|
*/
|
|
1300
1439
|
export declare function toJson_FirestartrGithubRepositorySpecContextProviderRef(obj: FirestartrGithubRepositorySpecContextProviderRef | undefined): Record<string, any> | undefined;
|
|
1440
|
+
/**
|
|
1441
|
+
* @schema FirestartrGithubRepositorySpecSecretsActionsRef
|
|
1442
|
+
*/
|
|
1443
|
+
export interface FirestartrGithubRepositorySpecSecretsActionsRef {
|
|
1444
|
+
/**
|
|
1445
|
+
* @schema FirestartrGithubRepositorySpecSecretsActionsRef#kind
|
|
1446
|
+
*/
|
|
1447
|
+
readonly kind: string;
|
|
1448
|
+
/**
|
|
1449
|
+
* @schema FirestartrGithubRepositorySpecSecretsActionsRef#name
|
|
1450
|
+
*/
|
|
1451
|
+
readonly name: string;
|
|
1452
|
+
/**
|
|
1453
|
+
* @schema FirestartrGithubRepositorySpecSecretsActionsRef#key
|
|
1454
|
+
*/
|
|
1455
|
+
readonly key: string;
|
|
1456
|
+
}
|
|
1457
|
+
/**
|
|
1458
|
+
* Converts an object of type 'FirestartrGithubRepositorySpecSecretsActionsRef' to JSON representation.
|
|
1459
|
+
*/
|
|
1460
|
+
export declare function toJson_FirestartrGithubRepositorySpecSecretsActionsRef(obj: FirestartrGithubRepositorySpecSecretsActionsRef | undefined): Record<string, any> | undefined;
|
|
1461
|
+
/**
|
|
1462
|
+
* @schema FirestartrGithubRepositorySpecSecretsCodespacesRef
|
|
1463
|
+
*/
|
|
1464
|
+
export interface FirestartrGithubRepositorySpecSecretsCodespacesRef {
|
|
1465
|
+
/**
|
|
1466
|
+
* @schema FirestartrGithubRepositorySpecSecretsCodespacesRef#kind
|
|
1467
|
+
*/
|
|
1468
|
+
readonly kind: string;
|
|
1469
|
+
/**
|
|
1470
|
+
* @schema FirestartrGithubRepositorySpecSecretsCodespacesRef#name
|
|
1471
|
+
*/
|
|
1472
|
+
readonly name: string;
|
|
1473
|
+
/**
|
|
1474
|
+
* @schema FirestartrGithubRepositorySpecSecretsCodespacesRef#key
|
|
1475
|
+
*/
|
|
1476
|
+
readonly key: string;
|
|
1477
|
+
}
|
|
1478
|
+
/**
|
|
1479
|
+
* Converts an object of type 'FirestartrGithubRepositorySpecSecretsCodespacesRef' to JSON representation.
|
|
1480
|
+
*/
|
|
1481
|
+
export declare function toJson_FirestartrGithubRepositorySpecSecretsCodespacesRef(obj: FirestartrGithubRepositorySpecSecretsCodespacesRef | undefined): Record<string, any> | undefined;
|
|
1482
|
+
/**
|
|
1483
|
+
* @schema FirestartrGithubRepositorySpecSecretsDependabotRef
|
|
1484
|
+
*/
|
|
1485
|
+
export interface FirestartrGithubRepositorySpecSecretsDependabotRef {
|
|
1486
|
+
/**
|
|
1487
|
+
* @schema FirestartrGithubRepositorySpecSecretsDependabotRef#kind
|
|
1488
|
+
*/
|
|
1489
|
+
readonly kind: string;
|
|
1490
|
+
/**
|
|
1491
|
+
* @schema FirestartrGithubRepositorySpecSecretsDependabotRef#name
|
|
1492
|
+
*/
|
|
1493
|
+
readonly name: string;
|
|
1494
|
+
/**
|
|
1495
|
+
* @schema FirestartrGithubRepositorySpecSecretsDependabotRef#key
|
|
1496
|
+
*/
|
|
1497
|
+
readonly key: string;
|
|
1498
|
+
}
|
|
1499
|
+
/**
|
|
1500
|
+
* Converts an object of type 'FirestartrGithubRepositorySpecSecretsDependabotRef' to JSON representation.
|
|
1501
|
+
*/
|
|
1502
|
+
export declare function toJson_FirestartrGithubRepositorySpecSecretsDependabotRef(obj: FirestartrGithubRepositorySpecSecretsDependabotRef | undefined): Record<string, any> | undefined;
|
|
1503
|
+
/**
|
|
1504
|
+
* @schema FirestartrGithubRepositorySpecVarsVariableItemSchemaRef
|
|
1505
|
+
*/
|
|
1506
|
+
export interface FirestartrGithubRepositorySpecVarsVariableItemSchemaRef {
|
|
1507
|
+
/**
|
|
1508
|
+
* @schema FirestartrGithubRepositorySpecVarsVariableItemSchemaRef#kind
|
|
1509
|
+
*/
|
|
1510
|
+
readonly kind: string;
|
|
1511
|
+
/**
|
|
1512
|
+
* @schema FirestartrGithubRepositorySpecVarsVariableItemSchemaRef#name
|
|
1513
|
+
*/
|
|
1514
|
+
readonly name: string;
|
|
1515
|
+
/**
|
|
1516
|
+
* @schema FirestartrGithubRepositorySpecVarsVariableItemSchemaRef#key
|
|
1517
|
+
*/
|
|
1518
|
+
readonly key: string;
|
|
1519
|
+
}
|
|
1520
|
+
/**
|
|
1521
|
+
* Converts an object of type 'FirestartrGithubRepositorySpecVarsVariableItemSchemaRef' to JSON representation.
|
|
1522
|
+
*/
|
|
1523
|
+
export declare function toJson_FirestartrGithubRepositorySpecVarsVariableItemSchemaRef(obj: FirestartrGithubRepositorySpecVarsVariableItemSchemaRef | undefined): Record<string, any> | undefined;
|
|
1524
|
+
/**
|
|
1525
|
+
* @schema FirestartrGithubRepositorySpecVarsActionsRef
|
|
1526
|
+
*/
|
|
1527
|
+
export interface FirestartrGithubRepositorySpecVarsActionsRef {
|
|
1528
|
+
/**
|
|
1529
|
+
* @schema FirestartrGithubRepositorySpecVarsActionsRef#kind
|
|
1530
|
+
*/
|
|
1531
|
+
readonly kind: string;
|
|
1532
|
+
/**
|
|
1533
|
+
* @schema FirestartrGithubRepositorySpecVarsActionsRef#name
|
|
1534
|
+
*/
|
|
1535
|
+
readonly name: string;
|
|
1536
|
+
/**
|
|
1537
|
+
* @schema FirestartrGithubRepositorySpecVarsActionsRef#key
|
|
1538
|
+
*/
|
|
1539
|
+
readonly key: string;
|
|
1540
|
+
}
|
|
1541
|
+
/**
|
|
1542
|
+
* Converts an object of type 'FirestartrGithubRepositorySpecVarsActionsRef' to JSON representation.
|
|
1543
|
+
*/
|
|
1544
|
+
export declare function toJson_FirestartrGithubRepositorySpecVarsActionsRef(obj: FirestartrGithubRepositorySpecVarsActionsRef | undefined): Record<string, any> | undefined;
|
|
1301
1545
|
/**
|
|
1302
1546
|
* @schema FirestartrGithubRepositorySpecContextBackendRefKind
|
|
1303
1547
|
*/
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ApiObject, GroupVersionKind } from 'cdk8s';
|
|
2
|
+
import { NamedVars, RepoSecrets } from '../../utils/repositoryClaimUtils';
|
|
2
3
|
import { FirestartrGithubRepositoryProps } from '../../../imports/firestartr.dev';
|
|
3
4
|
import { IUnitializedStateKey } from '../../claims/base';
|
|
4
5
|
import { BaseGithubChart } from './base';
|
|
@@ -14,6 +15,20 @@ export declare class GithubRepositoryChart extends BaseGithubChart {
|
|
|
14
15
|
* @returns Permission[]
|
|
15
16
|
*/
|
|
16
17
|
private createPermissions;
|
|
18
|
+
/**
|
|
19
|
+
* @description This method creates the vars data for the repository
|
|
20
|
+
* @param claim
|
|
21
|
+
* @returns VarsConfiguration
|
|
22
|
+
*/
|
|
23
|
+
private createVars;
|
|
24
|
+
/**
|
|
25
|
+
* @description This method creates the secrets data for the repository
|
|
26
|
+
* @param claim
|
|
27
|
+
* @returns RepoSecretsConfiguration
|
|
28
|
+
*/
|
|
29
|
+
private createRepoSecrets;
|
|
30
|
+
formatVars(blockDefinition: any): NamedVars;
|
|
31
|
+
formatRepoSecrets(blockDefinition: any): RepoSecrets;
|
|
17
32
|
extraCharts(): {
|
|
18
33
|
claim: {
|
|
19
34
|
kind: string;
|
|
@@ -575,18 +575,6 @@ declare const schemas: {
|
|
|
575
575
|
$ref: string;
|
|
576
576
|
};
|
|
577
577
|
};
|
|
578
|
-
codespaces: {
|
|
579
|
-
type: string;
|
|
580
|
-
items: {
|
|
581
|
-
$ref: string;
|
|
582
|
-
};
|
|
583
|
-
};
|
|
584
|
-
dependabot: {
|
|
585
|
-
type: string;
|
|
586
|
-
items: {
|
|
587
|
-
$ref: string;
|
|
588
|
-
};
|
|
589
|
-
};
|
|
590
578
|
};
|
|
591
579
|
additionalProperties: boolean;
|
|
592
580
|
};
|
|
@@ -12,18 +12,6 @@ declare const _default: {
|
|
|
12
12
|
$ref: string;
|
|
13
13
|
};
|
|
14
14
|
};
|
|
15
|
-
codespaces: {
|
|
16
|
-
type: string;
|
|
17
|
-
items: {
|
|
18
|
-
$ref: string;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
dependabot: {
|
|
22
|
-
type: string;
|
|
23
|
-
items: {
|
|
24
|
-
$ref: string;
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
15
|
};
|
|
28
16
|
additionalProperties: boolean;
|
|
29
17
|
};
|
|
@@ -212,18 +212,6 @@ export declare const GithubSchemas: ({
|
|
|
212
212
|
$ref: string;
|
|
213
213
|
};
|
|
214
214
|
};
|
|
215
|
-
codespaces: {
|
|
216
|
-
type: string;
|
|
217
|
-
items: {
|
|
218
|
-
$ref: string;
|
|
219
|
-
};
|
|
220
|
-
};
|
|
221
|
-
dependabot: {
|
|
222
|
-
type: string;
|
|
223
|
-
items: {
|
|
224
|
-
$ref: string;
|
|
225
|
-
};
|
|
226
|
-
};
|
|
227
215
|
};
|
|
228
216
|
additionalProperties: boolean;
|
|
229
217
|
};
|
|
@@ -3,3 +3,4 @@ export declare function extractRefs(renderClaims: RenderClaims, kind: string): a
|
|
|
3
3
|
export declare function extractAllRefs(claimData: string): any[];
|
|
4
4
|
export declare function getGroupParentRef(parent: string, references?: any[]): any[];
|
|
5
5
|
export declare function getTfWorkspacesRefs(values: any, references?: any[]): any[];
|
|
6
|
+
export declare function getComponentVarsAndSecretsRefs(parsedClaim: any): string[];
|
|
@@ -45,3 +45,43 @@ export interface CollaboratorPermission {
|
|
|
45
45
|
* @returns string
|
|
46
46
|
*/
|
|
47
47
|
export declare function createCodeOwnersData(claim: any, additionalRules?: any[]): string;
|
|
48
|
+
/**
|
|
49
|
+
* A reference to a secret, which can be an internal or external source.
|
|
50
|
+
*/
|
|
51
|
+
export interface SecretRef {
|
|
52
|
+
kind: 'Secret' | 'ExternalSecret';
|
|
53
|
+
name: string;
|
|
54
|
+
key: string;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* * A variable definition. It must have a name and can be either a literal
|
|
58
|
+
* * value or a reference to a secret.
|
|
59
|
+
* */
|
|
60
|
+
export type Var = {
|
|
61
|
+
name: string;
|
|
62
|
+
value: string;
|
|
63
|
+
} | {
|
|
64
|
+
name: string;
|
|
65
|
+
ref: SecretRef;
|
|
66
|
+
};
|
|
67
|
+
export type RepoSecret = {
|
|
68
|
+
name: string;
|
|
69
|
+
ref: RepoSecretRef;
|
|
70
|
+
};
|
|
71
|
+
export type NamedVars = Var[];
|
|
72
|
+
export type RepoSecrets = RepoSecret[];
|
|
73
|
+
export interface VarsConfiguration {
|
|
74
|
+
actions?: NamedVars;
|
|
75
|
+
}
|
|
76
|
+
export interface RepoSecretsConfiguration {
|
|
77
|
+
dependabot?: RepoSecrets;
|
|
78
|
+
actions?: RepoSecrets;
|
|
79
|
+
codespaces?: RepoSecrets;
|
|
80
|
+
}
|
|
81
|
+
export interface RepoSecretRef {
|
|
82
|
+
kind: 'secretsclaim';
|
|
83
|
+
name: string;
|
|
84
|
+
key: string;
|
|
85
|
+
}
|
|
86
|
+
export declare function isRepoSecretRef(suspectedRef: string): boolean;
|
|
87
|
+
export declare function extractRepoSecretRef(ref: string): RepoSecretRef;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { createCheckRun } from './src/check_run';
|
|
2
2
|
import { getOctokitForOrg, getGithubAppToken, getOctokitFromPat } from './src/auth';
|
|
3
|
+
import { encryptRepoSecret, getRepoPublicKey } from './src/encrypt';
|
|
3
4
|
declare const _default: {
|
|
4
5
|
org: {
|
|
5
6
|
getRepositoryList: typeof import("./src/organization").getRepositoryList;
|
|
@@ -77,5 +78,9 @@ declare const _default: {
|
|
|
77
78
|
createCheckRun: typeof createCheckRun;
|
|
78
79
|
CheckRun: typeof import("./src/check_run").GithubCheckRun;
|
|
79
80
|
};
|
|
81
|
+
encryption: {
|
|
82
|
+
encryptRepoSecret: typeof encryptRepoSecret;
|
|
83
|
+
getRepoPublicKey: typeof getRepoPublicKey;
|
|
84
|
+
};
|
|
80
85
|
};
|
|
81
86
|
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare function getRepoPublicKey(owner: string, repo: string): Promise<{
|
|
2
|
+
key_id: string;
|
|
3
|
+
key: string;
|
|
4
|
+
id?: number;
|
|
5
|
+
url?: string;
|
|
6
|
+
title?: string;
|
|
7
|
+
created_at?: string;
|
|
8
|
+
}>;
|
|
9
|
+
export declare function encryptRepoSecret(owner: string, repo: string, plaintextValue: string): Promise<{
|
|
10
|
+
key_id: string;
|
|
11
|
+
encrypted_value: string;
|
|
12
|
+
}>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Repository } from '@cdktf/provider-github/lib/repository';
|
|
2
|
+
import { Construct } from 'constructs';
|
|
3
|
+
import { FirestartrGithubRepository } from '../FirestartrGithubRepository';
|
|
4
|
+
export declare function provisionRepositorySecrets(scope: Construct, repo: Repository, fsGithubRepository: FirestartrGithubRepository): Promise<void>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Repository } from '@cdktf/provider-github/lib/repository';
|
|
2
|
+
import { Construct } from 'constructs';
|
|
3
|
+
import { FirestartrGithubRepository } from '../FirestartrGithubRepository';
|
|
4
|
+
export declare function provisionRepositoryVariables(scope: Construct, repo: Repository, fsGithubRepository: FirestartrGithubRepository): Promise<void>;
|