@firestartr/cli 1.49.0-snapshot-10 → 1.49.0-snapshot-12

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.
@@ -1088,9 +1088,9 @@ export interface FirestartrGithubRepositorySpecSecrets {
1088
1088
  */
1089
1089
  readonly codespaces?: FirestartrGithubRepositorySpecSecretsCodespaces[];
1090
1090
  /**
1091
- * @schema FirestartrGithubRepositorySpecSecrets#copilot
1091
+ * @schema FirestartrGithubRepositorySpecSecrets#dependabot
1092
1092
  */
1093
- readonly copilot?: FirestartrGithubRepositorySpecSecretsCopilot[];
1093
+ readonly dependabot?: FirestartrGithubRepositorySpecSecretsDependabot[];
1094
1094
  }
1095
1095
  /**
1096
1096
  * Converts an object of type 'FirestartrGithubRepositorySpecSecrets' to JSON representation.
@@ -1108,14 +1108,6 @@ export interface FirestartrGithubRepositorySpecVars {
1108
1108
  * @schema FirestartrGithubRepositorySpecVars#actions
1109
1109
  */
1110
1110
  readonly actions?: FirestartrGithubRepositorySpecVarsActions[];
1111
- /**
1112
- * @schema FirestartrGithubRepositorySpecVars#dependabot
1113
- */
1114
- readonly dependabot?: FirestartrGithubRepositorySpecVarsDependabot[];
1115
- /**
1116
- * @schema FirestartrGithubRepositorySpecVars#codespaces
1117
- */
1118
- readonly codespaces?: FirestartrGithubRepositorySpecVarsCodespaces[];
1119
1111
  }
1120
1112
  /**
1121
1113
  * Converts an object of type 'FirestartrGithubRepositorySpecVars' to JSON representation.
@@ -1340,22 +1332,22 @@ export interface FirestartrGithubRepositorySpecSecretsCodespaces {
1340
1332
  */
1341
1333
  export declare function toJson_FirestartrGithubRepositorySpecSecretsCodespaces(obj: FirestartrGithubRepositorySpecSecretsCodespaces | undefined): Record<string, any> | undefined;
1342
1334
  /**
1343
- * @schema FirestartrGithubRepositorySpecSecretsCopilot
1335
+ * @schema FirestartrGithubRepositorySpecSecretsDependabot
1344
1336
  */
1345
- export interface FirestartrGithubRepositorySpecSecretsCopilot {
1337
+ export interface FirestartrGithubRepositorySpecSecretsDependabot {
1346
1338
  /**
1347
- * @schema FirestartrGithubRepositorySpecSecretsCopilot#name
1339
+ * @schema FirestartrGithubRepositorySpecSecretsDependabot#name
1348
1340
  */
1349
1341
  readonly name: string;
1350
1342
  /**
1351
- * @schema FirestartrGithubRepositorySpecSecretsCopilot#ref
1343
+ * @schema FirestartrGithubRepositorySpecSecretsDependabot#ref
1352
1344
  */
1353
- readonly ref: FirestartrGithubRepositorySpecSecretsCopilotRef;
1345
+ readonly ref: FirestartrGithubRepositorySpecSecretsDependabotRef;
1354
1346
  }
1355
1347
  /**
1356
- * Converts an object of type 'FirestartrGithubRepositorySpecSecretsCopilot' to JSON representation.
1348
+ * Converts an object of type 'FirestartrGithubRepositorySpecSecretsDependabot' to JSON representation.
1357
1349
  */
1358
- export declare function toJson_FirestartrGithubRepositorySpecSecretsCopilot(obj: FirestartrGithubRepositorySpecSecretsCopilot | undefined): Record<string, any> | undefined;
1350
+ export declare function toJson_FirestartrGithubRepositorySpecSecretsDependabot(obj: FirestartrGithubRepositorySpecSecretsDependabot | undefined): Record<string, any> | undefined;
1359
1351
  /**
1360
1352
  * @schema FirestartrGithubRepositorySpecVarsVariableItemSchema
1361
1353
  */
@@ -1398,48 +1390,6 @@ export interface FirestartrGithubRepositorySpecVarsActions {
1398
1390
  * Converts an object of type 'FirestartrGithubRepositorySpecVarsActions' to JSON representation.
1399
1391
  */
1400
1392
  export declare function toJson_FirestartrGithubRepositorySpecVarsActions(obj: FirestartrGithubRepositorySpecVarsActions | undefined): Record<string, any> | undefined;
1401
- /**
1402
- * @schema FirestartrGithubRepositorySpecVarsDependabot
1403
- */
1404
- export interface FirestartrGithubRepositorySpecVarsDependabot {
1405
- /**
1406
- * @schema FirestartrGithubRepositorySpecVarsDependabot#name
1407
- */
1408
- readonly name?: string;
1409
- /**
1410
- * @schema FirestartrGithubRepositorySpecVarsDependabot#value
1411
- */
1412
- readonly value?: string;
1413
- /**
1414
- * @schema FirestartrGithubRepositorySpecVarsDependabot#ref
1415
- */
1416
- readonly ref?: FirestartrGithubRepositorySpecVarsDependabotRef;
1417
- }
1418
- /**
1419
- * Converts an object of type 'FirestartrGithubRepositorySpecVarsDependabot' to JSON representation.
1420
- */
1421
- export declare function toJson_FirestartrGithubRepositorySpecVarsDependabot(obj: FirestartrGithubRepositorySpecVarsDependabot | undefined): Record<string, any> | undefined;
1422
- /**
1423
- * @schema FirestartrGithubRepositorySpecVarsCodespaces
1424
- */
1425
- export interface FirestartrGithubRepositorySpecVarsCodespaces {
1426
- /**
1427
- * @schema FirestartrGithubRepositorySpecVarsCodespaces#name
1428
- */
1429
- readonly name?: string;
1430
- /**
1431
- * @schema FirestartrGithubRepositorySpecVarsCodespaces#value
1432
- */
1433
- readonly value?: string;
1434
- /**
1435
- * @schema FirestartrGithubRepositorySpecVarsCodespaces#ref
1436
- */
1437
- readonly ref?: FirestartrGithubRepositorySpecVarsCodespacesRef;
1438
- }
1439
- /**
1440
- * Converts an object of type 'FirestartrGithubRepositorySpecVarsCodespaces' to JSON representation.
1441
- */
1442
- export declare function toJson_FirestartrGithubRepositorySpecVarsCodespaces(obj: FirestartrGithubRepositorySpecVarsCodespaces | undefined): Record<string, any> | undefined;
1443
1393
  /**
1444
1394
  * @schema FirestartrGithubRepositorySpecWriteConnectionSecretToRefOutputs
1445
1395
  */
@@ -1530,26 +1480,26 @@ export interface FirestartrGithubRepositorySpecSecretsCodespacesRef {
1530
1480
  */
1531
1481
  export declare function toJson_FirestartrGithubRepositorySpecSecretsCodespacesRef(obj: FirestartrGithubRepositorySpecSecretsCodespacesRef | undefined): Record<string, any> | undefined;
1532
1482
  /**
1533
- * @schema FirestartrGithubRepositorySpecSecretsCopilotRef
1483
+ * @schema FirestartrGithubRepositorySpecSecretsDependabotRef
1534
1484
  */
1535
- export interface FirestartrGithubRepositorySpecSecretsCopilotRef {
1485
+ export interface FirestartrGithubRepositorySpecSecretsDependabotRef {
1536
1486
  /**
1537
- * @schema FirestartrGithubRepositorySpecSecretsCopilotRef#kind
1487
+ * @schema FirestartrGithubRepositorySpecSecretsDependabotRef#kind
1538
1488
  */
1539
1489
  readonly kind: string;
1540
1490
  /**
1541
- * @schema FirestartrGithubRepositorySpecSecretsCopilotRef#name
1491
+ * @schema FirestartrGithubRepositorySpecSecretsDependabotRef#name
1542
1492
  */
1543
1493
  readonly name: string;
1544
1494
  /**
1545
- * @schema FirestartrGithubRepositorySpecSecretsCopilotRef#key
1495
+ * @schema FirestartrGithubRepositorySpecSecretsDependabotRef#key
1546
1496
  */
1547
1497
  readonly key: string;
1548
1498
  }
1549
1499
  /**
1550
- * Converts an object of type 'FirestartrGithubRepositorySpecSecretsCopilotRef' to JSON representation.
1500
+ * Converts an object of type 'FirestartrGithubRepositorySpecSecretsDependabotRef' to JSON representation.
1551
1501
  */
1552
- export declare function toJson_FirestartrGithubRepositorySpecSecretsCopilotRef(obj: FirestartrGithubRepositorySpecSecretsCopilotRef | undefined): Record<string, any> | undefined;
1502
+ export declare function toJson_FirestartrGithubRepositorySpecSecretsDependabotRef(obj: FirestartrGithubRepositorySpecSecretsDependabotRef | undefined): Record<string, any> | undefined;
1553
1503
  /**
1554
1504
  * @schema FirestartrGithubRepositorySpecVarsVariableItemSchemaRef
1555
1505
  */
@@ -1592,48 +1542,6 @@ export interface FirestartrGithubRepositorySpecVarsActionsRef {
1592
1542
  * Converts an object of type 'FirestartrGithubRepositorySpecVarsActionsRef' to JSON representation.
1593
1543
  */
1594
1544
  export declare function toJson_FirestartrGithubRepositorySpecVarsActionsRef(obj: FirestartrGithubRepositorySpecVarsActionsRef | undefined): Record<string, any> | undefined;
1595
- /**
1596
- * @schema FirestartrGithubRepositorySpecVarsDependabotRef
1597
- */
1598
- export interface FirestartrGithubRepositorySpecVarsDependabotRef {
1599
- /**
1600
- * @schema FirestartrGithubRepositorySpecVarsDependabotRef#kind
1601
- */
1602
- readonly kind: string;
1603
- /**
1604
- * @schema FirestartrGithubRepositorySpecVarsDependabotRef#name
1605
- */
1606
- readonly name: string;
1607
- /**
1608
- * @schema FirestartrGithubRepositorySpecVarsDependabotRef#key
1609
- */
1610
- readonly key: string;
1611
- }
1612
- /**
1613
- * Converts an object of type 'FirestartrGithubRepositorySpecVarsDependabotRef' to JSON representation.
1614
- */
1615
- export declare function toJson_FirestartrGithubRepositorySpecVarsDependabotRef(obj: FirestartrGithubRepositorySpecVarsDependabotRef | undefined): Record<string, any> | undefined;
1616
- /**
1617
- * @schema FirestartrGithubRepositorySpecVarsCodespacesRef
1618
- */
1619
- export interface FirestartrGithubRepositorySpecVarsCodespacesRef {
1620
- /**
1621
- * @schema FirestartrGithubRepositorySpecVarsCodespacesRef#kind
1622
- */
1623
- readonly kind: string;
1624
- /**
1625
- * @schema FirestartrGithubRepositorySpecVarsCodespacesRef#name
1626
- */
1627
- readonly name: string;
1628
- /**
1629
- * @schema FirestartrGithubRepositorySpecVarsCodespacesRef#key
1630
- */
1631
- readonly key: string;
1632
- }
1633
- /**
1634
- * Converts an object of type 'FirestartrGithubRepositorySpecVarsCodespacesRef' to JSON representation.
1635
- */
1636
- export declare function toJson_FirestartrGithubRepositorySpecVarsCodespacesRef(obj: FirestartrGithubRepositorySpecVarsCodespacesRef | undefined): Record<string, any> | undefined;
1637
1545
  /**
1638
1546
  * @schema FirestartrGithubRepositorySpecContextBackendRefKind
1639
1547
  */
@@ -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
  };
@@ -71,12 +71,10 @@ export type RepoSecret = {
71
71
  export type NamedVars = Var[];
72
72
  export type RepoSecrets = RepoSecret[];
73
73
  export interface VarsConfiguration {
74
- copilot?: NamedVars;
75
74
  actions?: NamedVars;
76
- codespaces?: NamedVars;
77
75
  }
78
76
  export interface RepoSecretsConfiguration {
79
- copilot?: RepoSecrets;
77
+ dependabot?: RepoSecrets;
80
78
  actions?: RepoSecrets;
81
79
  codespaces?: RepoSecrets;
82
80
  }
@@ -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>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@firestartr/cli",
3
- "version": "1.49.0-snapshot-10",
3
+ "version": "1.49.0-snapshot-12",
4
4
  "private": false,
5
5
  "description": "Commandline tool",
6
6
  "main": "build/main.js",