@pulumi/github 6.10.0-alpha.1766036987 → 6.10.0-alpha.1766201671

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 (48) hide show
  1. package/actionsHostedRunner.d.ts +250 -0
  2. package/actionsHostedRunner.js +158 -0
  3. package/actionsHostedRunner.js.map +1 -0
  4. package/enterpriseActionsWorkflowPermissions.d.ts +113 -0
  5. package/enterpriseActionsWorkflowPermissions.js +97 -0
  6. package/enterpriseActionsWorkflowPermissions.js.map +1 -0
  7. package/enterpriseSecurityAnalysisSettings.d.ts +162 -0
  8. package/enterpriseSecurityAnalysisSettings.js +116 -0
  9. package/enterpriseSecurityAnalysisSettings.js.map +1 -0
  10. package/getOrganizationCustomProperties.d.ts +12 -0
  11. package/getOrganizationCustomProperties.js +2 -0
  12. package/getOrganizationCustomProperties.js.map +1 -1
  13. package/getOrganizationSecurityManagers.d.ts +4 -0
  14. package/getOrganizationSecurityManagers.js +4 -0
  15. package/getOrganizationSecurityManagers.js.map +1 -1
  16. package/getRepositoryDeploymentBranchPolicies.d.ts +4 -0
  17. package/getRepositoryDeploymentBranchPolicies.js +4 -0
  18. package/getRepositoryDeploymentBranchPolicies.js.map +1 -1
  19. package/getRepositoryEnvironmentDeploymentPolicies.d.ts +75 -0
  20. package/getRepositoryEnvironmentDeploymentPolicies.js +54 -0
  21. package/getRepositoryEnvironmentDeploymentPolicies.js.map +1 -0
  22. package/index.d.ts +12 -0
  23. package/index.js +23 -5
  24. package/index.js.map +1 -1
  25. package/organizationCustomProperties.d.ts +29 -0
  26. package/organizationCustomProperties.js +19 -0
  27. package/organizationCustomProperties.js.map +1 -1
  28. package/organizationRole.d.ts +7 -7
  29. package/organizationRoleTeamAssignment.d.ts +4 -0
  30. package/organizationRoleTeamAssignment.js +4 -0
  31. package/organizationRoleTeamAssignment.js.map +1 -1
  32. package/organizationRuleset.d.ts +8 -1
  33. package/organizationRuleset.js +8 -1
  34. package/organizationRuleset.js.map +1 -1
  35. package/organizationSecurityManager.d.ts +4 -0
  36. package/organizationSecurityManager.js +4 -0
  37. package/organizationSecurityManager.js.map +1 -1
  38. package/package.json +2 -2
  39. package/repository.d.ts +6 -6
  40. package/repository.js +1 -1
  41. package/repositoryDeploymentBranchPolicy.d.ts +4 -0
  42. package/repositoryDeploymentBranchPolicy.js +4 -0
  43. package/repositoryDeploymentBranchPolicy.js.map +1 -1
  44. package/repositoryRuleset.d.ts +13 -6
  45. package/repositoryRuleset.js +11 -1
  46. package/repositoryRuleset.js.map +1 -1
  47. package/types/input.d.ts +80 -4
  48. package/types/output.d.ts +90 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulumi/github",
3
- "version": "6.10.0-alpha.1766036987",
3
+ "version": "6.10.0-alpha.1766201671",
4
4
  "description": "A Pulumi package for creating and managing github cloud resources.",
5
5
  "keywords": [
6
6
  "pulumi",
@@ -23,6 +23,6 @@
23
23
  "pulumi": {
24
24
  "resource": true,
25
25
  "name": "github",
26
- "version": "6.10.0-alpha.1766036987"
26
+ "version": "6.10.0-alpha.1766201671"
27
27
  }
28
28
  }
package/repository.d.ts CHANGED
@@ -53,7 +53,7 @@ import * as outputs from "./types/output";
53
53
  * const forkedRepo = new github.Repository("forked_repo", {
54
54
  * name: "forked-repository",
55
55
  * description: "This is a fork of another repository",
56
- * fork: true,
56
+ * fork: "true",
57
57
  * sourceOwner: "some-org",
58
58
  * sourceRepo: "original-repository",
59
59
  * });
@@ -135,7 +135,7 @@ export declare class Repository extends pulumi.CustomResource {
135
135
  /**
136
136
  * Set to `true` to create a fork of an existing repository. When set to `true`, both `sourceOwner` and `sourceRepo` must also be specified.
137
137
  */
138
- readonly fork: pulumi.Output<boolean | undefined>;
138
+ readonly fork: pulumi.Output<string>;
139
139
  /**
140
140
  * A string of the form "orgname/reponame".
141
141
  */
@@ -236,11 +236,11 @@ export declare class Repository extends pulumi.CustomResource {
236
236
  /**
237
237
  * The GitHub username or organization that owns the repository being forked. Required when `fork` is `true`.
238
238
  */
239
- readonly sourceOwner: pulumi.Output<string | undefined>;
239
+ readonly sourceOwner: pulumi.Output<string>;
240
240
  /**
241
241
  * The name of the repository to fork. Required when `fork` is `true`.
242
242
  */
243
- readonly sourceRepo: pulumi.Output<string | undefined>;
243
+ readonly sourceRepo: pulumi.Output<string>;
244
244
  /**
245
245
  * Can be `PR_BODY`, `COMMIT_MESSAGES`, or `BLANK` for a default squash merge commit message. Applicable only if `allowSquashMerge` is `true`.
246
246
  */
@@ -342,7 +342,7 @@ export interface RepositoryState {
342
342
  /**
343
343
  * Set to `true` to create a fork of an existing repository. When set to `true`, both `sourceOwner` and `sourceRepo` must also be specified.
344
344
  */
345
- fork?: pulumi.Input<boolean>;
345
+ fork?: pulumi.Input<string>;
346
346
  /**
347
347
  * A string of the form "orgname/reponame".
348
348
  */
@@ -541,7 +541,7 @@ export interface RepositoryArgs {
541
541
  /**
542
542
  * Set to `true` to create a fork of an existing repository. When set to `true`, both `sourceOwner` and `sourceRepo` must also be specified.
543
543
  */
544
- fork?: pulumi.Input<boolean>;
544
+ fork?: pulumi.Input<string>;
545
545
  /**
546
546
  * Use the [name of the template](https://github.com/github/gitignore) without the extension. For example, "Haskell".
547
547
  */
package/repository.js CHANGED
@@ -57,7 +57,7 @@ const utilities = require("./utilities");
57
57
  * const forkedRepo = new github.Repository("forked_repo", {
58
58
  * name: "forked-repository",
59
59
  * description: "This is a fork of another repository",
60
- * fork: true,
60
+ * fork: "true",
61
61
  * sourceOwner: "some-org",
62
62
  * sourceRepo: "original-repository",
63
63
  * });
@@ -1,5 +1,7 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  /**
3
+ * > **Note:** This resource is deprecated, please use the `github.RepositoryEnvironmentDeploymentPolicy` resource instead.
4
+ *
3
5
  * This resource allows you to create and manage deployment branch policies.
4
6
  *
5
7
  * ## Example Usage
@@ -27,6 +29,8 @@ import * as pulumi from "@pulumi/pulumi";
27
29
  *
28
30
  * ## Import
29
31
  *
32
+ * text
33
+ *
30
34
  * ```sh
31
35
  * $ pulumi import github:index/repositoryDeploymentBranchPolicy:RepositoryDeploymentBranchPolicy foo repo:env:id
32
36
  * ```
@@ -6,6 +6,8 @@ exports.RepositoryDeploymentBranchPolicy = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
8
  /**
9
+ * > **Note:** This resource is deprecated, please use the `github.RepositoryEnvironmentDeploymentPolicy` resource instead.
10
+ *
9
11
  * This resource allows you to create and manage deployment branch policies.
10
12
  *
11
13
  * ## Example Usage
@@ -33,6 +35,8 @@ const utilities = require("./utilities");
33
35
  *
34
36
  * ## Import
35
37
  *
38
+ * text
39
+ *
36
40
  * ```sh
37
41
  * $ pulumi import github:index/repositoryDeploymentBranchPolicy:RepositoryDeploymentBranchPolicy foo repo:env:id
38
42
  * ```
@@ -1 +1 @@
1
- {"version":3,"file":"repositoryDeploymentBranchPolicy.js","sourceRoot":"","sources":["../repositoryDeploymentBranchPolicy.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,MAAa,gCAAiC,SAAQ,MAAM,CAAC,cAAc;IACvE;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA6C,EAAE,IAAmC;QAC3I,OAAO,IAAI,gCAAgC,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACvF,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,gCAAgC,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H,MAAM,IAAI,GAAG,WAA+D,CAAC;YAC7E,IAAI,IAAI,EAAE,eAAe,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAClD,MAAM,IAAI,KAAK,CAAC,6CAA6C,CAAC,CAAC;aAClE;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,iBAAiB,CAAC,GAAG,IAAI,EAAE,eAAe,CAAC;YAC1D,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;SACnD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,gCAAgC,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACrF,CAAC;;AA7EL,4EA8EC;AAhEG,gBAAgB;AACO,6CAAY,GAAG,gFAAgF,CAAC"}
@@ -41,6 +41,13 @@ import * as outputs from "./types/output";
41
41
  * requiredDeployments: {
42
42
  * requiredDeploymentEnvironments: ["test"],
43
43
  * },
44
+ * requiredCodeScanning: {
45
+ * requiredCodeScanningTools: [{
46
+ * alertsThreshold: "errors",
47
+ * securityAlertsThreshold: "high_or_higher",
48
+ * tool: "CodeQL",
49
+ * }],
50
+ * },
44
51
  * },
45
52
  * });
46
53
  * // Example with push ruleset
@@ -57,7 +64,7 @@ import * as outputs from "./types/output";
57
64
  * ],
58
65
  * },
59
66
  * maxFileSize: {
60
- * maxFileSize: 104857600,
67
+ * maxFileSize: 100,
61
68
  * },
62
69
  * maxFilePathLength: {
63
70
  * maxFilePathLength: 255,
@@ -122,9 +129,9 @@ export declare class RepositoryRuleset extends pulumi.CustomResource {
122
129
  */
123
130
  readonly nodeId: pulumi.Output<string>;
124
131
  /**
125
- * (String) Name of the repository to apply rulset to.
132
+ * (String) Name of the repository to apply ruleset to.
126
133
  */
127
- readonly repository: pulumi.Output<string | undefined>;
134
+ readonly repository: pulumi.Output<string>;
128
135
  /**
129
136
  * (Block List, Min: 1, Max: 1) Rules within the ruleset. (see below for nested schema)
130
137
  */
@@ -175,7 +182,7 @@ export interface RepositoryRulesetState {
175
182
  */
176
183
  nodeId?: pulumi.Input<string>;
177
184
  /**
178
- * (String) Name of the repository to apply rulset to.
185
+ * (String) Name of the repository to apply ruleset to.
179
186
  */
180
187
  repository?: pulumi.Input<string>;
181
188
  /**
@@ -212,9 +219,9 @@ export interface RepositoryRulesetArgs {
212
219
  */
213
220
  name?: pulumi.Input<string>;
214
221
  /**
215
- * (String) Name of the repository to apply rulset to.
222
+ * (String) Name of the repository to apply ruleset to.
216
223
  */
217
- repository?: pulumi.Input<string>;
224
+ repository: pulumi.Input<string>;
218
225
  /**
219
226
  * (Block List, Min: 1, Max: 1) Rules within the ruleset. (see below for nested schema)
220
227
  */
@@ -45,6 +45,13 @@ const utilities = require("./utilities");
45
45
  * requiredDeployments: {
46
46
  * requiredDeploymentEnvironments: ["test"],
47
47
  * },
48
+ * requiredCodeScanning: {
49
+ * requiredCodeScanningTools: [{
50
+ * alertsThreshold: "errors",
51
+ * securityAlertsThreshold: "high_or_higher",
52
+ * tool: "CodeQL",
53
+ * }],
54
+ * },
48
55
  * },
49
56
  * });
50
57
  * // Example with push ruleset
@@ -61,7 +68,7 @@ const utilities = require("./utilities");
61
68
  * ],
62
69
  * },
63
70
  * maxFileSize: {
64
- * maxFileSize: 104857600,
71
+ * maxFileSize: 100,
65
72
  * },
66
73
  * maxFilePathLength: {
67
74
  * maxFilePathLength: 255,
@@ -129,6 +136,9 @@ class RepositoryRuleset extends pulumi.CustomResource {
129
136
  if (args?.enforcement === undefined && !opts.urn) {
130
137
  throw new Error("Missing required property 'enforcement'");
131
138
  }
139
+ if (args?.repository === undefined && !opts.urn) {
140
+ throw new Error("Missing required property 'repository'");
141
+ }
132
142
  if (args?.rules === undefined && !opts.urn) {
133
143
  throw new Error("Missing required property 'rules'");
134
144
  }
@@ -1 +1 @@
1
- {"version":3,"file":"repositoryRuleset.js","sourceRoot":"","sources":["../repositoryRuleset.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+EG;AACH,MAAa,iBAAkB,SAAQ,MAAM,CAAC,cAAc;IACxD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA8B,EAAE,IAAmC;QAC5H,OAAO,IAAI,iBAAiB,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACxE,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,iBAAiB,CAAC,YAAY,CAAC;IAClE,CAAC;IAmDD,YAAY,IAAY,EAAE,WAA4D,EAAE,IAAmC;QACvH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAiD,CAAC;YAChE,cAAc,CAAC,cAAc,CAAC,GAAG,KAAK,EAAE,YAAY,CAAC;YACrD,cAAc,CAAC,YA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umi";
2
2
  import * as inputs from "../types/input";
3
+ export interface ActionsHostedRunnerImage {
4
+ /**
5
+ * The image ID. For GitHub-owned images, use numeric IDs like "2306" for Ubuntu Latest 24.04. To get available images, use the GitHub API: `GET /orgs/{org}/actions/hosted-runners/images/github-owned`.
6
+ */
7
+ id: pulumi.Input<string>;
8
+ /**
9
+ * The size of the image in gigabytes.
10
+ */
11
+ sizeGb?: pulumi.Input<number>;
12
+ /**
13
+ * The image source. Valid values are "github", "partner", or "custom". Defaults to "github".
14
+ */
15
+ source?: pulumi.Input<string>;
16
+ }
17
+ export interface ActionsHostedRunnerMachineSizeDetail {
18
+ /**
19
+ * Number of CPU cores.
20
+ */
21
+ cpuCores?: pulumi.Input<number>;
22
+ /**
23
+ * Machine size identifier.
24
+ */
25
+ id?: pulumi.Input<string>;
26
+ /**
27
+ * Amount of memory in gigabytes.
28
+ */
29
+ memoryGb?: pulumi.Input<number>;
30
+ /**
31
+ * Amount of storage in gigabytes.
32
+ */
33
+ storageGb?: pulumi.Input<number>;
34
+ }
35
+ export interface ActionsHostedRunnerPublicIp {
36
+ /**
37
+ * Whether this IP range is enabled.
38
+ */
39
+ enabled?: pulumi.Input<boolean>;
40
+ /**
41
+ * Subnet length.
42
+ */
43
+ length?: pulumi.Input<number>;
44
+ /**
45
+ * IP address prefix.
46
+ */
47
+ prefix?: pulumi.Input<string>;
48
+ }
3
49
  export interface ActionsOrganizationPermissionsAllowedActionsConfig {
4
50
  /**
5
51
  * Whether GitHub-owned actions are allowed in the organization.
@@ -320,7 +366,7 @@ export interface OrganizationRulesetRules {
320
366
  */
321
367
  maxFilePathLength?: pulumi.Input<inputs.OrganizationRulesetRulesMaxFilePathLength>;
322
368
  /**
323
- * (Integer) The maximum allowed size, in bytes, of a file.
369
+ * (Integer) The maximum allowed size, in megabytes (MB), of a file. Valid range is 1-100 MB.
324
370
  */
325
371
  maxFileSize?: pulumi.Input<inputs.OrganizationRulesetRulesMaxFileSize>;
326
372
  /**
@@ -452,7 +498,7 @@ export interface OrganizationRulesetRulesMaxFilePathLength {
452
498
  }
453
499
  export interface OrganizationRulesetRulesMaxFileSize {
454
500
  /**
455
- * The maximum allowed size of a file in bytes.
501
+ * The maximum allowed size of a file in megabytes (MB). Valid range is 1-100 MB.
456
502
  */
457
503
  maxFileSize: pulumi.Input<number>;
458
504
  }
@@ -756,7 +802,7 @@ export interface RepositoryRulesetRules {
756
802
  */
757
803
  maxFilePathLength?: pulumi.Input<inputs.RepositoryRulesetRulesMaxFilePathLength>;
758
804
  /**
759
- * (Integer) The maximum allowed size, in bytes, of a file.
805
+ * (Integer) The maximum allowed size, in megabytes (MB), of a file. Valid range is 1-100 MB.
760
806
  */
761
807
  maxFileSize?: pulumi.Input<inputs.RepositoryRulesetRulesMaxFileSize>;
762
808
  /**
@@ -896,7 +942,7 @@ export interface RepositoryRulesetRulesMaxFilePathLength {
896
942
  }
897
943
  export interface RepositoryRulesetRulesMaxFileSize {
898
944
  /**
899
- * The maximum allowed size of a file in bytes.
945
+ * The maximum allowed size of a file in megabytes (MB). Valid range is 1-100 MB.
900
946
  */
901
947
  maxFileSize: pulumi.Input<number>;
902
948
  }
@@ -1025,10 +1071,22 @@ export interface RepositorySecurityAndAnalysis {
1025
1071
  * The advanced security configuration for the repository. See Advanced Security Configuration below for details. If a repository's visibility is `public`, advanced security is always enabled and cannot be changed, so this setting cannot be supplied.
1026
1072
  */
1027
1073
  advancedSecurity?: pulumi.Input<inputs.RepositorySecurityAndAnalysisAdvancedSecurity>;
1074
+ /**
1075
+ * The code security configuration for the repository. See Code Security below for details.
1076
+ */
1077
+ codeSecurity?: pulumi.Input<inputs.RepositorySecurityAndAnalysisCodeSecurity>;
1028
1078
  /**
1029
1079
  * The secret scanning configuration for the repository. See Secret Scanning Configuration below for details.
1030
1080
  */
1031
1081
  secretScanning?: pulumi.Input<inputs.RepositorySecurityAndAnalysisSecretScanning>;
1082
+ /**
1083
+ * The secret scanning ai detection configuration for the repository. See Secret Scanning AI Detection Configuration below for details.
1084
+ */
1085
+ secretScanningAiDetection?: pulumi.Input<inputs.RepositorySecurityAndAnalysisSecretScanningAiDetection>;
1086
+ /**
1087
+ * The secret scanning non-provider patterns configuration for this repository. See Secret Scanning Non-Provider Patterns Configuration below for more details.
1088
+ */
1089
+ secretScanningNonProviderPatterns?: pulumi.Input<inputs.RepositorySecurityAndAnalysisSecretScanningNonProviderPatterns>;
1032
1090
  /**
1033
1091
  * The secret scanning push protection configuration for the repository. See Secret Scanning Push Protection Configuration below for details.
1034
1092
  */
@@ -1040,12 +1098,30 @@ export interface RepositorySecurityAndAnalysisAdvancedSecurity {
1040
1098
  */
1041
1099
  status: pulumi.Input<string>;
1042
1100
  }
1101
+ export interface RepositorySecurityAndAnalysisCodeSecurity {
1102
+ /**
1103
+ * The GitHub Pages site's build status e.g. `building` or `built`.
1104
+ */
1105
+ status: pulumi.Input<string>;
1106
+ }
1043
1107
  export interface RepositorySecurityAndAnalysisSecretScanning {
1044
1108
  /**
1045
1109
  * The GitHub Pages site's build status e.g. `building` or `built`.
1046
1110
  */
1047
1111
  status: pulumi.Input<string>;
1048
1112
  }
1113
+ export interface RepositorySecurityAndAnalysisSecretScanningAiDetection {
1114
+ /**
1115
+ * The GitHub Pages site's build status e.g. `building` or `built`.
1116
+ */
1117
+ status: pulumi.Input<string>;
1118
+ }
1119
+ export interface RepositorySecurityAndAnalysisSecretScanningNonProviderPatterns {
1120
+ /**
1121
+ * The GitHub Pages site's build status e.g. `building` or `built`.
1122
+ */
1123
+ status: pulumi.Input<string>;
1124
+ }
1049
1125
  export interface RepositorySecurityAndAnalysisSecretScanningPushProtection {
1050
1126
  /**
1051
1127
  * The GitHub Pages site's build status e.g. `building` or `built`.
package/types/output.d.ts CHANGED
@@ -1,4 +1,50 @@
1
1
  import * as outputs from "../types/output";
2
+ export interface ActionsHostedRunnerImage {
3
+ /**
4
+ * The image ID. For GitHub-owned images, use numeric IDs like "2306" for Ubuntu Latest 24.04. To get available images, use the GitHub API: `GET /orgs/{org}/actions/hosted-runners/images/github-owned`.
5
+ */
6
+ id: string;
7
+ /**
8
+ * The size of the image in gigabytes.
9
+ */
10
+ sizeGb: number;
11
+ /**
12
+ * The image source. Valid values are "github", "partner", or "custom". Defaults to "github".
13
+ */
14
+ source?: string;
15
+ }
16
+ export interface ActionsHostedRunnerMachineSizeDetail {
17
+ /**
18
+ * Number of CPU cores.
19
+ */
20
+ cpuCores: number;
21
+ /**
22
+ * Machine size identifier.
23
+ */
24
+ id: string;
25
+ /**
26
+ * Amount of memory in gigabytes.
27
+ */
28
+ memoryGb: number;
29
+ /**
30
+ * Amount of storage in gigabytes.
31
+ */
32
+ storageGb: number;
33
+ }
34
+ export interface ActionsHostedRunnerPublicIp {
35
+ /**
36
+ * Whether this IP range is enabled.
37
+ */
38
+ enabled: boolean;
39
+ /**
40
+ * Subnet length.
41
+ */
42
+ length: number;
43
+ /**
44
+ * IP address prefix.
45
+ */
46
+ prefix: string;
47
+ }
2
48
  export interface ActionsOrganizationPermissionsAllowedActionsConfig {
3
49
  /**
4
50
  * Whether GitHub-owned actions are allowed in the organization.
@@ -824,6 +870,16 @@ export interface GetRepositoryDeploymentBranchPoliciesDeploymentBranchPolicy {
824
870
  */
825
871
  name: string;
826
872
  }
873
+ export interface GetRepositoryEnvironmentDeploymentPoliciesPolicy {
874
+ /**
875
+ * The pattern that branch or tag names must match in order to deploy to the environment.
876
+ */
877
+ pattern: string;
878
+ /**
879
+ * Type of the policy; this could be `branch` or `tag`.
880
+ */
881
+ type: string;
882
+ }
827
883
  export interface GetRepositoryEnvironmentsEnvironment {
828
884
  /**
829
885
  * Environment name.
@@ -1189,7 +1245,7 @@ export interface OrganizationRulesetRules {
1189
1245
  */
1190
1246
  maxFilePathLength?: outputs.OrganizationRulesetRulesMaxFilePathLength;
1191
1247
  /**
1192
- * (Integer) The maximum allowed size, in bytes, of a file.
1248
+ * (Integer) The maximum allowed size, in megabytes (MB), of a file. Valid range is 1-100 MB.
1193
1249
  */
1194
1250
  maxFileSize?: outputs.OrganizationRulesetRulesMaxFileSize;
1195
1251
  /**
@@ -1321,7 +1377,7 @@ export interface OrganizationRulesetRulesMaxFilePathLength {
1321
1377
  }
1322
1378
  export interface OrganizationRulesetRulesMaxFileSize {
1323
1379
  /**
1324
- * The maximum allowed size of a file in bytes.
1380
+ * The maximum allowed size of a file in megabytes (MB). Valid range is 1-100 MB.
1325
1381
  */
1326
1382
  maxFileSize: number;
1327
1383
  }
@@ -1611,7 +1667,7 @@ export interface RepositoryRulesetRules {
1611
1667
  */
1612
1668
  maxFilePathLength?: outputs.RepositoryRulesetRulesMaxFilePathLength;
1613
1669
  /**
1614
- * (Integer) The maximum allowed size, in bytes, of a file.
1670
+ * (Integer) The maximum allowed size, in megabytes (MB), of a file. Valid range is 1-100 MB.
1615
1671
  */
1616
1672
  maxFileSize?: outputs.RepositoryRulesetRulesMaxFileSize;
1617
1673
  /**
@@ -1751,7 +1807,7 @@ export interface RepositoryRulesetRulesMaxFilePathLength {
1751
1807
  }
1752
1808
  export interface RepositoryRulesetRulesMaxFileSize {
1753
1809
  /**
1754
- * The maximum allowed size of a file in bytes.
1810
+ * The maximum allowed size of a file in megabytes (MB). Valid range is 1-100 MB.
1755
1811
  */
1756
1812
  maxFileSize: number;
1757
1813
  }
@@ -1880,10 +1936,22 @@ export interface RepositorySecurityAndAnalysis {
1880
1936
  * The advanced security configuration for the repository. See Advanced Security Configuration below for details. If a repository's visibility is `public`, advanced security is always enabled and cannot be changed, so this setting cannot be supplied.
1881
1937
  */
1882
1938
  advancedSecurity?: outputs.RepositorySecurityAndAnalysisAdvancedSecurity;
1939
+ /**
1940
+ * The code security configuration for the repository. See Code Security below for details.
1941
+ */
1942
+ codeSecurity?: outputs.RepositorySecurityAndAnalysisCodeSecurity;
1883
1943
  /**
1884
1944
  * The secret scanning configuration for the repository. See Secret Scanning Configuration below for details.
1885
1945
  */
1886
1946
  secretScanning?: outputs.RepositorySecurityAndAnalysisSecretScanning;
1947
+ /**
1948
+ * The secret scanning ai detection configuration for the repository. See Secret Scanning AI Detection Configuration below for details.
1949
+ */
1950
+ secretScanningAiDetection?: outputs.RepositorySecurityAndAnalysisSecretScanningAiDetection;
1951
+ /**
1952
+ * The secret scanning non-provider patterns configuration for this repository. See Secret Scanning Non-Provider Patterns Configuration below for more details.
1953
+ */
1954
+ secretScanningNonProviderPatterns?: outputs.RepositorySecurityAndAnalysisSecretScanningNonProviderPatterns;
1887
1955
  /**
1888
1956
  * The secret scanning push protection configuration for the repository. See Secret Scanning Push Protection Configuration below for details.
1889
1957
  */
@@ -1895,12 +1963,30 @@ export interface RepositorySecurityAndAnalysisAdvancedSecurity {
1895
1963
  */
1896
1964
  status: string;
1897
1965
  }
1966
+ export interface RepositorySecurityAndAnalysisCodeSecurity {
1967
+ /**
1968
+ * The GitHub Pages site's build status e.g. `building` or `built`.
1969
+ */
1970
+ status: string;
1971
+ }
1898
1972
  export interface RepositorySecurityAndAnalysisSecretScanning {
1899
1973
  /**
1900
1974
  * The GitHub Pages site's build status e.g. `building` or `built`.
1901
1975
  */
1902
1976
  status: string;
1903
1977
  }
1978
+ export interface RepositorySecurityAndAnalysisSecretScanningAiDetection {
1979
+ /**
1980
+ * The GitHub Pages site's build status e.g. `building` or `built`.
1981
+ */
1982
+ status: string;
1983
+ }
1984
+ export interface RepositorySecurityAndAnalysisSecretScanningNonProviderPatterns {
1985
+ /**
1986
+ * The GitHub Pages site's build status e.g. `building` or `built`.
1987
+ */
1988
+ status: string;
1989
+ }
1904
1990
  export interface RepositorySecurityAndAnalysisSecretScanningPushProtection {
1905
1991
  /**
1906
1992
  * The GitHub Pages site's build status e.g. `building` or `built`.