@pulumi/github 6.13.0-alpha.1777011674 → 6.13.0

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 (75) hide show
  1. package/actionsEnvironmentSecret.d.ts +52 -16
  2. package/actionsEnvironmentSecret.js +10 -6
  3. package/actionsEnvironmentSecret.js.map +1 -1
  4. package/actionsOrganizationPermissions.d.ts +3 -3
  5. package/actionsOrganizationSecret.d.ts +56 -20
  6. package/actionsOrganizationSecret.js +13 -9
  7. package/actionsOrganizationSecret.js.map +1 -1
  8. package/actionsOrganizationSecretRepositories.d.ts +1 -1
  9. package/actionsOrganizationSecretRepositories.js +1 -1
  10. package/actionsOrganizationSecretRepository.d.ts +1 -1
  11. package/actionsOrganizationSecretRepository.js +1 -1
  12. package/actionsOrganizationVariableRepositories.d.ts +1 -1
  13. package/actionsOrganizationVariableRepositories.js +1 -1
  14. package/actionsOrganizationVariableRepository.d.ts +1 -1
  15. package/actionsOrganizationVariableRepository.js +1 -1
  16. package/actionsRepositoryPermissions.d.ts +3 -3
  17. package/actionsSecret.d.ts +51 -15
  18. package/actionsSecret.js +11 -7
  19. package/actionsSecret.js.map +1 -1
  20. package/dependabotOrganizationSecret.d.ts +57 -15
  21. package/dependabotOrganizationSecret.js +11 -7
  22. package/dependabotOrganizationSecret.js.map +1 -1
  23. package/dependabotOrganizationSecretRepositories.d.ts +1 -1
  24. package/dependabotOrganizationSecretRepositories.js +1 -1
  25. package/dependabotOrganizationSecretRepository.d.ts +1 -1
  26. package/dependabotOrganizationSecretRepository.js +1 -1
  27. package/dependabotSecret.d.ts +54 -18
  28. package/dependabotSecret.js +11 -7
  29. package/dependabotSecret.js.map +1 -1
  30. package/emuGroupMapping.d.ts +12 -6
  31. package/emuGroupMapping.js +2 -2
  32. package/emuGroupMapping.js.map +1 -1
  33. package/enterpriseIpAllowListEntry.d.ts +125 -0
  34. package/enterpriseIpAllowListEntry.js +90 -0
  35. package/enterpriseIpAllowListEntry.js.map +1 -0
  36. package/getIpRanges.d.ts +28 -4
  37. package/getIpRanges.js.map +1 -1
  38. package/getOrganizationAppInstallations.d.ts +45 -0
  39. package/getOrganizationAppInstallations.js +46 -0
  40. package/getOrganizationAppInstallations.js.map +1 -0
  41. package/getRepository.d.ts +3 -1
  42. package/getRepository.js.map +1 -1
  43. package/getRepositoryPages.d.ts +96 -0
  44. package/getRepositoryPages.js +50 -0
  45. package/getRepositoryPages.js.map +1 -0
  46. package/index.d.ts +15 -0
  47. package/index.js +26 -5
  48. package/index.js.map +1 -1
  49. package/organizationRuleset.d.ts +38 -0
  50. package/organizationRuleset.js +38 -0
  51. package/organizationRuleset.js.map +1 -1
  52. package/package.json +2 -2
  53. package/repository.d.ts +28 -35
  54. package/repository.js +0 -19
  55. package/repository.js.map +1 -1
  56. package/repositoryCollaborators.d.ts +8 -8
  57. package/repositoryCollaborators.js +2 -8
  58. package/repositoryCollaborators.js.map +1 -1
  59. package/repositoryEnvironment.d.ts +13 -1
  60. package/repositoryEnvironment.js +7 -1
  61. package/repositoryEnvironment.js.map +1 -1
  62. package/repositoryEnvironmentDeploymentPolicy.d.ts +21 -1
  63. package/repositoryEnvironmentDeploymentPolicy.js +9 -1
  64. package/repositoryEnvironmentDeploymentPolicy.js.map +1 -1
  65. package/repositoryPages.d.ts +228 -0
  66. package/repositoryPages.js +150 -0
  67. package/repositoryPages.js.map +1 -0
  68. package/repositoryVulnerabilityAlerts.d.ts +98 -0
  69. package/repositoryVulnerabilityAlerts.js +86 -0
  70. package/repositoryVulnerabilityAlerts.js.map +1 -0
  71. package/teamSettings.d.ts +35 -12
  72. package/teamSettings.js +21 -8
  73. package/teamSettings.js.map +1 -1
  74. package/types/input.d.ts +52 -8
  75. package/types/output.d.ts +118 -8
@@ -37,7 +37,11 @@ const utilities = require("./utilities");
37
37
  *
38
38
  * ## Import
39
39
  *
40
- * This resource can be imported using an ID made of the repository name, and environment name (any `:` in the name need to be escaped as `??`) separated by a `:`.
40
+ * This resource can be imported using an ID made of the repository name and environment name (any `:` in the environment name need to be escaped as `??`) separated by a `:`.
41
+ *
42
+ * ### Import Command
43
+ *
44
+ * The following command imports an environment called `myenv` for the repo `myrepo` to a `github.RepositoryEnvironment` resource named `example`.
41
45
  *
42
46
  * ```sh
43
47
  * $ pulumi import github:index/repositoryEnvironment:RepositoryEnvironment example myrepo:myenv
@@ -76,6 +80,7 @@ class RepositoryEnvironment extends pulumi.CustomResource {
76
80
  resourceInputs["environment"] = state?.environment;
77
81
  resourceInputs["preventSelfReview"] = state?.preventSelfReview;
78
82
  resourceInputs["repository"] = state?.repository;
83
+ resourceInputs["repositoryId"] = state?.repositoryId;
79
84
  resourceInputs["reviewers"] = state?.reviewers;
80
85
  resourceInputs["waitTimer"] = state?.waitTimer;
81
86
  }
@@ -94,6 +99,7 @@ class RepositoryEnvironment extends pulumi.CustomResource {
94
99
  resourceInputs["repository"] = args?.repository;
95
100
  resourceInputs["reviewers"] = args?.reviewers;
96
101
  resourceInputs["waitTimer"] = args?.waitTimer;
102
+ resourceInputs["repositoryId"] = undefined /*out*/;
97
103
  }
98
104
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
99
105
  super(RepositoryEnvironment.__pulumiType, name, resourceInputs, opts);
@@ -1 +1 @@
1
- {"version":3,"file":"repositoryEnvironment.js","sourceRoot":"","sources":["../repositoryEnvironment.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,MAAa,qBAAsB,SAAQ,MAAM,CAAC,cAAc;IAC5D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAkC,EAAE,IAAmC;QAChI,OAAO,IAAI,qBAAqB,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAA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,CAAC,wBAAwB,CAAC,GAAG,IAAI,EAAE,sBAAsB,CAAC;YACxE,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,EAAE,WAAW,CAAC;YAClD,cAAc,CAAC,mBAAmB,CAAC,GAAG,IAAI,EAAE,iBAAiB,CAAC;YAC9D,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,EAAE,SAAS,CAAC;YAC9C,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,EAAE,SAAS,CAAC;YAC9C,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACtD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,qBAAqB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC1E,CAAC;;AArGL,sDAsGC;AAxFG,gBAAgB;AACO,kCAAY,GAAG,0DAA0D,CAAC"}
@@ -64,7 +64,11 @@ import * as pulumi from "@pulumi/pulumi";
64
64
  *
65
65
  * ## Import
66
66
  *
67
- * This resource can be imported using an ID made of the repository name, environment name (any `:` in the name need to be escaped as `??`), and deployment policy ID all separated by a `:`.
67
+ * This resource can be imported using an ID made of the repository name, environment name (any `:` in the environment name need to be escaped as `??`), and deployment policy ID name all separated by a `:`.
68
+ *
69
+ * ### Import Command
70
+ *
71
+ * The following command imports a deployment policy with the ID `123456` for the repo `myrepo` and environment `myenv` to a `github.RepositoryEnvironmentDeploymentPolicy` resource named `example`.
68
72
  *
69
73
  * ```sh
70
74
  * $ pulumi import github:index/repositoryEnvironmentDeploymentPolicy:RepositoryEnvironmentDeploymentPolicy example myrepo:myenv:123456
@@ -94,10 +98,18 @@ export declare class RepositoryEnvironmentDeploymentPolicy extends pulumi.Custom
94
98
  * The name of the environment.
95
99
  */
96
100
  readonly environment: pulumi.Output<string>;
101
+ /**
102
+ * The ID of the deployment policy.
103
+ */
104
+ readonly policyId: pulumi.Output<number>;
97
105
  /**
98
106
  * The repository of the environment.
99
107
  */
100
108
  readonly repository: pulumi.Output<string>;
109
+ /**
110
+ * The ID of the repository.
111
+ */
112
+ readonly repositoryId: pulumi.Output<number>;
101
113
  /**
102
114
  * The name pattern that tags must match in order to deploy to the environment. If not specified, `branchPattern` must be specified.
103
115
  */
@@ -123,10 +135,18 @@ export interface RepositoryEnvironmentDeploymentPolicyState {
123
135
  * The name of the environment.
124
136
  */
125
137
  environment?: pulumi.Input<string>;
138
+ /**
139
+ * The ID of the deployment policy.
140
+ */
141
+ policyId?: pulumi.Input<number>;
126
142
  /**
127
143
  * The repository of the environment.
128
144
  */
129
145
  repository?: pulumi.Input<string>;
146
+ /**
147
+ * The ID of the repository.
148
+ */
149
+ repositoryId?: pulumi.Input<number>;
130
150
  /**
131
151
  * The name pattern that tags must match in order to deploy to the environment. If not specified, `branchPattern` must be specified.
132
152
  */
@@ -70,7 +70,11 @@ const utilities = require("./utilities");
70
70
  *
71
71
  * ## Import
72
72
  *
73
- * This resource can be imported using an ID made of the repository name, environment name (any `:` in the name need to be escaped as `??`), and deployment policy ID all separated by a `:`.
73
+ * This resource can be imported using an ID made of the repository name, environment name (any `:` in the environment name need to be escaped as `??`), and deployment policy ID name all separated by a `:`.
74
+ *
75
+ * ### Import Command
76
+ *
77
+ * The following command imports a deployment policy with the ID `123456` for the repo `myrepo` and environment `myenv` to a `github.RepositoryEnvironmentDeploymentPolicy` resource named `example`.
74
78
  *
75
79
  * ```sh
76
80
  * $ pulumi import github:index/repositoryEnvironmentDeploymentPolicy:RepositoryEnvironmentDeploymentPolicy example myrepo:myenv:123456
@@ -106,7 +110,9 @@ class RepositoryEnvironmentDeploymentPolicy extends pulumi.CustomResource {
106
110
  const state = argsOrState;
107
111
  resourceInputs["branchPattern"] = state?.branchPattern;
108
112
  resourceInputs["environment"] = state?.environment;
113
+ resourceInputs["policyId"] = state?.policyId;
109
114
  resourceInputs["repository"] = state?.repository;
115
+ resourceInputs["repositoryId"] = state?.repositoryId;
110
116
  resourceInputs["tagPattern"] = state?.tagPattern;
111
117
  }
112
118
  else {
@@ -121,6 +127,8 @@ class RepositoryEnvironmentDeploymentPolicy extends pulumi.CustomResource {
121
127
  resourceInputs["environment"] = args?.environment;
122
128
  resourceInputs["repository"] = args?.repository;
123
129
  resourceInputs["tagPattern"] = args?.tagPattern;
130
+ resourceInputs["policyId"] = undefined /*out*/;
131
+ resourceInputs["repositoryId"] = undefined /*out*/;
124
132
  }
125
133
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
126
134
  super(RepositoryEnvironmentDeploymentPolicy.__pulumiType, name, resourceInputs, opts);
@@ -1 +1 @@
1
- {"version":3,"file":"repositoryEnvironmentDeploymentPolicy.js","sourceRoot":"","sources":["../repositoryEnvironmentDeploymentPolicy.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsEG;AACH,MAAa,qCAAsC,SAAQ,MAAM,CAAC,cAAc;IAC5E;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAkD,EAAE,IAAmC;QAChJ,OAAO,IAAI,qCAAqC,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC5F,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,qCAAqC,CAAC,YAA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KAAK,EAAE,UAAU,CAAC;YACjD,cAAc,CAAC,cAAc,CAAC,GAAG,KAAK,EAAE,YAAY,CAAC;YACrD,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,EAAE,UAAU,CAAC;SACpD;aAAM;YACH,MAAM,IAAI,GAAG,WAAoE,CAAC;YAClF,IAAI,IAAI,EAAE,WAAW,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC9C,MAAM,IAAI,KAAK,CAAC,yCAAyC,CAAC,CAAC;aAC9D;YACD,IAAI,IAAI,EAAE,UAAU,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC7C,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAC;aAC7D;YACD,cAAc,CAAC,eAAe,CAAC,GAAG,IAAI,EAAE,aAAa,CAAC;YACtD,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,EAAE,WAAW,CAAC;YAClD,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,UAAU,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC/C,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACtD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,qCAAqC,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC1F,CAAC;;AAzFL,sFA0FC;AA5EG,gBAAgB;AACO,kDAAY,GAAG,0FAA0F,CAAC"}
@@ -0,0 +1,228 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "./types/input";
3
+ import * as outputs from "./types/output";
4
+ /**
5
+ * This resource allows you to manage GitHub Pages for a repository. See the
6
+ * [documentation](https://docs.github.com/en/pages/getting-started-with-github-pages/about-github-pages)
7
+ * for details on GitHub Pages.
8
+ *
9
+ * The authenticated user must be a repository administrator, maintainer, or have the 'manage GitHub Pages settings' permission. OAuth app tokens and personal access tokens (classic) need the repo scope to use this resource.
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * ### Legacy Build Type
14
+ *
15
+ * ```typescript
16
+ * import * as pulumi from "@pulumi/pulumi";
17
+ * import * as github from "@pulumi/github";
18
+ *
19
+ * const example = new github.Repository("example", {
20
+ * name: "my-repo",
21
+ * visibility: "public",
22
+ * autoInit: true,
23
+ * });
24
+ * const exampleRepositoryPages = new github.RepositoryPages("example", {
25
+ * repository: example.name,
26
+ * buildType: "legacy",
27
+ * source: {
28
+ * branch: "main",
29
+ * path: "/",
30
+ * },
31
+ * });
32
+ * ```
33
+ *
34
+ * ### Workflow Build Type (GitHub Actions)
35
+ *
36
+ * ```typescript
37
+ * import * as pulumi from "@pulumi/pulumi";
38
+ * import * as github from "@pulumi/github";
39
+ *
40
+ * const example = new github.Repository("example", {
41
+ * name: "my-repo",
42
+ * visibility: "public",
43
+ * autoInit: true,
44
+ * });
45
+ * const exampleRepositoryPages = new github.RepositoryPages("example", {
46
+ * repository: example.name,
47
+ * buildType: "workflow",
48
+ * });
49
+ * ```
50
+ *
51
+ * ### With Custom Domain
52
+ *
53
+ * ```typescript
54
+ * import * as pulumi from "@pulumi/pulumi";
55
+ * import * as github from "@pulumi/github";
56
+ *
57
+ * const example = new github.Repository("example", {
58
+ * name: "my-repo",
59
+ * visibility: "public",
60
+ * autoInit: true,
61
+ * });
62
+ * const exampleRepositoryPages = new github.RepositoryPages("example", {
63
+ * repository: example.name,
64
+ * buildType: "legacy",
65
+ * cname: "example.com",
66
+ * httpsEnforced: true,
67
+ * source: {
68
+ * branch: "main",
69
+ * path: "/docs",
70
+ * },
71
+ * });
72
+ * ```
73
+ *
74
+ * ## Import
75
+ *
76
+ * GitHub repository pages can be imported using the `repository-slug`, e.g.
77
+ *
78
+ * ```sh
79
+ * $ pulumi import github:index/repositoryPages:RepositoryPages example my-repo
80
+ * ```
81
+ */
82
+ export declare class RepositoryPages extends pulumi.CustomResource {
83
+ /**
84
+ * Get an existing RepositoryPages resource's state with the given name, ID, and optional extra
85
+ * properties used to qualify the lookup.
86
+ *
87
+ * @param name The _unique_ name of the resulting resource.
88
+ * @param id The _unique_ provider ID of the resource to lookup.
89
+ * @param state Any extra arguments used during the lookup.
90
+ * @param opts Optional settings to control the behavior of the CustomResource.
91
+ */
92
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: RepositoryPagesState, opts?: pulumi.CustomResourceOptions): RepositoryPages;
93
+ /**
94
+ * Returns true if the given object is an instance of RepositoryPages. This is designed to work even
95
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
96
+ */
97
+ static isInstance(obj: any): obj is RepositoryPages;
98
+ /**
99
+ * The API URL of the GitHub Pages resource.
100
+ */
101
+ readonly apiUrl: pulumi.Output<string>;
102
+ /**
103
+ * The GitHub Pages site's build status (e.g., `building` or `built`).
104
+ */
105
+ readonly buildStatus: pulumi.Output<string>;
106
+ /**
107
+ * The type of GitHub Pages site to build. Can be `legacy` or `workflow`. Defaults to `legacy`.
108
+ */
109
+ readonly buildType: pulumi.Output<string | undefined>;
110
+ /**
111
+ * The custom domain for the repository.
112
+ */
113
+ readonly cname: pulumi.Output<string | undefined>;
114
+ /**
115
+ * Whether the rendered GitHub Pages site has a custom 404 page.
116
+ */
117
+ readonly custom404: pulumi.Output<boolean>;
118
+ /**
119
+ * The absolute URL (with scheme) to the rendered GitHub Pages site.
120
+ */
121
+ readonly htmlUrl: pulumi.Output<string>;
122
+ /**
123
+ * Whether HTTPS is enforced for the GitHub Pages site. GitHub Pages sites serve over HTTPS by default; this setting only applies when a custom domain (`cname`) is configured. Requires `cname` to be set.
124
+ */
125
+ readonly httpsEnforced: pulumi.Output<boolean>;
126
+ /**
127
+ * Whether the GitHub Pages site is public.
128
+ */
129
+ readonly public: pulumi.Output<boolean>;
130
+ /**
131
+ * The repository name to configure GitHub Pages for.
132
+ */
133
+ readonly repository: pulumi.Output<string>;
134
+ /**
135
+ * The ID of the repository.
136
+ */
137
+ readonly repositoryId: pulumi.Output<number>;
138
+ /**
139
+ * The source branch and directory for the rendered Pages site. Required when `buildType` is `legacy`. See Source below for details.
140
+ */
141
+ readonly source: pulumi.Output<outputs.RepositoryPagesSource | undefined>;
142
+ /**
143
+ * Create a RepositoryPages resource with the given unique name, arguments, and options.
144
+ *
145
+ * @param name The _unique_ name of the resource.
146
+ * @param args The arguments to use to populate this resource's properties.
147
+ * @param opts A bag of options that control this resource's behavior.
148
+ */
149
+ constructor(name: string, args: RepositoryPagesArgs, opts?: pulumi.CustomResourceOptions);
150
+ }
151
+ /**
152
+ * Input properties used for looking up and filtering RepositoryPages resources.
153
+ */
154
+ export interface RepositoryPagesState {
155
+ /**
156
+ * The API URL of the GitHub Pages resource.
157
+ */
158
+ apiUrl?: pulumi.Input<string>;
159
+ /**
160
+ * The GitHub Pages site's build status (e.g., `building` or `built`).
161
+ */
162
+ buildStatus?: pulumi.Input<string>;
163
+ /**
164
+ * The type of GitHub Pages site to build. Can be `legacy` or `workflow`. Defaults to `legacy`.
165
+ */
166
+ buildType?: pulumi.Input<string>;
167
+ /**
168
+ * The custom domain for the repository.
169
+ */
170
+ cname?: pulumi.Input<string>;
171
+ /**
172
+ * Whether the rendered GitHub Pages site has a custom 404 page.
173
+ */
174
+ custom404?: pulumi.Input<boolean>;
175
+ /**
176
+ * The absolute URL (with scheme) to the rendered GitHub Pages site.
177
+ */
178
+ htmlUrl?: pulumi.Input<string>;
179
+ /**
180
+ * Whether HTTPS is enforced for the GitHub Pages site. GitHub Pages sites serve over HTTPS by default; this setting only applies when a custom domain (`cname`) is configured. Requires `cname` to be set.
181
+ */
182
+ httpsEnforced?: pulumi.Input<boolean>;
183
+ /**
184
+ * Whether the GitHub Pages site is public.
185
+ */
186
+ public?: pulumi.Input<boolean>;
187
+ /**
188
+ * The repository name to configure GitHub Pages for.
189
+ */
190
+ repository?: pulumi.Input<string>;
191
+ /**
192
+ * The ID of the repository.
193
+ */
194
+ repositoryId?: pulumi.Input<number>;
195
+ /**
196
+ * The source branch and directory for the rendered Pages site. Required when `buildType` is `legacy`. See Source below for details.
197
+ */
198
+ source?: pulumi.Input<inputs.RepositoryPagesSource>;
199
+ }
200
+ /**
201
+ * The set of arguments for constructing a RepositoryPages resource.
202
+ */
203
+ export interface RepositoryPagesArgs {
204
+ /**
205
+ * The type of GitHub Pages site to build. Can be `legacy` or `workflow`. Defaults to `legacy`.
206
+ */
207
+ buildType?: pulumi.Input<string>;
208
+ /**
209
+ * The custom domain for the repository.
210
+ */
211
+ cname?: pulumi.Input<string>;
212
+ /**
213
+ * Whether HTTPS is enforced for the GitHub Pages site. GitHub Pages sites serve over HTTPS by default; this setting only applies when a custom domain (`cname`) is configured. Requires `cname` to be set.
214
+ */
215
+ httpsEnforced?: pulumi.Input<boolean>;
216
+ /**
217
+ * Whether the GitHub Pages site is public.
218
+ */
219
+ public?: pulumi.Input<boolean>;
220
+ /**
221
+ * The repository name to configure GitHub Pages for.
222
+ */
223
+ repository: pulumi.Input<string>;
224
+ /**
225
+ * The source branch and directory for the rendered Pages site. Required when `buildType` is `legacy`. See Source below for details.
226
+ */
227
+ source?: pulumi.Input<inputs.RepositoryPagesSource>;
228
+ }
@@ -0,0 +1,150 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.RepositoryPages = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * This resource allows you to manage GitHub Pages for a repository. See the
10
+ * [documentation](https://docs.github.com/en/pages/getting-started-with-github-pages/about-github-pages)
11
+ * for details on GitHub Pages.
12
+ *
13
+ * The authenticated user must be a repository administrator, maintainer, or have the 'manage GitHub Pages settings' permission. OAuth app tokens and personal access tokens (classic) need the repo scope to use this resource.
14
+ *
15
+ * ## Example Usage
16
+ *
17
+ * ### Legacy Build Type
18
+ *
19
+ * ```typescript
20
+ * import * as pulumi from "@pulumi/pulumi";
21
+ * import * as github from "@pulumi/github";
22
+ *
23
+ * const example = new github.Repository("example", {
24
+ * name: "my-repo",
25
+ * visibility: "public",
26
+ * autoInit: true,
27
+ * });
28
+ * const exampleRepositoryPages = new github.RepositoryPages("example", {
29
+ * repository: example.name,
30
+ * buildType: "legacy",
31
+ * source: {
32
+ * branch: "main",
33
+ * path: "/",
34
+ * },
35
+ * });
36
+ * ```
37
+ *
38
+ * ### Workflow Build Type (GitHub Actions)
39
+ *
40
+ * ```typescript
41
+ * import * as pulumi from "@pulumi/pulumi";
42
+ * import * as github from "@pulumi/github";
43
+ *
44
+ * const example = new github.Repository("example", {
45
+ * name: "my-repo",
46
+ * visibility: "public",
47
+ * autoInit: true,
48
+ * });
49
+ * const exampleRepositoryPages = new github.RepositoryPages("example", {
50
+ * repository: example.name,
51
+ * buildType: "workflow",
52
+ * });
53
+ * ```
54
+ *
55
+ * ### With Custom Domain
56
+ *
57
+ * ```typescript
58
+ * import * as pulumi from "@pulumi/pulumi";
59
+ * import * as github from "@pulumi/github";
60
+ *
61
+ * const example = new github.Repository("example", {
62
+ * name: "my-repo",
63
+ * visibility: "public",
64
+ * autoInit: true,
65
+ * });
66
+ * const exampleRepositoryPages = new github.RepositoryPages("example", {
67
+ * repository: example.name,
68
+ * buildType: "legacy",
69
+ * cname: "example.com",
70
+ * httpsEnforced: true,
71
+ * source: {
72
+ * branch: "main",
73
+ * path: "/docs",
74
+ * },
75
+ * });
76
+ * ```
77
+ *
78
+ * ## Import
79
+ *
80
+ * GitHub repository pages can be imported using the `repository-slug`, e.g.
81
+ *
82
+ * ```sh
83
+ * $ pulumi import github:index/repositoryPages:RepositoryPages example my-repo
84
+ * ```
85
+ */
86
+ class RepositoryPages extends pulumi.CustomResource {
87
+ /**
88
+ * Get an existing RepositoryPages resource's state with the given name, ID, and optional extra
89
+ * properties used to qualify the lookup.
90
+ *
91
+ * @param name The _unique_ name of the resulting resource.
92
+ * @param id The _unique_ provider ID of the resource to lookup.
93
+ * @param state Any extra arguments used during the lookup.
94
+ * @param opts Optional settings to control the behavior of the CustomResource.
95
+ */
96
+ static get(name, id, state, opts) {
97
+ return new RepositoryPages(name, state, { ...opts, id: id });
98
+ }
99
+ /**
100
+ * Returns true if the given object is an instance of RepositoryPages. This is designed to work even
101
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
102
+ */
103
+ static isInstance(obj) {
104
+ if (obj === undefined || obj === null) {
105
+ return false;
106
+ }
107
+ return obj['__pulumiType'] === RepositoryPages.__pulumiType;
108
+ }
109
+ constructor(name, argsOrState, opts) {
110
+ let resourceInputs = {};
111
+ opts = opts || {};
112
+ if (opts.id) {
113
+ const state = argsOrState;
114
+ resourceInputs["apiUrl"] = state?.apiUrl;
115
+ resourceInputs["buildStatus"] = state?.buildStatus;
116
+ resourceInputs["buildType"] = state?.buildType;
117
+ resourceInputs["cname"] = state?.cname;
118
+ resourceInputs["custom404"] = state?.custom404;
119
+ resourceInputs["htmlUrl"] = state?.htmlUrl;
120
+ resourceInputs["httpsEnforced"] = state?.httpsEnforced;
121
+ resourceInputs["public"] = state?.public;
122
+ resourceInputs["repository"] = state?.repository;
123
+ resourceInputs["repositoryId"] = state?.repositoryId;
124
+ resourceInputs["source"] = state?.source;
125
+ }
126
+ else {
127
+ const args = argsOrState;
128
+ if (args?.repository === undefined && !opts.urn) {
129
+ throw new Error("Missing required property 'repository'");
130
+ }
131
+ resourceInputs["buildType"] = args?.buildType;
132
+ resourceInputs["cname"] = args?.cname;
133
+ resourceInputs["httpsEnforced"] = args?.httpsEnforced;
134
+ resourceInputs["public"] = args?.public;
135
+ resourceInputs["repository"] = args?.repository;
136
+ resourceInputs["source"] = args?.source;
137
+ resourceInputs["apiUrl"] = undefined /*out*/;
138
+ resourceInputs["buildStatus"] = undefined /*out*/;
139
+ resourceInputs["custom404"] = undefined /*out*/;
140
+ resourceInputs["htmlUrl"] = undefined /*out*/;
141
+ resourceInputs["repositoryId"] = undefined /*out*/;
142
+ }
143
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
144
+ super(RepositoryPages.__pulumiType, name, resourceInputs, opts);
145
+ }
146
+ }
147
+ exports.RepositoryPages = RepositoryPages;
148
+ /** @internal */
149
+ RepositoryPages.__pulumiType = 'github:index/repositoryPages:RepositoryPages';
150
+ //# sourceMappingURL=repositoryPages.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"repositoryPages.js","sourceRoot":"","sources":["../repositoryPages.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6EG;AACH,MAAa,eAAgB,SAAQ,MAAM,CAAC,cAAc;IACtD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA4B,EAAE,IAAmC;QAC1H,OAAO,IAAI,eAAe,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACtE,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,eAAe,CAAC,YAAY,CAAC;IAChE,CAAC;IAuDD,YAAY,IAAY,EAAE,WAAwD,EAAE,IAAmC;QACnH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,C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CAAC;YAChD,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;YACxC,cAAc,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC7C,cAAc,CAAC,aAAa,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAClD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC9C,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACtD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,eAAe,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACpE,CAAC;;AApHL,0CAqHC;AAvGG,gBAAgB;AACO,4BAAY,GAAG,8CAA8C,CAAC"}
@@ -0,0 +1,98 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * This resource allows you to manage vulnerability alerts for a GitHub repository. See the
4
+ * [documentation](https://docs.github.com/en/code-security/dependabot/dependabot-alerts/about-dependabot-alerts)
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 example = new github.Repository("example", {
14
+ * name: "my-repo",
15
+ * description: "GitHub repo managed by Terraform",
16
+ * visibility: "private",
17
+ * });
18
+ * const exampleRepositoryVulnerabilityAlerts = new github.RepositoryVulnerabilityAlerts("example", {
19
+ * repository: example.name,
20
+ * enabled: true,
21
+ * });
22
+ * ```
23
+ *
24
+ * ## Import
25
+ *
26
+ * Repository vulnerability alerts can be imported using the `repositoryName`:
27
+ *
28
+ * ```sh
29
+ * $ pulumi import github:index/repositoryVulnerabilityAlerts:RepositoryVulnerabilityAlerts example my-repo
30
+ * ```
31
+ */
32
+ export declare class RepositoryVulnerabilityAlerts extends pulumi.CustomResource {
33
+ /**
34
+ * Get an existing RepositoryVulnerabilityAlerts resource's state with the given name, ID, and optional extra
35
+ * properties used to qualify the lookup.
36
+ *
37
+ * @param name The _unique_ name of the resulting resource.
38
+ * @param id The _unique_ provider ID of the resource to lookup.
39
+ * @param state Any extra arguments used during the lookup.
40
+ * @param opts Optional settings to control the behavior of the CustomResource.
41
+ */
42
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: RepositoryVulnerabilityAlertsState, opts?: pulumi.CustomResourceOptions): RepositoryVulnerabilityAlerts;
43
+ /**
44
+ * Returns true if the given object is an instance of RepositoryVulnerabilityAlerts. This is designed to work even
45
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
46
+ */
47
+ static isInstance(obj: any): obj is RepositoryVulnerabilityAlerts;
48
+ /**
49
+ * Whether vulnerability alerts are enabled for the repository. Defaults to `true`.
50
+ */
51
+ readonly enabled: pulumi.Output<boolean | undefined>;
52
+ /**
53
+ * The name of the repository to configure vulnerability alerts for.
54
+ */
55
+ readonly repository: pulumi.Output<string>;
56
+ /**
57
+ * The ID of the repository.
58
+ */
59
+ readonly repositoryId: pulumi.Output<number>;
60
+ /**
61
+ * Create a RepositoryVulnerabilityAlerts resource with the given unique name, arguments, and options.
62
+ *
63
+ * @param name The _unique_ name of the resource.
64
+ * @param args The arguments to use to populate this resource's properties.
65
+ * @param opts A bag of options that control this resource's behavior.
66
+ */
67
+ constructor(name: string, args: RepositoryVulnerabilityAlertsArgs, opts?: pulumi.CustomResourceOptions);
68
+ }
69
+ /**
70
+ * Input properties used for looking up and filtering RepositoryVulnerabilityAlerts resources.
71
+ */
72
+ export interface RepositoryVulnerabilityAlertsState {
73
+ /**
74
+ * Whether vulnerability alerts are enabled for the repository. Defaults to `true`.
75
+ */
76
+ enabled?: pulumi.Input<boolean>;
77
+ /**
78
+ * The name of the repository to configure vulnerability alerts for.
79
+ */
80
+ repository?: pulumi.Input<string>;
81
+ /**
82
+ * The ID of the repository.
83
+ */
84
+ repositoryId?: pulumi.Input<number>;
85
+ }
86
+ /**
87
+ * The set of arguments for constructing a RepositoryVulnerabilityAlerts resource.
88
+ */
89
+ export interface RepositoryVulnerabilityAlertsArgs {
90
+ /**
91
+ * Whether vulnerability alerts are enabled for the repository. Defaults to `true`.
92
+ */
93
+ enabled?: pulumi.Input<boolean>;
94
+ /**
95
+ * The name of the repository to configure vulnerability alerts for.
96
+ */
97
+ repository: pulumi.Input<string>;
98
+ }