@pulumi/github 5.27.0-alpha.1708063205 → 6.0.0-alpha.1708444599

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.
Files changed (42) hide show
  1. package/README.md +1 -3
  2. package/branchProtection.d.ts +25 -35
  3. package/branchProtection.js +9 -9
  4. package/branchProtection.js.map +1 -1
  5. package/config/vars.d.ts +14 -0
  6. package/config/vars.js +18 -0
  7. package/config/vars.js.map +1 -1
  8. package/dependabotOrganizationSecret.d.ts +68 -16
  9. package/dependabotOrganizationSecret.js +52 -0
  10. package/dependabotOrganizationSecret.js.map +1 -1
  11. package/dependabotOrganizationSecretRepositories.d.ts +37 -3
  12. package/dependabotOrganizationSecretRepositories.js +34 -0
  13. package/dependabotOrganizationSecretRepositories.js.map +1 -1
  14. package/dependabotSecret.d.ts +44 -13
  15. package/dependabotSecret.js +31 -0
  16. package/dependabotSecret.js.map +1 -1
  17. package/getDependabotPublicKey.d.ts +42 -0
  18. package/getDependabotPublicKey.js +30 -0
  19. package/getDependabotPublicKey.js.map +1 -1
  20. package/getIpRanges.d.ts +12 -0
  21. package/getIpRanges.js.map +1 -1
  22. package/getRepository.d.ts +1 -1
  23. package/getRestApi.d.ts +4 -8
  24. package/organizationWebhook.d.ts +0 -17
  25. package/organizationWebhook.js +0 -17
  26. package/organizationWebhook.js.map +1 -1
  27. package/package.json +1 -1
  28. package/provider.d.ts +14 -0
  29. package/provider.js +3 -0
  30. package/provider.js.map +1 -1
  31. package/repositoryDependabotSecurityUpdates.d.ts +33 -3
  32. package/repositoryDependabotSecurityUpdates.js +30 -0
  33. package/repositoryDependabotSecurityUpdates.js.map +1 -1
  34. package/repositoryDeployKey.d.ts +8 -5
  35. package/repositoryDeployKey.js +8 -5
  36. package/repositoryDeployKey.js.map +1 -1
  37. package/repositoryEnvironment.d.ts +13 -0
  38. package/repositoryEnvironment.js +3 -0
  39. package/repositoryEnvironment.js.map +1 -1
  40. package/repositoryFile.d.ts +3 -3
  41. package/types/input.d.ts +11 -1
  42. package/types/output.d.ts +11 -1
@@ -1 +1 @@
1
- {"version":3,"file":"dependabotOrganizationSecretRepositories.js","sourceRoot":"","sources":["../dependabotOrganizationSecretRepositories.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,wCAAyC,SAAQ,MAAM,CAAC,cAAc;IAC/E;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAqD,EAAE,IAAmC;QACnJ,OAAO,IAAI,wCAAwC,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC/F,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,wCAAwC,CAAC,YAAY,CAAC;IACzF,CAAC;IAmBD,YAAY,IAAY,EAAE,WAA0G,EAAE,IAAmC;QACrK,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAwE,CAAC;YACvF,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,uBAAuB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC,CAAC,SAAS,CAAC;SAC7F;aAAM;YACH,MAAM,IAAI,GAAG,WAAuE,CAAC;YACrF,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,UAAU,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACvD,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAC;aAC7D;YACD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,qBAAqB,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAClE,MAAM,IAAI,KAAK,CAAC,mDAAmD,CAAC,CAAC;aACxE;YACD,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,uBAAuB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC,CAAC,SAAS,CAAC;SAC3F;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,wCAAwC,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7F,CAAC;;AAjEL,4FAkEC;AApDG,gBAAgB;AACO,qDAAY,GAAG,gGAAgG,CAAC"}
1
+ {"version":3,"file":"dependabotOrganizationSecretRepositories.js","sourceRoot":"","sources":["../dependabotOrganizationSecretRepositories.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,MAAa,wCAAyC,SAAQ,MAAM,CAAC,cAAc;IAC/E;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAqD,EAAE,IAAmC;QACnJ,OAAO,IAAI,wCAAwC,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC/F,CAAC;IAKD;;;OAG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SAC3F;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,wCAAwC,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7F,CAAC;;AAjEL,4FAkEC;AApDG,gBAAgB;AACO,qDAAY,GAAG,gGAAgG,CAAC"}
@@ -1,4 +1,35 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * ## Example Usage
4
+ *
5
+ * ```typescript
6
+ * import * as pulumi from "@pulumi/pulumi";
7
+ * import * as github from "@pulumi/github";
8
+ *
9
+ * const examplePublicKey = github.getDependabotPublicKey({
10
+ * repository: "example_repository",
11
+ * });
12
+ * const exampleSecretDependabotSecret = new github.DependabotSecret("exampleSecretDependabotSecret", {
13
+ * repository: "example_repository",
14
+ * secretName: "example_secret_name",
15
+ * plaintextValue: _var.some_secret_string,
16
+ * });
17
+ * const exampleSecretIndex_dependabotSecretDependabotSecret = new github.DependabotSecret("exampleSecretIndex/dependabotSecretDependabotSecret", {
18
+ * repository: "example_repository",
19
+ * secretName: "example_secret_name",
20
+ * encryptedValue: _var.some_encrypted_secret_string,
21
+ * });
22
+ * ```
23
+ *
24
+ * ## Import
25
+ *
26
+ * This resource can be imported using an ID made up of the `repository` and `secret_name`:
27
+ *
28
+ * ```sh
29
+ * $ pulumi import github:index/dependabotSecret:DependabotSecret example_secret example_repository/example_secret
30
+ * ```
31
+ * NOTE: the implementation is limited in that it won't fetch the value of the `plaintext_value` or `encrypted_value` fields when importing. You may need to ignore changes for these as a workaround.
32
+ */
2
33
  export declare class DependabotSecret extends pulumi.CustomResource {
3
34
  /**
4
35
  * Get an existing DependabotSecret resource's state with the given name, ID, and optional extra
@@ -16,7 +47,7 @@ export declare class DependabotSecret extends pulumi.CustomResource {
16
47
  */
17
48
  static isInstance(obj: any): obj is DependabotSecret;
18
49
  /**
19
- * Date of 'dependabot_secret' creation.
50
+ * Date of dependabotSecret creation.
20
51
  */
21
52
  readonly createdAt: pulumi.Output<string>;
22
53
  /**
@@ -24,19 +55,19 @@ export declare class DependabotSecret extends pulumi.CustomResource {
24
55
  */
25
56
  readonly encryptedValue: pulumi.Output<string | undefined>;
26
57
  /**
27
- * Plaintext value of the secret to be encrypted.
58
+ * Plaintext value of the secret to be encrypted
28
59
  */
29
60
  readonly plaintextValue: pulumi.Output<string | undefined>;
30
61
  /**
31
- * Name of the repository.
62
+ * Name of the repository
32
63
  */
33
64
  readonly repository: pulumi.Output<string>;
34
65
  /**
35
- * Name of the secret.
66
+ * Name of the secret
36
67
  */
37
68
  readonly secretName: pulumi.Output<string>;
38
69
  /**
39
- * Date of 'dependabot_secret' update.
70
+ * Date of dependabotSecret update.
40
71
  */
41
72
  readonly updatedAt: pulumi.Output<string>;
42
73
  /**
@@ -53,7 +84,7 @@ export declare class DependabotSecret extends pulumi.CustomResource {
53
84
  */
54
85
  export interface DependabotSecretState {
55
86
  /**
56
- * Date of 'dependabot_secret' creation.
87
+ * Date of dependabotSecret creation.
57
88
  */
58
89
  createdAt?: pulumi.Input<string>;
59
90
  /**
@@ -61,19 +92,19 @@ export interface DependabotSecretState {
61
92
  */
62
93
  encryptedValue?: pulumi.Input<string>;
63
94
  /**
64
- * Plaintext value of the secret to be encrypted.
95
+ * Plaintext value of the secret to be encrypted
65
96
  */
66
97
  plaintextValue?: pulumi.Input<string>;
67
98
  /**
68
- * Name of the repository.
99
+ * Name of the repository
69
100
  */
70
101
  repository?: pulumi.Input<string>;
71
102
  /**
72
- * Name of the secret.
103
+ * Name of the secret
73
104
  */
74
105
  secretName?: pulumi.Input<string>;
75
106
  /**
76
- * Date of 'dependabot_secret' update.
107
+ * Date of dependabotSecret update.
77
108
  */
78
109
  updatedAt?: pulumi.Input<string>;
79
110
  }
@@ -86,15 +117,15 @@ export interface DependabotSecretArgs {
86
117
  */
87
118
  encryptedValue?: pulumi.Input<string>;
88
119
  /**
89
- * Plaintext value of the secret to be encrypted.
120
+ * Plaintext value of the secret to be encrypted
90
121
  */
91
122
  plaintextValue?: pulumi.Input<string>;
92
123
  /**
93
- * Name of the repository.
124
+ * Name of the repository
94
125
  */
95
126
  repository: pulumi.Input<string>;
96
127
  /**
97
- * Name of the secret.
128
+ * Name of the secret
98
129
  */
99
130
  secretName: pulumi.Input<string>;
100
131
  }
@@ -5,6 +5,37 @@ Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.DependabotSecret = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
+ /**
9
+ * ## Example Usage
10
+ *
11
+ * ```typescript
12
+ * import * as pulumi from "@pulumi/pulumi";
13
+ * import * as github from "@pulumi/github";
14
+ *
15
+ * const examplePublicKey = github.getDependabotPublicKey({
16
+ * repository: "example_repository",
17
+ * });
18
+ * const exampleSecretDependabotSecret = new github.DependabotSecret("exampleSecretDependabotSecret", {
19
+ * repository: "example_repository",
20
+ * secretName: "example_secret_name",
21
+ * plaintextValue: _var.some_secret_string,
22
+ * });
23
+ * const exampleSecretIndex_dependabotSecretDependabotSecret = new github.DependabotSecret("exampleSecretIndex/dependabotSecretDependabotSecret", {
24
+ * repository: "example_repository",
25
+ * secretName: "example_secret_name",
26
+ * encryptedValue: _var.some_encrypted_secret_string,
27
+ * });
28
+ * ```
29
+ *
30
+ * ## Import
31
+ *
32
+ * This resource can be imported using an ID made up of the `repository` and `secret_name`:
33
+ *
34
+ * ```sh
35
+ * $ pulumi import github:index/dependabotSecret:DependabotSecret example_secret example_repository/example_secret
36
+ * ```
37
+ * NOTE: the implementation is limited in that it won't fetch the value of the `plaintext_value` or `encrypted_value` fields when importing. You may need to ignore changes for these as a workaround.
38
+ */
8
39
  class DependabotSecret extends pulumi.CustomResource {
9
40
  /**
10
41
  * Get an existing DependabotSecret resource's state with the given name, ID, and optional extra
@@ -1 +1 @@
1
- {"version":3,"file":"dependabotSecret.js","sourceRoot":"","sources":["../dependabot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AAC,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;YACzG,cAAc,CAAC,gBAAgB,CAAC,GAAG,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,cAAc,EAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;YACzG,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACnD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,gBAAgB,EAAE,gBAAgB,CAAC,EAAE,CAAC;QACrF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,gBAAgB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACrE,CAAC;;AA3FL,4CA4FC;AA9EG,gBAAgB;AACO,6BAAY,GAAG,gDAAgD,CAAC"}
@@ -1,9 +1,27 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Use this data source to retrieve information about a GitHub Dependabot public key. This data source is required to be used with other GitHub secrets interactions.
4
+ * Note that the provider `token` must have admin rights to a repository to retrieve it's Dependabot public key.
5
+ *
6
+ * ## Example Usage
7
+ *
8
+ * ```typescript
9
+ * import * as pulumi from "@pulumi/pulumi";
10
+ * import * as github from "@pulumi/github";
11
+ *
12
+ * const example = github.getDependabotPublicKey({
13
+ * repository: "example_repo",
14
+ * });
15
+ * ```
16
+ */
2
17
  export declare function getDependabotPublicKey(args: GetDependabotPublicKeyArgs, opts?: pulumi.InvokeOptions): Promise<GetDependabotPublicKeyResult>;
3
18
  /**
4
19
  * A collection of arguments for invoking getDependabotPublicKey.
5
20
  */
6
21
  export interface GetDependabotPublicKeyArgs {
22
+ /**
23
+ * Name of the repository to get public key from.
24
+ */
7
25
  repository: string;
8
26
  }
9
27
  /**
@@ -14,14 +32,38 @@ export interface GetDependabotPublicKeyResult {
14
32
  * The provider-assigned unique ID for this managed resource.
15
33
  */
16
34
  readonly id: string;
35
+ /**
36
+ * Actual key retrieved.
37
+ */
17
38
  readonly key: string;
39
+ /**
40
+ * ID of the key that has been retrieved.
41
+ */
18
42
  readonly keyId: string;
19
43
  readonly repository: string;
20
44
  }
45
+ /**
46
+ * Use this data source to retrieve information about a GitHub Dependabot public key. This data source is required to be used with other GitHub secrets interactions.
47
+ * Note that the provider `token` must have admin rights to a repository to retrieve it's Dependabot public key.
48
+ *
49
+ * ## Example Usage
50
+ *
51
+ * ```typescript
52
+ * import * as pulumi from "@pulumi/pulumi";
53
+ * import * as github from "@pulumi/github";
54
+ *
55
+ * const example = github.getDependabotPublicKey({
56
+ * repository: "example_repo",
57
+ * });
58
+ * ```
59
+ */
21
60
  export declare function getDependabotPublicKeyOutput(args: GetDependabotPublicKeyOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetDependabotPublicKeyResult>;
22
61
  /**
23
62
  * A collection of arguments for invoking getDependabotPublicKey.
24
63
  */
25
64
  export interface GetDependabotPublicKeyOutputArgs {
65
+ /**
66
+ * Name of the repository to get public key from.
67
+ */
26
68
  repository: pulumi.Input<string>;
27
69
  }
@@ -5,6 +5,21 @@ Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.getDependabotPublicKeyOutput = exports.getDependabotPublicKey = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
+ /**
9
+ * Use this data source to retrieve information about a GitHub Dependabot public key. This data source is required to be used with other GitHub secrets interactions.
10
+ * Note that the provider `token` must have admin rights to a repository to retrieve it's Dependabot public key.
11
+ *
12
+ * ## Example Usage
13
+ *
14
+ * ```typescript
15
+ * import * as pulumi from "@pulumi/pulumi";
16
+ * import * as github from "@pulumi/github";
17
+ *
18
+ * const example = github.getDependabotPublicKey({
19
+ * repository: "example_repo",
20
+ * });
21
+ * ```
22
+ */
8
23
  function getDependabotPublicKey(args, opts) {
9
24
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
10
25
  return pulumi.runtime.invoke("github:index/getDependabotPublicKey:getDependabotPublicKey", {
@@ -12,6 +27,21 @@ function getDependabotPublicKey(args, opts) {
12
27
  }, opts);
13
28
  }
14
29
  exports.getDependabotPublicKey = getDependabotPublicKey;
30
+ /**
31
+ * Use this data source to retrieve information about a GitHub Dependabot public key. This data source is required to be used with other GitHub secrets interactions.
32
+ * Note that the provider `token` must have admin rights to a repository to retrieve it's Dependabot public key.
33
+ *
34
+ * ## Example Usage
35
+ *
36
+ * ```typescript
37
+ * import * as pulumi from "@pulumi/pulumi";
38
+ * import * as github from "@pulumi/github";
39
+ *
40
+ * const example = github.getDependabotPublicKey({
41
+ * repository: "example_repo",
42
+ * });
43
+ * ```
44
+ */
15
45
  function getDependabotPublicKeyOutput(args, opts) {
16
46
  return pulumi.output(args).apply((a) => getDependabotPublicKey(a, opts));
17
47
  }
@@ -1 +1 @@
1
- {"version":3,"file":"getDependabotPublicKey.js","sourceRoot":"","sources":["../getDependabotPublicKey.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,SAAgB,sBAAsB,CAAC,IAAgC,EAAE,IAA2B;IAEhG,IAAI,G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 @@ export interface GetIpRangesResult {
92
92
  * An Array of IP addresses in CIDR format specifying the A records for GitHub Importer.
93
93
  */
94
94
  readonly importers: string[];
95
+ /**
96
+ * An Array of IP addresses in CIDR format specifying the A records for GitHub Packages.
97
+ */
98
+ readonly packages: string[];
99
+ /**
100
+ * A subset of the `packages` array that contains IP addresses in IPv4 CIDR format.
101
+ */
102
+ readonly packagesIpv4s: string[];
103
+ /**
104
+ * A subset of the `packages` array that contains IP addresses in IPv6 CIDR format.
105
+ */
106
+ readonly packagesIpv6s: string[];
95
107
  /**
96
108
  * An Array of IP addresses in CIDR format specifying the A records for GitHub Pages.
97
109
  */
@@ -1 +1 @@
1
- {"version":3,"file":"getIpRanges.js","sourceRoot":"","sources":["../getIpRanges.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;GAWG;AACH,SAAgB,WAAW,CAAC,IAA2B;IAEnD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,sCAAsC,EAAE,EACpE,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,kCAKC;AA2GD;;;;;;;;;;;GAWG;AACH,SAAgB,iBAAiB,CAAC,IAA2B;IACzD,OAAO,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAA;AAC3C,CAAC;AAFD,8CAEC"}
1
+ {"version":3,"file":"getIpRanges.js","sourceRoot":"","sources":["../getIpRanges.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;GAWG;AACH,SAAgB,WAAW,CAAC,IAA2B;IAEnD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,sCAAsC,EAAE,EACpE,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,kCAKC;AAuHD;;;;;;;;;;;GAWG;AACH,SAAgB,iBAAiB,CAAC,IAA2B;IACzD,OAAO,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAA;AAC3C,CAAC;AAFD,8CAEC"}
@@ -172,7 +172,7 @@ export interface GetRepositoryResult {
172
172
  /**
173
173
  * The repository source template configuration.
174
174
  */
175
- readonly template: outputs.GetRepositoryTemplate;
175
+ readonly templates: outputs.GetRepositoryTemplate[];
176
176
  /**
177
177
  * The list of topics of the repository.
178
178
  */
package/getRestApi.d.ts CHANGED
@@ -28,22 +28,18 @@ export interface GetRestApiArgs {
28
28
  */
29
29
  export interface GetRestApiResult {
30
30
  /**
31
- * A map of response body.
31
+ * A JSON string containing response body.
32
32
  */
33
- readonly body: {
34
- [key: string]: any;
35
- };
33
+ readonly body: string;
36
34
  /**
37
35
  * A response status code.
38
36
  */
39
37
  readonly code: number;
40
38
  readonly endpoint: string;
41
39
  /**
42
- * A map of response headers.
40
+ * A JSON string containing response headers.
43
41
  */
44
- readonly headers: {
45
- [key: string]: any;
46
- };
42
+ readonly headers: string;
47
43
  /**
48
44
  * The provider-assigned unique ID for this managed resource.
49
45
  */
@@ -4,23 +4,6 @@ import * as outputs from "./types/output";
4
4
  /**
5
5
  * This resource allows you to create and manage webhooks for GitHub organization.
6
6
  *
7
- * ## Example Usage
8
- *
9
- * ```typescript
10
- * import * as pulumi from "@pulumi/pulumi";
11
- * import * as github from "@pulumi/github";
12
- *
13
- * const foo = new github.OrganizationWebhook("foo", {
14
- * active: false,
15
- * configuration: {
16
- * contentType: "form",
17
- * insecureSsl: false,
18
- * url: "https://google.de/",
19
- * },
20
- * events: ["issues"],
21
- * });
22
- * ```
23
- *
24
7
  * ## Import
25
8
  *
26
9
  * Organization webhooks can be imported using the `id` of the webhook. The `id` of the webhook can be found in the URL of the webhook. For example, `"https://github.com/organizations/foo-org/settings/hooks/123456789"`.
@@ -8,23 +8,6 @@ const utilities = require("./utilities");
8
8
  /**
9
9
  * This resource allows you to create and manage webhooks for GitHub organization.
10
10
  *
11
- * ## Example Usage
12
- *
13
- * ```typescript
14
- * import * as pulumi from "@pulumi/pulumi";
15
- * import * as github from "@pulumi/github";
16
- *
17
- * const foo = new github.OrganizationWebhook("foo", {
18
- * active: false,
19
- * configuration: {
20
- * contentType: "form",
21
- * insecureSsl: false,
22
- * url: "https://google.de/",
23
- * },
24
- * events: ["issues"],
25
- * });
26
- * ```
27
- *
28
11
  * ## Import
29
12
  *
30
13
  * Organization webhooks can be imported using the `id` of the webhook. The `id` of the webhook can be found in the URL of the webhook. For example, `"https://github.com/organizations/foo-org/settings/hooks/123456789"`.
@@ -1 +1 @@
1
- {"version":3,"file":"organizationWebhook.js","sourceRoot":"","sources":["../organizationWebhook.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,MAAa,mBAAoB,SAAQ,MAAM,CAAC,cAAc;IAC1D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAgC,EAAE,IAAmC;QAC9H,OAAO,IAAI,mBAAmB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC1E,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,mBAAmB,CAAC,YAAY,CAAC;IAC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CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC7C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,mBAAmB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACxE,CAAC;;AA7EL,kDA8EC;AAhEG,gBAAgB;AACO,gCAAY,GAAG,sDAAsD,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulumi/github",
3
- "version": "v5.27.0-alpha.1708063205+f5193b6f",
3
+ "version": "v6.0.0-alpha.1708444599+7ec2b43d",
4
4
  "description": "A Pulumi package for creating and managing github cloud resources.",
5
5
  "keywords": [
6
6
  "pulumi",
package/provider.d.ts CHANGED
@@ -56,6 +56,10 @@ export interface ProviderArgs {
56
56
  * Enable `insecure` mode for testing purposes
57
57
  */
58
58
  insecure?: pulumi.Input<boolean>;
59
+ /**
60
+ * Number of times to retry a request after receiving an error status codeDefaults to 3
61
+ */
62
+ maxRetries?: pulumi.Input<number>;
59
63
  /**
60
64
  * The GitHub organization name to manage. Use this field instead of `owner` when managing organization accounts.
61
65
  *
@@ -76,6 +80,16 @@ export interface ProviderArgs {
76
80
  * Amount of time in milliseconds to sleep in between non-write requests to GitHub API. Defaults to 0ms if not set.
77
81
  */
78
82
  readDelayMs?: pulumi.Input<number>;
83
+ /**
84
+ * Amount of time in milliseconds to sleep in between requests to GitHub API after an error response. Defaults to 1000ms or
85
+ * 1s if not set, the max_retries must be set to greater than zero.
86
+ */
87
+ retryDelayMs?: pulumi.Input<number>;
88
+ /**
89
+ * Allow the provider to retry after receiving an error status code, the max_retries should be set for this to workDefaults
90
+ * to [500, 502, 503, 504]
91
+ */
92
+ retryableErrors?: pulumi.Input<pulumi.Input<number>[]>;
79
93
  /**
80
94
  * The OAuth token used to connect to GitHub. Anonymous mode is enabled if both `token` and `app_auth` are not set.
81
95
  */
package/provider.js CHANGED
@@ -37,10 +37,13 @@ class Provider extends pulumi.ProviderResource {
37
37
  resourceInputs["appAuth"] = pulumi.output(args ? args.appAuth : undefined).apply(JSON.stringify);
38
38
  resourceInputs["baseUrl"] = (_a = (args ? args.baseUrl : undefined)) !== null && _a !== void 0 ? _a : (utilities.getEnv("GITHUB_BASE_URL") || "https://api.github.com/");
39
39
  resourceInputs["insecure"] = pulumi.output(args ? args.insecure : undefined).apply(JSON.stringify);
40
+ resourceInputs["maxRetries"] = pulumi.output(args ? args.maxRetries : undefined).apply(JSON.stringify);
40
41
  resourceInputs["organization"] = args ? args.organization : undefined;
41
42
  resourceInputs["owner"] = args ? args.owner : undefined;
42
43
  resourceInputs["parallelRequests"] = pulumi.output(args ? args.parallelRequests : undefined).apply(JSON.stringify);
43
44
  resourceInputs["readDelayMs"] = pulumi.output(args ? args.readDelayMs : undefined).apply(JSON.stringify);
45
+ resourceInputs["retryDelayMs"] = pulumi.output(args ? args.retryDelayMs : undefined).apply(JSON.stringify);
46
+ resourceInputs["retryableErrors"] = pulumi.output(args ? args.retryableErrors : undefined).apply(JSON.stringify);
44
47
  resourceInputs["token"] = args ? args.token : undefined;
45
48
  resourceInputs["writeDelayMs"] = pulumi.output(args ? args.writeDelayMs : undefined).apply(JSON.stringify);
46
49
  }
package/provider.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"provider.js","sourceRoot":"","sources":["../provider.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;GAKG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,gBAAgB;IAIjD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,mBAAmB,GAA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AAW,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;YACzG,cAAc,CAAC,cAAc,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;YAC3G,cAAc,CAAC,iBAAiB,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;YACjH,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,cAAc,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;SAC9G;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7D,CAAC;;AA5DL,4BA6DC;AA5DG,gBAAgB;AACO,qBAAY,GAAG,QAAQ,CAAC"}
@@ -1,4 +1,34 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * This resource allows you to manage dependabot automated security fixes for a single repository. See the
4
+ * [documentation](https://docs.github.com/en/code-security/dependabot/dependabot-security-updates/about-dependabot-security-updates)
5
+ * for details of usage and how this will impact your repository
6
+ *
7
+ * ## Example Usage
8
+ *
9
+ * ```typescript
10
+ * import * as pulumi from "@pulumi/pulumi";
11
+ * import * as github from "@pulumi/github";
12
+ *
13
+ * const repo = new github.Repository("repo", {
14
+ * description: "GitHub repo managed by Terraform",
15
+ * "private": false,
16
+ * vulnerabilityAlerts: true,
17
+ * });
18
+ * const example = new github.RepositoryDependabotSecurityUpdates("example", {
19
+ * repository: github_repository.test.id,
20
+ * enabled: true,
21
+ * });
22
+ * ```
23
+ *
24
+ * ## Import
25
+ *
26
+ * ### Import by name
27
+ *
28
+ * ```sh
29
+ * $ pulumi import github:index/repositoryDependabotSecurityUpdates:RepositoryDependabotSecurityUpdates example my-repo
30
+ * ```
31
+ */
2
32
  export declare class RepositoryDependabotSecurityUpdates extends pulumi.CustomResource {
3
33
  /**
4
34
  * Get an existing RepositoryDependabotSecurityUpdates resource's state with the given name, ID, and optional extra
@@ -20,7 +50,7 @@ export declare class RepositoryDependabotSecurityUpdates extends pulumi.CustomRe
20
50
  */
21
51
  readonly enabled: pulumi.Output<boolean>;
22
52
  /**
23
- * The GitHub repository.
53
+ * The repository to manage.
24
54
  */
25
55
  readonly repository: pulumi.Output<string>;
26
56
  /**
@@ -41,7 +71,7 @@ export interface RepositoryDependabotSecurityUpdatesState {
41
71
  */
42
72
  enabled?: pulumi.Input<boolean>;
43
73
  /**
44
- * The GitHub repository.
74
+ * The repository to manage.
45
75
  */
46
76
  repository?: pulumi.Input<string>;
47
77
  }
@@ -54,7 +84,7 @@ export interface RepositoryDependabotSecurityUpdatesArgs {
54
84
  */
55
85
  enabled: pulumi.Input<boolean>;
56
86
  /**
57
- * The GitHub repository.
87
+ * The repository to manage.
58
88
  */
59
89
  repository: pulumi.Input<string>;
60
90
  }
@@ -5,6 +5,36 @@ Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.RepositoryDependabotSecurityUpdates = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
+ /**
9
+ * This resource allows you to manage dependabot automated security fixes for a single repository. See the
10
+ * [documentation](https://docs.github.com/en/code-security/dependabot/dependabot-security-updates/about-dependabot-security-updates)
11
+ * for details of usage and how this will impact your repository
12
+ *
13
+ * ## Example Usage
14
+ *
15
+ * ```typescript
16
+ * import * as pulumi from "@pulumi/pulumi";
17
+ * import * as github from "@pulumi/github";
18
+ *
19
+ * const repo = new github.Repository("repo", {
20
+ * description: "GitHub repo managed by Terraform",
21
+ * "private": false,
22
+ * vulnerabilityAlerts: true,
23
+ * });
24
+ * const example = new github.RepositoryDependabotSecurityUpdates("example", {
25
+ * repository: github_repository.test.id,
26
+ * enabled: true,
27
+ * });
28
+ * ```
29
+ *
30
+ * ## Import
31
+ *
32
+ * ### Import by name
33
+ *
34
+ * ```sh
35
+ * $ pulumi import github:index/repositoryDependabotSecurityUpdates:RepositoryDependabotSecurityUpdates example my-repo
36
+ * ```
37
+ */
8
38
  class RepositoryDependabotSecurityUpdates extends pulumi.CustomResource {
9
39
  /**
10
40
  * Get an existing RepositoryDependabotSecurityUpdates resource's state with the given name, ID, and optional extra
@@ -1 +1 @@
1
- {"version":3,"file":"repositoryDependabotSecurityUpdates.js","sourceRoot":"","sources":["../repositoryDependabotSecurityUpdates.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,mCAAoC,SAAQ,MAAM,CAAC,cAAc;IAC1E;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAgD,EAAE,IAAmC;QAC9I,OAAO,IAAI,mCAAmC,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC1F,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,K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;YAChF,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,OAAO,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACpD,MAAM,IAAI,KAAK,CAAC,qCAAqC,CAAC,CAAC;aAC1D;YACD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,UAAU,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACvD,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAC;aAC7D;YACD,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;SACrE;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,mCAAmC,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACxF,CAAC;;AAjEL,kFAkEC;AApDG,gBAAgB;AACO,gDAAY,GAAG,sFAAsF,CAAC"}
@@ -16,13 +16,16 @@ import * as pulumi from "@pulumi/pulumi";
16
16
  * ```typescript
17
17
  * import * as pulumi from "@pulumi/pulumi";
18
18
  * import * as github from "@pulumi/github";
19
+ * import * as tls from "@pulumi/tls";
19
20
  *
20
- * // Add a deploy key
21
- * const exampleRepositoryDeployKey = new github.RepositoryDeployKey("exampleRepositoryDeployKey", {
22
- * key: "ssh-rsa AAA...",
23
- * readOnly: false,
24
- * repository: "test-repo",
21
+ * // Generate an ssh key using provider "hashicorp/tls"
22
+ * const exampleRepositoryDeployKeyPrivateKey = new tls.PrivateKey("exampleRepositoryDeployKeyPrivateKey", {algorithm: "ED25519"});
23
+ * // Add the ssh key as a deploy key
24
+ * const exampleRepositoryDeployKeyRepositoryDeployKey = new github.RepositoryDeployKey("exampleRepositoryDeployKeyRepositoryDeployKey", {
25
25
  * title: "Repository test key",
26
+ * repository: "test-repo",
27
+ * key: exampleRepositoryDeployKeyPrivateKey.publicKeyOpenssh,
28
+ * readOnly: true,
26
29
  * });
27
30
  * ```
28
31
  *
@@ -22,13 +22,16 @@ const utilities = require("./utilities");
22
22
  * ```typescript
23
23
  * import * as pulumi from "@pulumi/pulumi";
24
24
  * import * as github from "@pulumi/github";
25
+ * import * as tls from "@pulumi/tls";
25
26
  *
26
- * // Add a deploy key
27
- * const exampleRepositoryDeployKey = new github.RepositoryDeployKey("exampleRepositoryDeployKey", {
28
- * key: "ssh-rsa AAA...",
29
- * readOnly: false,
30
- * repository: "test-repo",
27
+ * // Generate an ssh key using provider "hashicorp/tls"
28
+ * const exampleRepositoryDeployKeyPrivateKey = new tls.PrivateKey("exampleRepositoryDeployKeyPrivateKey", {algorithm: "ED25519"});
29
+ * // Add the ssh key as a deploy key
30
+ * const exampleRepositoryDeployKeyRepositoryDeployKey = new github.RepositoryDeployKey("exampleRepositoryDeployKeyRepositoryDeployKey", {
31
31
  * title: "Repository test key",
32
+ * repository: "test-repo",
33
+ * key: exampleRepositoryDeployKeyPrivateKey.publicKeyOpenssh,
34
+ * readOnly: true,
32
35
  * });
33
36
  * ```
34
37
  *