@pulumi/github 6.8.0-alpha.1761153315 → 6.8.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.
- package/actionsOrganizationSecret.d.ts +3 -0
- package/actionsOrganizationSecret.js +2 -0
- package/actionsOrganizationSecret.js.map +1 -1
- package/actionsOrganizationSecretRepository.d.ts +89 -0
- package/actionsOrganizationSecretRepository.js +86 -0
- package/actionsOrganizationSecretRepository.js.map +1 -0
- package/config/vars.d.ts +1 -1
- package/getOrganizationCustomProperties.d.ts +122 -0
- package/getOrganizationCustomProperties.js +60 -0
- package/getOrganizationCustomProperties.js.map +1 -0
- package/getOrganizationCustomRole.d.ts +4 -0
- package/getOrganizationCustomRole.js +4 -0
- package/getOrganizationCustomRole.js.map +1 -1
- package/getOrganizationRepositoryRole.d.ts +82 -0
- package/getOrganizationRepositoryRole.js +54 -0
- package/getOrganizationRepositoryRole.js.map +1 -0
- package/getOrganizationRepositoryRoles.d.ts +65 -0
- package/getOrganizationRepositoryRoles.js +66 -0
- package/getOrganizationRepositoryRoles.js.map +1 -0
- package/getOrganizationRole.d.ts +82 -0
- package/getOrganizationRole.js +50 -0
- package/getOrganizationRole.js.map +1 -0
- package/getOrganizationRoleTeams.d.ts +85 -0
- package/getOrganizationRoleTeams.js +68 -0
- package/getOrganizationRoleTeams.js.map +1 -0
- package/getOrganizationRoleUsers.d.ts +81 -0
- package/getOrganizationRoleUsers.js +64 -0
- package/getOrganizationRoleUsers.js.map +1 -0
- package/getOrganizationRoles.d.ts +63 -0
- package/getOrganizationRoles.js +64 -0
- package/getOrganizationRoles.js.map +1 -0
- package/getOrganizationSecurityManagers.d.ts +41 -0
- package/getOrganizationSecurityManagers.js +42 -0
- package/getOrganizationSecurityManagers.js.map +1 -0
- package/getTeam.d.ts +4 -2
- package/getTeam.js.map +1 -1
- package/index.d.ts +45 -0
- package/index.js +64 -4
- package/index.js.map +1 -1
- package/organizationCustomProperties.d.ts +170 -0
- package/organizationCustomProperties.js +124 -0
- package/organizationCustomProperties.js.map +1 -0
- package/organizationCustomRole.d.ts +2 -0
- package/organizationCustomRole.js +2 -0
- package/organizationCustomRole.js.map +1 -1
- package/organizationProject.d.ts +2 -0
- package/organizationProject.js +2 -0
- package/organizationProject.js.map +1 -1
- package/organizationRepositoryRole.d.ts +121 -0
- package/organizationRepositoryRole.js +92 -0
- package/organizationRepositoryRole.js.map +1 -0
- package/organizationRole.d.ts +121 -0
- package/organizationRole.js +89 -0
- package/organizationRole.js.map +1 -0
- package/organizationRoleTeam.d.ts +83 -0
- package/organizationRoleTeam.js +80 -0
- package/organizationRoleTeam.js.map +1 -0
- package/organizationRoleTeamAssignment.d.ts +90 -0
- package/organizationRoleTeamAssignment.js +87 -0
- package/organizationRoleTeamAssignment.js.map +1 -0
- package/organizationRoleUser.d.ts +83 -0
- package/organizationRoleUser.js +80 -0
- package/organizationRoleUser.js.map +1 -0
- package/organizationRuleset.d.ts +8 -0
- package/organizationRuleset.js +8 -0
- package/organizationRuleset.js.map +1 -1
- package/package.json +2 -2
- package/projectCard.d.ts +2 -0
- package/projectCard.js +2 -0
- package/projectCard.js.map +1 -1
- package/projectColumn.d.ts +2 -0
- package/projectColumn.js +2 -0
- package/projectColumn.js.map +1 -1
- package/provider.d.ts +1 -1
- package/repository.d.ts +1 -1
- package/repositoryProject.d.ts +2 -0
- package/repositoryProject.js +2 -0
- package/repositoryProject.js.map +1 -1
- package/repositoryRuleset.d.ts +28 -3
- package/repositoryRuleset.js +25 -0
- package/repositoryRuleset.js.map +1 -1
- package/types/input.d.ts +44 -6
- package/types/output.d.ts +158 -15
package/types/output.d.ts
CHANGED
|
@@ -146,7 +146,7 @@ export interface BranchProtectionV3RequiredStatusChecks {
|
|
|
146
146
|
/**
|
|
147
147
|
* The list of status checks to require in order to merge into this branch. No status checks are required by default. Checks should be strings containing the context and appId like so "context:app_id".
|
|
148
148
|
*/
|
|
149
|
-
checks
|
|
149
|
+
checks: string[];
|
|
150
150
|
/**
|
|
151
151
|
* [**DEPRECATED**] (Optional) The list of status checks to require in order to merge into this branch. No status checks are required by default.
|
|
152
152
|
*
|
|
@@ -157,7 +157,7 @@ export interface BranchProtectionV3RequiredStatusChecks {
|
|
|
157
157
|
*
|
|
158
158
|
* @deprecated GitHub is deprecating the use of `contexts`. Use a `checks` array instead.
|
|
159
159
|
*/
|
|
160
|
-
contexts
|
|
160
|
+
contexts: string[];
|
|
161
161
|
/**
|
|
162
162
|
* @deprecated Use enforceAdmins instead
|
|
163
163
|
*/
|
|
@@ -540,6 +540,100 @@ export interface GetOrganizationIpAllowListIpAllowList {
|
|
|
540
540
|
*/
|
|
541
541
|
updatedAt: string;
|
|
542
542
|
}
|
|
543
|
+
export interface GetOrganizationRepositoryRolesRole {
|
|
544
|
+
/**
|
|
545
|
+
* The system role from which this role inherits permissions.
|
|
546
|
+
*/
|
|
547
|
+
baseRole: string;
|
|
548
|
+
/**
|
|
549
|
+
* The description of the organization repository role.
|
|
550
|
+
*/
|
|
551
|
+
description: string;
|
|
552
|
+
/**
|
|
553
|
+
* The name of the organization repository role.
|
|
554
|
+
*/
|
|
555
|
+
name: string;
|
|
556
|
+
/**
|
|
557
|
+
* The permissions included in this role.
|
|
558
|
+
*/
|
|
559
|
+
permissions: string[];
|
|
560
|
+
/**
|
|
561
|
+
* The ID of the organization repository role.
|
|
562
|
+
*/
|
|
563
|
+
roleId: number;
|
|
564
|
+
}
|
|
565
|
+
export interface GetOrganizationRoleTeamsTeam {
|
|
566
|
+
/**
|
|
567
|
+
* The name of the team.
|
|
568
|
+
*/
|
|
569
|
+
name: string;
|
|
570
|
+
/**
|
|
571
|
+
* The permission that the team will have for its repositories.
|
|
572
|
+
*/
|
|
573
|
+
permission: string;
|
|
574
|
+
/**
|
|
575
|
+
* The Slug of the team name.
|
|
576
|
+
*/
|
|
577
|
+
slug: string;
|
|
578
|
+
/**
|
|
579
|
+
* The ID of the team.
|
|
580
|
+
*/
|
|
581
|
+
teamId: number;
|
|
582
|
+
}
|
|
583
|
+
export interface GetOrganizationRoleUsersUser {
|
|
584
|
+
/**
|
|
585
|
+
* The login for the GitHub user account.
|
|
586
|
+
*/
|
|
587
|
+
login: string;
|
|
588
|
+
/**
|
|
589
|
+
* The ID of the user.
|
|
590
|
+
*/
|
|
591
|
+
userId: number;
|
|
592
|
+
}
|
|
593
|
+
export interface GetOrganizationRolesRole {
|
|
594
|
+
/**
|
|
595
|
+
* The system role from which this role inherits permissions.
|
|
596
|
+
*/
|
|
597
|
+
baseRole: string;
|
|
598
|
+
/**
|
|
599
|
+
* The description of the organization role.
|
|
600
|
+
*/
|
|
601
|
+
description: string;
|
|
602
|
+
/**
|
|
603
|
+
* The name of the organization role.
|
|
604
|
+
*/
|
|
605
|
+
name: string;
|
|
606
|
+
/**
|
|
607
|
+
* A list of permissions included in this role.
|
|
608
|
+
*/
|
|
609
|
+
permissions: string[];
|
|
610
|
+
/**
|
|
611
|
+
* The ID of the organization role.
|
|
612
|
+
*/
|
|
613
|
+
roleId: number;
|
|
614
|
+
/**
|
|
615
|
+
* The source of this role; one of `Predefined`, `Organization`, or `Enterprise`.
|
|
616
|
+
*/
|
|
617
|
+
source: string;
|
|
618
|
+
}
|
|
619
|
+
export interface GetOrganizationSecurityManagersTeam {
|
|
620
|
+
/**
|
|
621
|
+
* Unique identifier of the team.
|
|
622
|
+
*/
|
|
623
|
+
id: number;
|
|
624
|
+
/**
|
|
625
|
+
* Name of the team.
|
|
626
|
+
*/
|
|
627
|
+
name: string;
|
|
628
|
+
/**
|
|
629
|
+
* Permission that the team will have for its repositories.
|
|
630
|
+
*/
|
|
631
|
+
permission: string;
|
|
632
|
+
/**
|
|
633
|
+
* Name based identifier of the team.
|
|
634
|
+
*/
|
|
635
|
+
slug: string;
|
|
636
|
+
}
|
|
543
637
|
export interface GetOrganizationTeamSyncGroupsGroup {
|
|
544
638
|
/**
|
|
545
639
|
* The description of the IdP group.
|
|
@@ -556,11 +650,11 @@ export interface GetOrganizationTeamSyncGroupsGroup {
|
|
|
556
650
|
}
|
|
557
651
|
export interface GetOrganizationTeamsTeam {
|
|
558
652
|
/**
|
|
559
|
-
*
|
|
653
|
+
* The team's description.
|
|
560
654
|
*/
|
|
561
655
|
description: string;
|
|
562
656
|
/**
|
|
563
|
-
*
|
|
657
|
+
* The ID of the team.
|
|
564
658
|
*/
|
|
565
659
|
id: number;
|
|
566
660
|
/**
|
|
@@ -568,21 +662,31 @@ export interface GetOrganizationTeamsTeam {
|
|
|
568
662
|
*/
|
|
569
663
|
members: string[];
|
|
570
664
|
/**
|
|
571
|
-
*
|
|
665
|
+
* The team's full name.
|
|
572
666
|
*/
|
|
573
667
|
name: string;
|
|
574
668
|
/**
|
|
575
|
-
*
|
|
669
|
+
* The Node ID of the team.
|
|
576
670
|
*/
|
|
577
671
|
nodeId: string;
|
|
578
672
|
/**
|
|
579
|
-
*
|
|
673
|
+
* (**DEPRECATED**) The parent team, use `parentTeamId` or `parentTeamSlug` instead.
|
|
674
|
+
*
|
|
675
|
+
* @deprecated Use parentTeamId and parentTeamSlug instead.
|
|
580
676
|
*/
|
|
581
677
|
parent: {
|
|
582
678
|
[key: string]: string;
|
|
583
679
|
};
|
|
584
680
|
/**
|
|
585
|
-
* the team
|
|
681
|
+
* The ID of the parent team, if there is one.
|
|
682
|
+
*/
|
|
683
|
+
parentTeamId: string;
|
|
684
|
+
/**
|
|
685
|
+
* The slug of the parent team, if there is one.
|
|
686
|
+
*/
|
|
687
|
+
parentTeamSlug: string;
|
|
688
|
+
/**
|
|
689
|
+
* The team's privacy type.
|
|
586
690
|
*/
|
|
587
691
|
privacy: string;
|
|
588
692
|
/**
|
|
@@ -590,7 +694,7 @@ export interface GetOrganizationTeamsTeam {
|
|
|
590
694
|
*/
|
|
591
695
|
repositories: string[];
|
|
592
696
|
/**
|
|
593
|
-
*
|
|
697
|
+
* The slug of the team.
|
|
594
698
|
*/
|
|
595
699
|
slug: string;
|
|
596
700
|
}
|
|
@@ -960,6 +1064,7 @@ export interface GetRepositoryWebhooksWebhook {
|
|
|
960
1064
|
}
|
|
961
1065
|
export interface GetTeamRepositoriesDetailed {
|
|
962
1066
|
repoId: number;
|
|
1067
|
+
repoName: string;
|
|
963
1068
|
roleName: string;
|
|
964
1069
|
}
|
|
965
1070
|
export interface GetTreeEntry {
|
|
@@ -991,13 +1096,13 @@ export interface OrganizationRulesetBypassActor {
|
|
|
991
1096
|
/**
|
|
992
1097
|
* (Number) The ID of the actor that can bypass a ruleset.
|
|
993
1098
|
*/
|
|
994
|
-
actorId
|
|
1099
|
+
actorId?: number;
|
|
995
1100
|
/**
|
|
996
1101
|
* The type of actor that can bypass a ruleset. Can be one of: `RepositoryRole`, `Team`, `Integration`, `OrganizationAdmin`.
|
|
997
1102
|
*/
|
|
998
1103
|
actorType: string;
|
|
999
1104
|
/**
|
|
1000
|
-
* (String) When the specified actor can bypass the ruleset. pullRequest means that an actor can only bypass rules on pull requests. Can be one of: `always`, `pullRequest`.
|
|
1105
|
+
* (String) When the specified actor can bypass the ruleset. pullRequest means that an actor can only bypass rules on pull requests. Can be one of: `always`, `pullRequest`, `exempt`.
|
|
1001
1106
|
*
|
|
1002
1107
|
* ~>Note: at the time of writing this, the following actor types correspond to the following actor IDs:
|
|
1003
1108
|
*
|
|
@@ -1223,6 +1328,10 @@ export interface OrganizationRulesetRulesRequiredCodeScanningRequiredCodeScannin
|
|
|
1223
1328
|
tool: string;
|
|
1224
1329
|
}
|
|
1225
1330
|
export interface OrganizationRulesetRulesRequiredStatusChecks {
|
|
1331
|
+
/**
|
|
1332
|
+
* Allow repositories and branches to be created if a check would otherwise prohibit it.
|
|
1333
|
+
*/
|
|
1334
|
+
doNotEnforceOnCreate?: boolean;
|
|
1226
1335
|
/**
|
|
1227
1336
|
* Status checks that are required. Several can be defined.
|
|
1228
1337
|
*/
|
|
@@ -1243,6 +1352,10 @@ export interface OrganizationRulesetRulesRequiredStatusChecksRequiredCheck {
|
|
|
1243
1352
|
integrationId?: number;
|
|
1244
1353
|
}
|
|
1245
1354
|
export interface OrganizationRulesetRulesRequiredWorkflows {
|
|
1355
|
+
/**
|
|
1356
|
+
* Allow repositories and branches to be created if a check would otherwise prohibit it.
|
|
1357
|
+
*/
|
|
1358
|
+
doNotEnforceOnCreate?: boolean;
|
|
1246
1359
|
/**
|
|
1247
1360
|
* Actions workflows that are required. Several can be defined.
|
|
1248
1361
|
*/
|
|
@@ -1387,15 +1500,15 @@ export interface RepositoryPagesSource {
|
|
|
1387
1500
|
}
|
|
1388
1501
|
export interface RepositoryRulesetBypassActor {
|
|
1389
1502
|
/**
|
|
1390
|
-
*
|
|
1503
|
+
* The ID of the actor that can bypass a ruleset. If `actorType` is `Integration`, `actorId` is a GitHub App ID. App ID can be obtained by following instructions from the [Get an App API docs](https://docs.github.com/en/rest/apps/apps?apiVersion=2022-11-28#get-an-app)
|
|
1391
1504
|
*/
|
|
1392
|
-
actorId
|
|
1505
|
+
actorId?: number;
|
|
1393
1506
|
/**
|
|
1394
|
-
* The type of actor that can bypass a ruleset. Can be one of: `RepositoryRole`, `Team`, `Integration`, `OrganizationAdmin`.
|
|
1507
|
+
* The type of actor that can bypass a ruleset. Can be one of: `RepositoryRole`, `Team`, `Integration`, `OrganizationAdmin`, `DeployKey`.
|
|
1395
1508
|
*/
|
|
1396
1509
|
actorType: string;
|
|
1397
1510
|
/**
|
|
1398
|
-
* (String) When the specified actor can bypass the ruleset. pullRequest means that an actor can only bypass rules on pull requests. Can be one of: `always`, `pullRequest`.
|
|
1511
|
+
* (String) When the specified actor can bypass the ruleset. pullRequest means that an actor can only bypass rules on pull requests. Can be one of: `always`, `pullRequest`, `exempt`.
|
|
1399
1512
|
*
|
|
1400
1513
|
* > Note: at the time of writing this, the following actor types correspond to the following actor IDs:
|
|
1401
1514
|
*
|
|
@@ -1445,6 +1558,18 @@ export interface RepositoryRulesetRules {
|
|
|
1445
1558
|
* (Boolean) Only allow users with bypass permissions to delete matching refs.
|
|
1446
1559
|
*/
|
|
1447
1560
|
deletion?: boolean;
|
|
1561
|
+
/**
|
|
1562
|
+
* (Block List, Max: 1) Prevent commits that include files with specified file extensions from being pushed to the commit graph. This rule only applies to rulesets with target `push`. (see below for nested schema)
|
|
1563
|
+
*/
|
|
1564
|
+
fileExtensionRestriction?: outputs.RepositoryRulesetRulesFileExtensionRestriction;
|
|
1565
|
+
/**
|
|
1566
|
+
* (Block List, Max 1) Parameters to be used for the filePathRestriction rule. When enabled restricts access to files within the repository. (See below for nested schema)
|
|
1567
|
+
*/
|
|
1568
|
+
filePathRestriction?: outputs.RepositoryRulesetRulesFilePathRestriction;
|
|
1569
|
+
/**
|
|
1570
|
+
* (Integer) The maximum allowed size, in bytes, of a file.
|
|
1571
|
+
*/
|
|
1572
|
+
maxFileSize?: outputs.RepositoryRulesetRulesMaxFileSize;
|
|
1448
1573
|
/**
|
|
1449
1574
|
* (Block List, Max: 1) Merges must be performed via a merge queue.
|
|
1450
1575
|
*/
|
|
@@ -1562,6 +1687,24 @@ export interface RepositoryRulesetRulesCommitterEmailPattern {
|
|
|
1562
1687
|
*/
|
|
1563
1688
|
pattern: string;
|
|
1564
1689
|
}
|
|
1690
|
+
export interface RepositoryRulesetRulesFileExtensionRestriction {
|
|
1691
|
+
/**
|
|
1692
|
+
* A list of file extensions.
|
|
1693
|
+
*/
|
|
1694
|
+
restrictedFileExtensions: string[];
|
|
1695
|
+
}
|
|
1696
|
+
export interface RepositoryRulesetRulesFilePathRestriction {
|
|
1697
|
+
/**
|
|
1698
|
+
* The file paths that are restricted from being pushed to the commit graph.
|
|
1699
|
+
*/
|
|
1700
|
+
restrictedFilePaths: string[];
|
|
1701
|
+
}
|
|
1702
|
+
export interface RepositoryRulesetRulesMaxFileSize {
|
|
1703
|
+
/**
|
|
1704
|
+
* The maximum allowed size of a file in bytes.
|
|
1705
|
+
*/
|
|
1706
|
+
maxFileSize: number;
|
|
1707
|
+
}
|
|
1565
1708
|
export interface RepositoryRulesetRulesMergeQueue {
|
|
1566
1709
|
/**
|
|
1567
1710
|
* Maximum time for a required status check to report a conclusion. After this much time has elapsed, checks that have not reported a conclusion will be assumed to have failed. Defaults to `60`.
|