pulumi-github 6.11.0a1768542226__py3-none-any.whl → 6.12.0__py3-none-any.whl
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.
- pulumi_github/__init__.py +37 -0
- pulumi_github/_inputs.py +527 -34
- pulumi_github/actions_environment_secret.py +141 -12
- pulumi_github/actions_environment_variable.py +73 -39
- pulumi_github/actions_organization_permissions.py +50 -3
- pulumi_github/actions_organization_secret.py +164 -55
- pulumi_github/actions_organization_secret_repositories.py +44 -28
- pulumi_github/actions_organization_secret_repository.py +44 -28
- pulumi_github/actions_organization_variable.py +44 -47
- pulumi_github/actions_organization_variable_repositories.py +262 -0
- pulumi_github/actions_organization_variable_repository.py +262 -0
- pulumi_github/actions_organization_workflow_permissions.py +320 -0
- pulumi_github/actions_repository_permissions.py +50 -3
- pulumi_github/actions_secret.py +176 -41
- pulumi_github/actions_variable.py +65 -33
- pulumi_github/app_installation_repositories.py +6 -6
- pulumi_github/app_installation_repository.py +6 -6
- pulumi_github/dependabot_organization_secret.py +128 -59
- pulumi_github/dependabot_organization_secret_repositories.py +44 -36
- pulumi_github/dependabot_organization_secret_repository.py +262 -0
- pulumi_github/dependabot_secret.py +154 -41
- pulumi_github/emu_group_mapping.py +62 -6
- pulumi_github/get_ip_ranges.py +3 -0
- pulumi_github/get_release_asset.py +370 -0
- pulumi_github/get_repository.py +17 -2
- pulumi_github/get_team.py +29 -13
- pulumi_github/organization_ruleset.py +11 -17
- pulumi_github/outputs.py +404 -25
- pulumi_github/pulumi-plugin.json +1 -1
- pulumi_github/repository.py +88 -23
- pulumi_github/repository_custom_property.py +2 -2
- pulumi_github/repository_environment.py +11 -11
- pulumi_github/repository_environment_deployment_policy.py +4 -4
- pulumi_github/repository_ruleset.py +7 -7
- pulumi_github/team.py +70 -21
- {pulumi_github-6.11.0a1768542226.dist-info → pulumi_github-6.12.0.dist-info}/METADATA +1 -1
- {pulumi_github-6.11.0a1768542226.dist-info → pulumi_github-6.12.0.dist-info}/RECORD +39 -34
- {pulumi_github-6.11.0a1768542226.dist-info → pulumi_github-6.12.0.dist-info}/WHEEL +1 -1
- {pulumi_github-6.11.0a1768542226.dist-info → pulumi_github-6.12.0.dist-info}/top_level.txt +0 -0
pulumi_github/pulumi-plugin.json
CHANGED
pulumi_github/repository.py
CHANGED
|
@@ -22,6 +22,7 @@ __all__ = ['RepositoryArgs', 'Repository']
|
|
|
22
22
|
class RepositoryArgs:
|
|
23
23
|
def __init__(__self__, *,
|
|
24
24
|
allow_auto_merge: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
25
|
+
allow_forking: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
25
26
|
allow_merge_commit: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
26
27
|
allow_rebase_merge: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
27
28
|
allow_squash_merge: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
@@ -62,6 +63,7 @@ class RepositoryArgs:
|
|
|
62
63
|
"""
|
|
63
64
|
The set of arguments for constructing a Repository resource.
|
|
64
65
|
:param pulumi.Input[_builtins.bool] allow_auto_merge: Set to `true` to allow auto-merging pull requests on the repository.
|
|
66
|
+
:param pulumi.Input[_builtins.bool] allow_forking: Configure private forking for organization owned private and internal repositories; set to `true` to enable, `false` to disable, and leave unset for the default behaviour. Configuring this requires that private forking is not being explicitly configured at the organization level.
|
|
65
67
|
:param pulumi.Input[_builtins.bool] allow_merge_commit: Set to `false` to disable merge commits on the repository.
|
|
66
68
|
:param pulumi.Input[_builtins.bool] allow_rebase_merge: Set to `false` to disable rebase merges on the repository.
|
|
67
69
|
:param pulumi.Input[_builtins.bool] allow_squash_merge: Set to `false` to disable squash merges on the repository.
|
|
@@ -77,14 +79,14 @@ class RepositoryArgs:
|
|
|
77
79
|
:param pulumi.Input[_builtins.str] fork: Set to `true` to create a fork of an existing repository. When set to `true`, both `source_owner` and `source_repo` must also be specified.
|
|
78
80
|
:param pulumi.Input[_builtins.str] gitignore_template: Use the [name of the template](https://github.com/github/gitignore) without the extension. For example, "Haskell".
|
|
79
81
|
:param pulumi.Input[_builtins.bool] has_discussions: Set to `true` to enable GitHub Discussions on the repository. Defaults to `false`.
|
|
80
|
-
:param pulumi.Input[_builtins.bool] has_downloads: Set to `true` to enable the (deprecated) downloads features on the repository.
|
|
82
|
+
:param pulumi.Input[_builtins.bool] has_downloads: (Optional) Set to `true` to enable the (deprecated) downloads features on the repository. This attribute is no longer in use, but it hasn't been removed yet. It will be removed in a future version. See [this discussion](https://github.com/orgs/community/discussions/102145#discussioncomment-8351756).
|
|
81
83
|
:param pulumi.Input[_builtins.bool] has_issues: Set to `true` to enable the GitHub Issues features
|
|
82
84
|
on the repository.
|
|
83
85
|
:param pulumi.Input[_builtins.bool] has_projects: Set to `true` to enable the GitHub Projects features on the repository. Per the GitHub [documentation](https://developer.github.com/v3/repos/#create) when in an organization that has disabled repository projects it will default to `false` and will otherwise default to `true`. If you specify `true` when it has been disabled it will return an error.
|
|
84
86
|
:param pulumi.Input[_builtins.bool] has_wiki: Set to `true` to enable the GitHub Wiki features on
|
|
85
87
|
the repository.
|
|
86
88
|
:param pulumi.Input[_builtins.str] homepage_url: URL of a page describing the project.
|
|
87
|
-
:param pulumi.Input[_builtins.bool] ignore_vulnerability_alerts_during_read:
|
|
89
|
+
:param pulumi.Input[_builtins.bool] ignore_vulnerability_alerts_during_read: (Optional) - This is ignored as the provider now handles lack of permissions automatically.
|
|
88
90
|
:param pulumi.Input[_builtins.bool] is_template: Set to `true` to tell GitHub that this is a template repository.
|
|
89
91
|
:param pulumi.Input[_builtins.str] license_template: Use the [name of the template](https://github.com/github/choosealicense.com/tree/gh-pages/_licenses) without the extension. For example, "mit" or "mpl-2.0".
|
|
90
92
|
:param pulumi.Input[_builtins.str] merge_commit_message: Can be `PR_BODY`, `PR_TITLE`, or `BLANK` for a default merge commit message. Applicable only if `allow_merge_commit` is `true`.
|
|
@@ -101,11 +103,13 @@ class RepositoryArgs:
|
|
|
101
103
|
:param pulumi.Input['RepositoryTemplateArgs'] template: Use a template repository to create this resource. See Template Repositories below for details.
|
|
102
104
|
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] topics: The list of topics of the repository.
|
|
103
105
|
:param pulumi.Input[_builtins.str] visibility: Can be `public` or `private`. If your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+, visibility can also be `internal`. The `visibility` parameter overrides the `private` parameter.
|
|
104
|
-
:param pulumi.Input[_builtins.bool] vulnerability_alerts:
|
|
106
|
+
:param pulumi.Input[_builtins.bool] vulnerability_alerts: Configure [Dependabot security alerts](https://help.github.com/en/github/managing-security-vulnerabilities/about-security-alerts-for-vulnerable-dependencies) for vulnerable dependencies; set to `true` to enable, set to `false` to disable, and leave unset for the default behavior. Configuring this requires that alerts are not being explicitly configured at the organization level.
|
|
105
107
|
:param pulumi.Input[_builtins.bool] web_commit_signoff_required: Require contributors to sign off on web-based commits. See more [here](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/managing-repository-settings/managing-the-commit-signoff-policy-for-your-repository). Defaults to `false`.
|
|
106
108
|
"""
|
|
107
109
|
if allow_auto_merge is not None:
|
|
108
110
|
pulumi.set(__self__, "allow_auto_merge", allow_auto_merge)
|
|
111
|
+
if allow_forking is not None:
|
|
112
|
+
pulumi.set(__self__, "allow_forking", allow_forking)
|
|
109
113
|
if allow_merge_commit is not None:
|
|
110
114
|
pulumi.set(__self__, "allow_merge_commit", allow_merge_commit)
|
|
111
115
|
if allow_rebase_merge is not None:
|
|
@@ -137,6 +141,9 @@ class RepositoryArgs:
|
|
|
137
141
|
pulumi.set(__self__, "gitignore_template", gitignore_template)
|
|
138
142
|
if has_discussions is not None:
|
|
139
143
|
pulumi.set(__self__, "has_discussions", has_discussions)
|
|
144
|
+
if has_downloads is not None:
|
|
145
|
+
warnings.warn("""This attribute is no longer in use, but it hasn't been removed yet. It will be removed in a future version. See https://github.com/orgs/community/discussions/102145#discussioncomment-8351756""", DeprecationWarning)
|
|
146
|
+
pulumi.log.warn("""has_downloads is deprecated: This attribute is no longer in use, but it hasn't been removed yet. It will be removed in a future version. See https://github.com/orgs/community/discussions/102145#discussioncomment-8351756""")
|
|
140
147
|
if has_downloads is not None:
|
|
141
148
|
pulumi.set(__self__, "has_downloads", has_downloads)
|
|
142
149
|
if has_issues is not None:
|
|
@@ -147,6 +154,9 @@ class RepositoryArgs:
|
|
|
147
154
|
pulumi.set(__self__, "has_wiki", has_wiki)
|
|
148
155
|
if homepage_url is not None:
|
|
149
156
|
pulumi.set(__self__, "homepage_url", homepage_url)
|
|
157
|
+
if ignore_vulnerability_alerts_during_read is not None:
|
|
158
|
+
warnings.warn("""This is ignored as the provider now handles lack of permissions automatically.""", DeprecationWarning)
|
|
159
|
+
pulumi.log.warn("""ignore_vulnerability_alerts_during_read is deprecated: This is ignored as the provider now handles lack of permissions automatically.""")
|
|
150
160
|
if ignore_vulnerability_alerts_during_read is not None:
|
|
151
161
|
pulumi.set(__self__, "ignore_vulnerability_alerts_during_read", ignore_vulnerability_alerts_during_read)
|
|
152
162
|
if is_template is not None:
|
|
@@ -199,6 +209,18 @@ class RepositoryArgs:
|
|
|
199
209
|
def allow_auto_merge(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
200
210
|
pulumi.set(self, "allow_auto_merge", value)
|
|
201
211
|
|
|
212
|
+
@_builtins.property
|
|
213
|
+
@pulumi.getter(name="allowForking")
|
|
214
|
+
def allow_forking(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
215
|
+
"""
|
|
216
|
+
Configure private forking for organization owned private and internal repositories; set to `true` to enable, `false` to disable, and leave unset for the default behaviour. Configuring this requires that private forking is not being explicitly configured at the organization level.
|
|
217
|
+
"""
|
|
218
|
+
return pulumi.get(self, "allow_forking")
|
|
219
|
+
|
|
220
|
+
@allow_forking.setter
|
|
221
|
+
def allow_forking(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
222
|
+
pulumi.set(self, "allow_forking", value)
|
|
223
|
+
|
|
202
224
|
@_builtins.property
|
|
203
225
|
@pulumi.getter(name="allowMergeCommit")
|
|
204
226
|
def allow_merge_commit(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
@@ -369,9 +391,10 @@ class RepositoryArgs:
|
|
|
369
391
|
|
|
370
392
|
@_builtins.property
|
|
371
393
|
@pulumi.getter(name="hasDownloads")
|
|
394
|
+
@_utilities.deprecated("""This attribute is no longer in use, but it hasn't been removed yet. It will be removed in a future version. See https://github.com/orgs/community/discussions/102145#discussioncomment-8351756""")
|
|
372
395
|
def has_downloads(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
373
396
|
"""
|
|
374
|
-
Set to `true` to enable the (deprecated) downloads features on the repository.
|
|
397
|
+
(Optional) Set to `true` to enable the (deprecated) downloads features on the repository. This attribute is no longer in use, but it hasn't been removed yet. It will be removed in a future version. See [this discussion](https://github.com/orgs/community/discussions/102145#discussioncomment-8351756).
|
|
375
398
|
"""
|
|
376
399
|
return pulumi.get(self, "has_downloads")
|
|
377
400
|
|
|
@@ -431,9 +454,10 @@ class RepositoryArgs:
|
|
|
431
454
|
|
|
432
455
|
@_builtins.property
|
|
433
456
|
@pulumi.getter(name="ignoreVulnerabilityAlertsDuringRead")
|
|
457
|
+
@_utilities.deprecated("""This is ignored as the provider now handles lack of permissions automatically.""")
|
|
434
458
|
def ignore_vulnerability_alerts_during_read(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
435
459
|
"""
|
|
436
|
-
|
|
460
|
+
(Optional) - This is ignored as the provider now handles lack of permissions automatically.
|
|
437
461
|
"""
|
|
438
462
|
return pulumi.get(self, "ignore_vulnerability_alerts_during_read")
|
|
439
463
|
|
|
@@ -627,7 +651,7 @@ class RepositoryArgs:
|
|
|
627
651
|
@pulumi.getter(name="vulnerabilityAlerts")
|
|
628
652
|
def vulnerability_alerts(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
629
653
|
"""
|
|
630
|
-
|
|
654
|
+
Configure [Dependabot security alerts](https://help.github.com/en/github/managing-security-vulnerabilities/about-security-alerts-for-vulnerable-dependencies) for vulnerable dependencies; set to `true` to enable, set to `false` to disable, and leave unset for the default behavior. Configuring this requires that alerts are not being explicitly configured at the organization level.
|
|
631
655
|
"""
|
|
632
656
|
return pulumi.get(self, "vulnerability_alerts")
|
|
633
657
|
|
|
@@ -652,6 +676,7 @@ class RepositoryArgs:
|
|
|
652
676
|
class _RepositoryState:
|
|
653
677
|
def __init__(__self__, *,
|
|
654
678
|
allow_auto_merge: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
679
|
+
allow_forking: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
655
680
|
allow_merge_commit: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
656
681
|
allow_rebase_merge: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
657
682
|
allow_squash_merge: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
@@ -701,6 +726,7 @@ class _RepositoryState:
|
|
|
701
726
|
"""
|
|
702
727
|
Input properties used for looking up and filtering Repository resources.
|
|
703
728
|
:param pulumi.Input[_builtins.bool] allow_auto_merge: Set to `true` to allow auto-merging pull requests on the repository.
|
|
729
|
+
:param pulumi.Input[_builtins.bool] allow_forking: Configure private forking for organization owned private and internal repositories; set to `true` to enable, `false` to disable, and leave unset for the default behaviour. Configuring this requires that private forking is not being explicitly configured at the organization level.
|
|
704
730
|
:param pulumi.Input[_builtins.bool] allow_merge_commit: Set to `false` to disable merge commits on the repository.
|
|
705
731
|
:param pulumi.Input[_builtins.bool] allow_rebase_merge: Set to `false` to disable rebase merges on the repository.
|
|
706
732
|
:param pulumi.Input[_builtins.bool] allow_squash_merge: Set to `false` to disable squash merges on the repository.
|
|
@@ -718,7 +744,7 @@ class _RepositoryState:
|
|
|
718
744
|
:param pulumi.Input[_builtins.str] git_clone_url: URL that can be provided to `git clone` to clone the repository anonymously via the git protocol.
|
|
719
745
|
:param pulumi.Input[_builtins.str] gitignore_template: Use the [name of the template](https://github.com/github/gitignore) without the extension. For example, "Haskell".
|
|
720
746
|
:param pulumi.Input[_builtins.bool] has_discussions: Set to `true` to enable GitHub Discussions on the repository. Defaults to `false`.
|
|
721
|
-
:param pulumi.Input[_builtins.bool] has_downloads: Set to `true` to enable the (deprecated) downloads features on the repository.
|
|
747
|
+
:param pulumi.Input[_builtins.bool] has_downloads: (Optional) Set to `true` to enable the (deprecated) downloads features on the repository. This attribute is no longer in use, but it hasn't been removed yet. It will be removed in a future version. See [this discussion](https://github.com/orgs/community/discussions/102145#discussioncomment-8351756).
|
|
722
748
|
:param pulumi.Input[_builtins.bool] has_issues: Set to `true` to enable the GitHub Issues features
|
|
723
749
|
on the repository.
|
|
724
750
|
:param pulumi.Input[_builtins.bool] has_projects: Set to `true` to enable the GitHub Projects features on the repository. Per the GitHub [documentation](https://developer.github.com/v3/repos/#create) when in an organization that has disabled repository projects it will default to `false` and will otherwise default to `true`. If you specify `true` when it has been disabled it will return an error.
|
|
@@ -727,7 +753,7 @@ class _RepositoryState:
|
|
|
727
753
|
:param pulumi.Input[_builtins.str] homepage_url: URL of a page describing the project.
|
|
728
754
|
:param pulumi.Input[_builtins.str] html_url: The absolute URL (including scheme) of the rendered GitHub Pages site e.g. `https://username.github.io`.
|
|
729
755
|
:param pulumi.Input[_builtins.str] http_clone_url: URL that can be provided to `git clone` to clone the repository via HTTPS.
|
|
730
|
-
:param pulumi.Input[_builtins.bool] ignore_vulnerability_alerts_during_read:
|
|
756
|
+
:param pulumi.Input[_builtins.bool] ignore_vulnerability_alerts_during_read: (Optional) - This is ignored as the provider now handles lack of permissions automatically.
|
|
731
757
|
:param pulumi.Input[_builtins.bool] is_template: Set to `true` to tell GitHub that this is a template repository.
|
|
732
758
|
:param pulumi.Input[_builtins.str] license_template: Use the [name of the template](https://github.com/github/choosealicense.com/tree/gh-pages/_licenses) without the extension. For example, "mit" or "mpl-2.0".
|
|
733
759
|
:param pulumi.Input[_builtins.str] merge_commit_message: Can be `PR_BODY`, `PR_TITLE`, or `BLANK` for a default merge commit message. Applicable only if `allow_merge_commit` is `true`.
|
|
@@ -749,11 +775,13 @@ class _RepositoryState:
|
|
|
749
775
|
:param pulumi.Input['RepositoryTemplateArgs'] template: Use a template repository to create this resource. See Template Repositories below for details.
|
|
750
776
|
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] topics: The list of topics of the repository.
|
|
751
777
|
:param pulumi.Input[_builtins.str] visibility: Can be `public` or `private`. If your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+, visibility can also be `internal`. The `visibility` parameter overrides the `private` parameter.
|
|
752
|
-
:param pulumi.Input[_builtins.bool] vulnerability_alerts:
|
|
778
|
+
:param pulumi.Input[_builtins.bool] vulnerability_alerts: Configure [Dependabot security alerts](https://help.github.com/en/github/managing-security-vulnerabilities/about-security-alerts-for-vulnerable-dependencies) for vulnerable dependencies; set to `true` to enable, set to `false` to disable, and leave unset for the default behavior. Configuring this requires that alerts are not being explicitly configured at the organization level.
|
|
753
779
|
:param pulumi.Input[_builtins.bool] web_commit_signoff_required: Require contributors to sign off on web-based commits. See more [here](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/managing-repository-settings/managing-the-commit-signoff-policy-for-your-repository). Defaults to `false`.
|
|
754
780
|
"""
|
|
755
781
|
if allow_auto_merge is not None:
|
|
756
782
|
pulumi.set(__self__, "allow_auto_merge", allow_auto_merge)
|
|
783
|
+
if allow_forking is not None:
|
|
784
|
+
pulumi.set(__self__, "allow_forking", allow_forking)
|
|
757
785
|
if allow_merge_commit is not None:
|
|
758
786
|
pulumi.set(__self__, "allow_merge_commit", allow_merge_commit)
|
|
759
787
|
if allow_rebase_merge is not None:
|
|
@@ -789,6 +817,9 @@ class _RepositoryState:
|
|
|
789
817
|
pulumi.set(__self__, "gitignore_template", gitignore_template)
|
|
790
818
|
if has_discussions is not None:
|
|
791
819
|
pulumi.set(__self__, "has_discussions", has_discussions)
|
|
820
|
+
if has_downloads is not None:
|
|
821
|
+
warnings.warn("""This attribute is no longer in use, but it hasn't been removed yet. It will be removed in a future version. See https://github.com/orgs/community/discussions/102145#discussioncomment-8351756""", DeprecationWarning)
|
|
822
|
+
pulumi.log.warn("""has_downloads is deprecated: This attribute is no longer in use, but it hasn't been removed yet. It will be removed in a future version. See https://github.com/orgs/community/discussions/102145#discussioncomment-8351756""")
|
|
792
823
|
if has_downloads is not None:
|
|
793
824
|
pulumi.set(__self__, "has_downloads", has_downloads)
|
|
794
825
|
if has_issues is not None:
|
|
@@ -803,6 +834,9 @@ class _RepositoryState:
|
|
|
803
834
|
pulumi.set(__self__, "html_url", html_url)
|
|
804
835
|
if http_clone_url is not None:
|
|
805
836
|
pulumi.set(__self__, "http_clone_url", http_clone_url)
|
|
837
|
+
if ignore_vulnerability_alerts_during_read is not None:
|
|
838
|
+
warnings.warn("""This is ignored as the provider now handles lack of permissions automatically.""", DeprecationWarning)
|
|
839
|
+
pulumi.log.warn("""ignore_vulnerability_alerts_during_read is deprecated: This is ignored as the provider now handles lack of permissions automatically.""")
|
|
806
840
|
if ignore_vulnerability_alerts_during_read is not None:
|
|
807
841
|
pulumi.set(__self__, "ignore_vulnerability_alerts_during_read", ignore_vulnerability_alerts_during_read)
|
|
808
842
|
if is_template is not None:
|
|
@@ -865,6 +899,18 @@ class _RepositoryState:
|
|
|
865
899
|
def allow_auto_merge(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
866
900
|
pulumi.set(self, "allow_auto_merge", value)
|
|
867
901
|
|
|
902
|
+
@_builtins.property
|
|
903
|
+
@pulumi.getter(name="allowForking")
|
|
904
|
+
def allow_forking(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
905
|
+
"""
|
|
906
|
+
Configure private forking for organization owned private and internal repositories; set to `true` to enable, `false` to disable, and leave unset for the default behaviour. Configuring this requires that private forking is not being explicitly configured at the organization level.
|
|
907
|
+
"""
|
|
908
|
+
return pulumi.get(self, "allow_forking")
|
|
909
|
+
|
|
910
|
+
@allow_forking.setter
|
|
911
|
+
def allow_forking(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
912
|
+
pulumi.set(self, "allow_forking", value)
|
|
913
|
+
|
|
868
914
|
@_builtins.property
|
|
869
915
|
@pulumi.getter(name="allowMergeCommit")
|
|
870
916
|
def allow_merge_commit(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
@@ -1059,9 +1105,10 @@ class _RepositoryState:
|
|
|
1059
1105
|
|
|
1060
1106
|
@_builtins.property
|
|
1061
1107
|
@pulumi.getter(name="hasDownloads")
|
|
1108
|
+
@_utilities.deprecated("""This attribute is no longer in use, but it hasn't been removed yet. It will be removed in a future version. See https://github.com/orgs/community/discussions/102145#discussioncomment-8351756""")
|
|
1062
1109
|
def has_downloads(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
1063
1110
|
"""
|
|
1064
|
-
Set to `true` to enable the (deprecated) downloads features on the repository.
|
|
1111
|
+
(Optional) Set to `true` to enable the (deprecated) downloads features on the repository. This attribute is no longer in use, but it hasn't been removed yet. It will be removed in a future version. See [this discussion](https://github.com/orgs/community/discussions/102145#discussioncomment-8351756).
|
|
1065
1112
|
"""
|
|
1066
1113
|
return pulumi.get(self, "has_downloads")
|
|
1067
1114
|
|
|
@@ -1145,9 +1192,10 @@ class _RepositoryState:
|
|
|
1145
1192
|
|
|
1146
1193
|
@_builtins.property
|
|
1147
1194
|
@pulumi.getter(name="ignoreVulnerabilityAlertsDuringRead")
|
|
1195
|
+
@_utilities.deprecated("""This is ignored as the provider now handles lack of permissions automatically.""")
|
|
1148
1196
|
def ignore_vulnerability_alerts_during_read(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
1149
1197
|
"""
|
|
1150
|
-
|
|
1198
|
+
(Optional) - This is ignored as the provider now handles lack of permissions automatically.
|
|
1151
1199
|
"""
|
|
1152
1200
|
return pulumi.get(self, "ignore_vulnerability_alerts_during_read")
|
|
1153
1201
|
|
|
@@ -1401,7 +1449,7 @@ class _RepositoryState:
|
|
|
1401
1449
|
@pulumi.getter(name="vulnerabilityAlerts")
|
|
1402
1450
|
def vulnerability_alerts(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
1403
1451
|
"""
|
|
1404
|
-
|
|
1452
|
+
Configure [Dependabot security alerts](https://help.github.com/en/github/managing-security-vulnerabilities/about-security-alerts-for-vulnerable-dependencies) for vulnerable dependencies; set to `true` to enable, set to `false` to disable, and leave unset for the default behavior. Configuring this requires that alerts are not being explicitly configured at the organization level.
|
|
1405
1453
|
"""
|
|
1406
1454
|
return pulumi.get(self, "vulnerability_alerts")
|
|
1407
1455
|
|
|
@@ -1429,6 +1477,7 @@ class Repository(pulumi.CustomResource):
|
|
|
1429
1477
|
resource_name: str,
|
|
1430
1478
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
1431
1479
|
allow_auto_merge: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
1480
|
+
allow_forking: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
1432
1481
|
allow_merge_commit: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
1433
1482
|
allow_rebase_merge: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
1434
1483
|
allow_squash_merge: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
@@ -1527,12 +1576,13 @@ class Repository(pulumi.CustomResource):
|
|
|
1527
1576
|
Repositories can be imported using the `name`, e.g.
|
|
1528
1577
|
|
|
1529
1578
|
```sh
|
|
1530
|
-
$ pulumi import github:index/repository:Repository terraform
|
|
1579
|
+
$ pulumi import github:index/repository:Repository terraform myrepo
|
|
1531
1580
|
```
|
|
1532
1581
|
|
|
1533
1582
|
:param str resource_name: The name of the resource.
|
|
1534
1583
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
1535
1584
|
:param pulumi.Input[_builtins.bool] allow_auto_merge: Set to `true` to allow auto-merging pull requests on the repository.
|
|
1585
|
+
:param pulumi.Input[_builtins.bool] allow_forking: Configure private forking for organization owned private and internal repositories; set to `true` to enable, `false` to disable, and leave unset for the default behaviour. Configuring this requires that private forking is not being explicitly configured at the organization level.
|
|
1536
1586
|
:param pulumi.Input[_builtins.bool] allow_merge_commit: Set to `false` to disable merge commits on the repository.
|
|
1537
1587
|
:param pulumi.Input[_builtins.bool] allow_rebase_merge: Set to `false` to disable rebase merges on the repository.
|
|
1538
1588
|
:param pulumi.Input[_builtins.bool] allow_squash_merge: Set to `false` to disable squash merges on the repository.
|
|
@@ -1548,14 +1598,14 @@ class Repository(pulumi.CustomResource):
|
|
|
1548
1598
|
:param pulumi.Input[_builtins.str] fork: Set to `true` to create a fork of an existing repository. When set to `true`, both `source_owner` and `source_repo` must also be specified.
|
|
1549
1599
|
:param pulumi.Input[_builtins.str] gitignore_template: Use the [name of the template](https://github.com/github/gitignore) without the extension. For example, "Haskell".
|
|
1550
1600
|
:param pulumi.Input[_builtins.bool] has_discussions: Set to `true` to enable GitHub Discussions on the repository. Defaults to `false`.
|
|
1551
|
-
:param pulumi.Input[_builtins.bool] has_downloads: Set to `true` to enable the (deprecated) downloads features on the repository.
|
|
1601
|
+
:param pulumi.Input[_builtins.bool] has_downloads: (Optional) Set to `true` to enable the (deprecated) downloads features on the repository. This attribute is no longer in use, but it hasn't been removed yet. It will be removed in a future version. See [this discussion](https://github.com/orgs/community/discussions/102145#discussioncomment-8351756).
|
|
1552
1602
|
:param pulumi.Input[_builtins.bool] has_issues: Set to `true` to enable the GitHub Issues features
|
|
1553
1603
|
on the repository.
|
|
1554
1604
|
:param pulumi.Input[_builtins.bool] has_projects: Set to `true` to enable the GitHub Projects features on the repository. Per the GitHub [documentation](https://developer.github.com/v3/repos/#create) when in an organization that has disabled repository projects it will default to `false` and will otherwise default to `true`. If you specify `true` when it has been disabled it will return an error.
|
|
1555
1605
|
:param pulumi.Input[_builtins.bool] has_wiki: Set to `true` to enable the GitHub Wiki features on
|
|
1556
1606
|
the repository.
|
|
1557
1607
|
:param pulumi.Input[_builtins.str] homepage_url: URL of a page describing the project.
|
|
1558
|
-
:param pulumi.Input[_builtins.bool] ignore_vulnerability_alerts_during_read:
|
|
1608
|
+
:param pulumi.Input[_builtins.bool] ignore_vulnerability_alerts_during_read: (Optional) - This is ignored as the provider now handles lack of permissions automatically.
|
|
1559
1609
|
:param pulumi.Input[_builtins.bool] is_template: Set to `true` to tell GitHub that this is a template repository.
|
|
1560
1610
|
:param pulumi.Input[_builtins.str] license_template: Use the [name of the template](https://github.com/github/choosealicense.com/tree/gh-pages/_licenses) without the extension. For example, "mit" or "mpl-2.0".
|
|
1561
1611
|
:param pulumi.Input[_builtins.str] merge_commit_message: Can be `PR_BODY`, `PR_TITLE`, or `BLANK` for a default merge commit message. Applicable only if `allow_merge_commit` is `true`.
|
|
@@ -1572,7 +1622,7 @@ class Repository(pulumi.CustomResource):
|
|
|
1572
1622
|
:param pulumi.Input[Union['RepositoryTemplateArgs', 'RepositoryTemplateArgsDict']] template: Use a template repository to create this resource. See Template Repositories below for details.
|
|
1573
1623
|
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] topics: The list of topics of the repository.
|
|
1574
1624
|
:param pulumi.Input[_builtins.str] visibility: Can be `public` or `private`. If your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+, visibility can also be `internal`. The `visibility` parameter overrides the `private` parameter.
|
|
1575
|
-
:param pulumi.Input[_builtins.bool] vulnerability_alerts:
|
|
1625
|
+
:param pulumi.Input[_builtins.bool] vulnerability_alerts: Configure [Dependabot security alerts](https://help.github.com/en/github/managing-security-vulnerabilities/about-security-alerts-for-vulnerable-dependencies) for vulnerable dependencies; set to `true` to enable, set to `false` to disable, and leave unset for the default behavior. Configuring this requires that alerts are not being explicitly configured at the organization level.
|
|
1576
1626
|
:param pulumi.Input[_builtins.bool] web_commit_signoff_required: Require contributors to sign off on web-based commits. See more [here](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/managing-repository-settings/managing-the-commit-signoff-policy-for-your-repository). Defaults to `false`.
|
|
1577
1627
|
"""
|
|
1578
1628
|
...
|
|
@@ -1641,7 +1691,7 @@ class Repository(pulumi.CustomResource):
|
|
|
1641
1691
|
Repositories can be imported using the `name`, e.g.
|
|
1642
1692
|
|
|
1643
1693
|
```sh
|
|
1644
|
-
$ pulumi import github:index/repository:Repository terraform
|
|
1694
|
+
$ pulumi import github:index/repository:Repository terraform myrepo
|
|
1645
1695
|
```
|
|
1646
1696
|
|
|
1647
1697
|
:param str resource_name: The name of the resource.
|
|
@@ -1660,6 +1710,7 @@ class Repository(pulumi.CustomResource):
|
|
|
1660
1710
|
resource_name: str,
|
|
1661
1711
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
1662
1712
|
allow_auto_merge: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
1713
|
+
allow_forking: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
1663
1714
|
allow_merge_commit: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
1664
1715
|
allow_rebase_merge: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
1665
1716
|
allow_squash_merge: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
@@ -1707,6 +1758,7 @@ class Repository(pulumi.CustomResource):
|
|
|
1707
1758
|
__props__ = RepositoryArgs.__new__(RepositoryArgs)
|
|
1708
1759
|
|
|
1709
1760
|
__props__.__dict__["allow_auto_merge"] = allow_auto_merge
|
|
1761
|
+
__props__.__dict__["allow_forking"] = allow_forking
|
|
1710
1762
|
__props__.__dict__["allow_merge_commit"] = allow_merge_commit
|
|
1711
1763
|
__props__.__dict__["allow_rebase_merge"] = allow_rebase_merge
|
|
1712
1764
|
__props__.__dict__["allow_squash_merge"] = allow_squash_merge
|
|
@@ -1764,6 +1816,7 @@ class Repository(pulumi.CustomResource):
|
|
|
1764
1816
|
id: pulumi.Input[str],
|
|
1765
1817
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
1766
1818
|
allow_auto_merge: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
1819
|
+
allow_forking: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
1767
1820
|
allow_merge_commit: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
1768
1821
|
allow_rebase_merge: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
1769
1822
|
allow_squash_merge: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
@@ -1818,6 +1871,7 @@ class Repository(pulumi.CustomResource):
|
|
|
1818
1871
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
1819
1872
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
1820
1873
|
:param pulumi.Input[_builtins.bool] allow_auto_merge: Set to `true` to allow auto-merging pull requests on the repository.
|
|
1874
|
+
:param pulumi.Input[_builtins.bool] allow_forking: Configure private forking for organization owned private and internal repositories; set to `true` to enable, `false` to disable, and leave unset for the default behaviour. Configuring this requires that private forking is not being explicitly configured at the organization level.
|
|
1821
1875
|
:param pulumi.Input[_builtins.bool] allow_merge_commit: Set to `false` to disable merge commits on the repository.
|
|
1822
1876
|
:param pulumi.Input[_builtins.bool] allow_rebase_merge: Set to `false` to disable rebase merges on the repository.
|
|
1823
1877
|
:param pulumi.Input[_builtins.bool] allow_squash_merge: Set to `false` to disable squash merges on the repository.
|
|
@@ -1835,7 +1889,7 @@ class Repository(pulumi.CustomResource):
|
|
|
1835
1889
|
:param pulumi.Input[_builtins.str] git_clone_url: URL that can be provided to `git clone` to clone the repository anonymously via the git protocol.
|
|
1836
1890
|
:param pulumi.Input[_builtins.str] gitignore_template: Use the [name of the template](https://github.com/github/gitignore) without the extension. For example, "Haskell".
|
|
1837
1891
|
:param pulumi.Input[_builtins.bool] has_discussions: Set to `true` to enable GitHub Discussions on the repository. Defaults to `false`.
|
|
1838
|
-
:param pulumi.Input[_builtins.bool] has_downloads: Set to `true` to enable the (deprecated) downloads features on the repository.
|
|
1892
|
+
:param pulumi.Input[_builtins.bool] has_downloads: (Optional) Set to `true` to enable the (deprecated) downloads features on the repository. This attribute is no longer in use, but it hasn't been removed yet. It will be removed in a future version. See [this discussion](https://github.com/orgs/community/discussions/102145#discussioncomment-8351756).
|
|
1839
1893
|
:param pulumi.Input[_builtins.bool] has_issues: Set to `true` to enable the GitHub Issues features
|
|
1840
1894
|
on the repository.
|
|
1841
1895
|
:param pulumi.Input[_builtins.bool] has_projects: Set to `true` to enable the GitHub Projects features on the repository. Per the GitHub [documentation](https://developer.github.com/v3/repos/#create) when in an organization that has disabled repository projects it will default to `false` and will otherwise default to `true`. If you specify `true` when it has been disabled it will return an error.
|
|
@@ -1844,7 +1898,7 @@ class Repository(pulumi.CustomResource):
|
|
|
1844
1898
|
:param pulumi.Input[_builtins.str] homepage_url: URL of a page describing the project.
|
|
1845
1899
|
:param pulumi.Input[_builtins.str] html_url: The absolute URL (including scheme) of the rendered GitHub Pages site e.g. `https://username.github.io`.
|
|
1846
1900
|
:param pulumi.Input[_builtins.str] http_clone_url: URL that can be provided to `git clone` to clone the repository via HTTPS.
|
|
1847
|
-
:param pulumi.Input[_builtins.bool] ignore_vulnerability_alerts_during_read:
|
|
1901
|
+
:param pulumi.Input[_builtins.bool] ignore_vulnerability_alerts_during_read: (Optional) - This is ignored as the provider now handles lack of permissions automatically.
|
|
1848
1902
|
:param pulumi.Input[_builtins.bool] is_template: Set to `true` to tell GitHub that this is a template repository.
|
|
1849
1903
|
:param pulumi.Input[_builtins.str] license_template: Use the [name of the template](https://github.com/github/choosealicense.com/tree/gh-pages/_licenses) without the extension. For example, "mit" or "mpl-2.0".
|
|
1850
1904
|
:param pulumi.Input[_builtins.str] merge_commit_message: Can be `PR_BODY`, `PR_TITLE`, or `BLANK` for a default merge commit message. Applicable only if `allow_merge_commit` is `true`.
|
|
@@ -1866,7 +1920,7 @@ class Repository(pulumi.CustomResource):
|
|
|
1866
1920
|
:param pulumi.Input[Union['RepositoryTemplateArgs', 'RepositoryTemplateArgsDict']] template: Use a template repository to create this resource. See Template Repositories below for details.
|
|
1867
1921
|
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] topics: The list of topics of the repository.
|
|
1868
1922
|
:param pulumi.Input[_builtins.str] visibility: Can be `public` or `private`. If your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+, visibility can also be `internal`. The `visibility` parameter overrides the `private` parameter.
|
|
1869
|
-
:param pulumi.Input[_builtins.bool] vulnerability_alerts:
|
|
1923
|
+
:param pulumi.Input[_builtins.bool] vulnerability_alerts: Configure [Dependabot security alerts](https://help.github.com/en/github/managing-security-vulnerabilities/about-security-alerts-for-vulnerable-dependencies) for vulnerable dependencies; set to `true` to enable, set to `false` to disable, and leave unset for the default behavior. Configuring this requires that alerts are not being explicitly configured at the organization level.
|
|
1870
1924
|
:param pulumi.Input[_builtins.bool] web_commit_signoff_required: Require contributors to sign off on web-based commits. See more [here](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/managing-repository-settings/managing-the-commit-signoff-policy-for-your-repository). Defaults to `false`.
|
|
1871
1925
|
"""
|
|
1872
1926
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
@@ -1874,6 +1928,7 @@ class Repository(pulumi.CustomResource):
|
|
|
1874
1928
|
__props__ = _RepositoryState.__new__(_RepositoryState)
|
|
1875
1929
|
|
|
1876
1930
|
__props__.__dict__["allow_auto_merge"] = allow_auto_merge
|
|
1931
|
+
__props__.__dict__["allow_forking"] = allow_forking
|
|
1877
1932
|
__props__.__dict__["allow_merge_commit"] = allow_merge_commit
|
|
1878
1933
|
__props__.__dict__["allow_rebase_merge"] = allow_rebase_merge
|
|
1879
1934
|
__props__.__dict__["allow_squash_merge"] = allow_squash_merge
|
|
@@ -1930,6 +1985,14 @@ class Repository(pulumi.CustomResource):
|
|
|
1930
1985
|
"""
|
|
1931
1986
|
return pulumi.get(self, "allow_auto_merge")
|
|
1932
1987
|
|
|
1988
|
+
@_builtins.property
|
|
1989
|
+
@pulumi.getter(name="allowForking")
|
|
1990
|
+
def allow_forking(self) -> pulumi.Output[_builtins.bool]:
|
|
1991
|
+
"""
|
|
1992
|
+
Configure private forking for organization owned private and internal repositories; set to `true` to enable, `false` to disable, and leave unset for the default behaviour. Configuring this requires that private forking is not being explicitly configured at the organization level.
|
|
1993
|
+
"""
|
|
1994
|
+
return pulumi.get(self, "allow_forking")
|
|
1995
|
+
|
|
1933
1996
|
@_builtins.property
|
|
1934
1997
|
@pulumi.getter(name="allowMergeCommit")
|
|
1935
1998
|
def allow_merge_commit(self) -> pulumi.Output[Optional[_builtins.bool]]:
|
|
@@ -2060,9 +2123,10 @@ class Repository(pulumi.CustomResource):
|
|
|
2060
2123
|
|
|
2061
2124
|
@_builtins.property
|
|
2062
2125
|
@pulumi.getter(name="hasDownloads")
|
|
2126
|
+
@_utilities.deprecated("""This attribute is no longer in use, but it hasn't been removed yet. It will be removed in a future version. See https://github.com/orgs/community/discussions/102145#discussioncomment-8351756""")
|
|
2063
2127
|
def has_downloads(self) -> pulumi.Output[Optional[_builtins.bool]]:
|
|
2064
2128
|
"""
|
|
2065
|
-
Set to `true` to enable the (deprecated) downloads features on the repository.
|
|
2129
|
+
(Optional) Set to `true` to enable the (deprecated) downloads features on the repository. This attribute is no longer in use, but it hasn't been removed yet. It will be removed in a future version. See [this discussion](https://github.com/orgs/community/discussions/102145#discussioncomment-8351756).
|
|
2066
2130
|
"""
|
|
2067
2131
|
return pulumi.get(self, "has_downloads")
|
|
2068
2132
|
|
|
@@ -2118,9 +2182,10 @@ class Repository(pulumi.CustomResource):
|
|
|
2118
2182
|
|
|
2119
2183
|
@_builtins.property
|
|
2120
2184
|
@pulumi.getter(name="ignoreVulnerabilityAlertsDuringRead")
|
|
2185
|
+
@_utilities.deprecated("""This is ignored as the provider now handles lack of permissions automatically.""")
|
|
2121
2186
|
def ignore_vulnerability_alerts_during_read(self) -> pulumi.Output[Optional[_builtins.bool]]:
|
|
2122
2187
|
"""
|
|
2123
|
-
|
|
2188
|
+
(Optional) - This is ignored as the provider now handles lack of permissions automatically.
|
|
2124
2189
|
"""
|
|
2125
2190
|
return pulumi.get(self, "ignore_vulnerability_alerts_during_read")
|
|
2126
2191
|
|
|
@@ -2290,7 +2355,7 @@ class Repository(pulumi.CustomResource):
|
|
|
2290
2355
|
@pulumi.getter(name="vulnerabilityAlerts")
|
|
2291
2356
|
def vulnerability_alerts(self) -> pulumi.Output[_builtins.bool]:
|
|
2292
2357
|
"""
|
|
2293
|
-
|
|
2358
|
+
Configure [Dependabot security alerts](https://help.github.com/en/github/managing-security-vulnerabilities/about-security-alerts-for-vulnerable-dependencies) for vulnerable dependencies; set to `true` to enable, set to `false` to disable, and leave unset for the default behavior. Configuring this requires that alerts are not being explicitly configured at the organization level.
|
|
2294
2359
|
"""
|
|
2295
2360
|
return pulumi.get(self, "vulnerability_alerts")
|
|
2296
2361
|
|
|
@@ -190,7 +190,7 @@ class RepositoryCustomProperty(pulumi.CustomResource):
|
|
|
190
190
|
|
|
191
191
|
## Import
|
|
192
192
|
|
|
193
|
-
GitHub Repository Custom Property can be imported using an ID made up of a
|
|
193
|
+
GitHub Repository Custom Property can be imported using an ID made up of a combination of the names of the organization, repository, custom property separated by a `:` character, e.g.
|
|
194
194
|
|
|
195
195
|
```sh
|
|
196
196
|
$ pulumi import github:index/repositoryCustomProperty:RepositoryCustomProperty example organization-name:repo-name:custom-property-name
|
|
@@ -232,7 +232,7 @@ class RepositoryCustomProperty(pulumi.CustomResource):
|
|
|
232
232
|
|
|
233
233
|
## Import
|
|
234
234
|
|
|
235
|
-
GitHub Repository Custom Property can be imported using an ID made up of a
|
|
235
|
+
GitHub Repository Custom Property can be imported using an ID made up of a combination of the names of the organization, repository, custom property separated by a `:` character, e.g.
|
|
236
236
|
|
|
237
237
|
```sh
|
|
238
238
|
$ pulumi import github:index/repositoryCustomProperty:RepositoryCustomProperty example organization-name:repo-name:custom-property-name
|
|
@@ -32,7 +32,7 @@ class RepositoryEnvironmentArgs:
|
|
|
32
32
|
The set of arguments for constructing a RepositoryEnvironment resource.
|
|
33
33
|
:param pulumi.Input[_builtins.str] environment: The name of the environment.
|
|
34
34
|
:param pulumi.Input[_builtins.str] repository: The repository of the environment.
|
|
35
|
-
:param pulumi.Input[_builtins.bool] can_admins_bypass: Can repository admins bypass the environment protections.
|
|
35
|
+
:param pulumi.Input[_builtins.bool] can_admins_bypass: Can repository admins bypass the environment protections. Defaults to `true`.
|
|
36
36
|
:param pulumi.Input['RepositoryEnvironmentDeploymentBranchPolicyArgs'] deployment_branch_policy: The deployment branch policy configuration
|
|
37
37
|
:param pulumi.Input[_builtins.bool] prevent_self_review: Whether or not a user who created the job is prevented from approving their own job. Defaults to `false`.
|
|
38
38
|
:param pulumi.Input[Sequence[pulumi.Input['RepositoryEnvironmentReviewerArgs']]] reviewers: The environment reviewers configuration.
|
|
@@ -79,7 +79,7 @@ class RepositoryEnvironmentArgs:
|
|
|
79
79
|
@pulumi.getter(name="canAdminsBypass")
|
|
80
80
|
def can_admins_bypass(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
81
81
|
"""
|
|
82
|
-
Can repository admins bypass the environment protections.
|
|
82
|
+
Can repository admins bypass the environment protections. Defaults to `true`.
|
|
83
83
|
"""
|
|
84
84
|
return pulumi.get(self, "can_admins_bypass")
|
|
85
85
|
|
|
@@ -148,7 +148,7 @@ class _RepositoryEnvironmentState:
|
|
|
148
148
|
wait_timer: Optional[pulumi.Input[_builtins.int]] = None):
|
|
149
149
|
"""
|
|
150
150
|
Input properties used for looking up and filtering RepositoryEnvironment resources.
|
|
151
|
-
:param pulumi.Input[_builtins.bool] can_admins_bypass: Can repository admins bypass the environment protections.
|
|
151
|
+
:param pulumi.Input[_builtins.bool] can_admins_bypass: Can repository admins bypass the environment protections. Defaults to `true`.
|
|
152
152
|
:param pulumi.Input['RepositoryEnvironmentDeploymentBranchPolicyArgs'] deployment_branch_policy: The deployment branch policy configuration
|
|
153
153
|
:param pulumi.Input[_builtins.str] environment: The name of the environment.
|
|
154
154
|
:param pulumi.Input[_builtins.bool] prevent_self_review: Whether or not a user who created the job is prevented from approving their own job. Defaults to `false`.
|
|
@@ -175,7 +175,7 @@ class _RepositoryEnvironmentState:
|
|
|
175
175
|
@pulumi.getter(name="canAdminsBypass")
|
|
176
176
|
def can_admins_bypass(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
177
177
|
"""
|
|
178
|
-
Can repository admins bypass the environment protections.
|
|
178
|
+
Can repository admins bypass the environment protections. Defaults to `true`.
|
|
179
179
|
"""
|
|
180
180
|
return pulumi.get(self, "can_admins_bypass")
|
|
181
181
|
|
|
@@ -298,15 +298,15 @@ class RepositoryEnvironment(pulumi.CustomResource):
|
|
|
298
298
|
|
|
299
299
|
## Import
|
|
300
300
|
|
|
301
|
-
|
|
301
|
+
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 `:`.
|
|
302
302
|
|
|
303
303
|
```sh
|
|
304
|
-
$ pulumi import github:index/repositoryEnvironment:RepositoryEnvironment
|
|
304
|
+
$ pulumi import github:index/repositoryEnvironment:RepositoryEnvironment example myrepo:myenv
|
|
305
305
|
```
|
|
306
306
|
|
|
307
307
|
:param str resource_name: The name of the resource.
|
|
308
308
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
309
|
-
:param pulumi.Input[_builtins.bool] can_admins_bypass: Can repository admins bypass the environment protections.
|
|
309
|
+
:param pulumi.Input[_builtins.bool] can_admins_bypass: Can repository admins bypass the environment protections. Defaults to `true`.
|
|
310
310
|
:param pulumi.Input[Union['RepositoryEnvironmentDeploymentBranchPolicyArgs', 'RepositoryEnvironmentDeploymentBranchPolicyArgsDict']] deployment_branch_policy: The deployment branch policy configuration
|
|
311
311
|
:param pulumi.Input[_builtins.str] environment: The name of the environment.
|
|
312
312
|
:param pulumi.Input[_builtins.bool] prevent_self_review: Whether or not a user who created the job is prevented from approving their own job. Defaults to `false`.
|
|
@@ -348,10 +348,10 @@ class RepositoryEnvironment(pulumi.CustomResource):
|
|
|
348
348
|
|
|
349
349
|
## Import
|
|
350
350
|
|
|
351
|
-
|
|
351
|
+
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 `:`.
|
|
352
352
|
|
|
353
353
|
```sh
|
|
354
|
-
$ pulumi import github:index/repositoryEnvironment:RepositoryEnvironment
|
|
354
|
+
$ pulumi import github:index/repositoryEnvironment:RepositoryEnvironment example myrepo:myenv
|
|
355
355
|
```
|
|
356
356
|
|
|
357
357
|
:param str resource_name: The name of the resource.
|
|
@@ -420,7 +420,7 @@ class RepositoryEnvironment(pulumi.CustomResource):
|
|
|
420
420
|
:param str resource_name: The unique name of the resulting resource.
|
|
421
421
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
422
422
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
423
|
-
:param pulumi.Input[_builtins.bool] can_admins_bypass: Can repository admins bypass the environment protections.
|
|
423
|
+
:param pulumi.Input[_builtins.bool] can_admins_bypass: Can repository admins bypass the environment protections. Defaults to `true`.
|
|
424
424
|
:param pulumi.Input[Union['RepositoryEnvironmentDeploymentBranchPolicyArgs', 'RepositoryEnvironmentDeploymentBranchPolicyArgsDict']] deployment_branch_policy: The deployment branch policy configuration
|
|
425
425
|
:param pulumi.Input[_builtins.str] environment: The name of the environment.
|
|
426
426
|
:param pulumi.Input[_builtins.bool] prevent_self_review: Whether or not a user who created the job is prevented from approving their own job. Defaults to `false`.
|
|
@@ -445,7 +445,7 @@ class RepositoryEnvironment(pulumi.CustomResource):
|
|
|
445
445
|
@pulumi.getter(name="canAdminsBypass")
|
|
446
446
|
def can_admins_bypass(self) -> pulumi.Output[Optional[_builtins.bool]]:
|
|
447
447
|
"""
|
|
448
|
-
Can repository admins bypass the environment protections.
|
|
448
|
+
Can repository admins bypass the environment protections. Defaults to `true`.
|
|
449
449
|
"""
|
|
450
450
|
return pulumi.get(self, "can_admins_bypass")
|
|
451
451
|
|
|
@@ -226,10 +226,10 @@ class RepositoryEnvironmentDeploymentPolicy(pulumi.CustomResource):
|
|
|
226
226
|
|
|
227
227
|
## Import
|
|
228
228
|
|
|
229
|
-
|
|
229
|
+
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 `:`.
|
|
230
230
|
|
|
231
231
|
```sh
|
|
232
|
-
$ pulumi import github:index/repositoryEnvironmentDeploymentPolicy:RepositoryEnvironmentDeploymentPolicy
|
|
232
|
+
$ pulumi import github:index/repositoryEnvironmentDeploymentPolicy:RepositoryEnvironmentDeploymentPolicy example myrepo:myenv:123456
|
|
233
233
|
```
|
|
234
234
|
|
|
235
235
|
:param str resource_name: The name of the resource.
|
|
@@ -302,10 +302,10 @@ class RepositoryEnvironmentDeploymentPolicy(pulumi.CustomResource):
|
|
|
302
302
|
|
|
303
303
|
## Import
|
|
304
304
|
|
|
305
|
-
|
|
305
|
+
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 `:`.
|
|
306
306
|
|
|
307
307
|
```sh
|
|
308
|
-
$ pulumi import github:index/repositoryEnvironmentDeploymentPolicy:RepositoryEnvironmentDeploymentPolicy
|
|
308
|
+
$ pulumi import github:index/repositoryEnvironmentDeploymentPolicy:RepositoryEnvironmentDeploymentPolicy example myrepo:myenv:123456
|
|
309
309
|
```
|
|
310
310
|
|
|
311
311
|
:param str resource_name: The name of the resource.
|