Skip to content

Commit 9152d0f

Browse files
committed
Mark vulnerability_alerts in github_repository as deprecated
Signed-off-by: Timo Sand <[email protected]>
1 parent e4ccf4f commit 9152d0f

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

github/resource_github_repository.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,12 +400,13 @@ func resourceGithubRepository() *schema.Resource {
400400
Optional: true,
401401
Computed: true,
402402
Description: "Set to 'true' to enable security alerts for vulnerable dependencies. Enabling requires alerts to be enabled on the owner level. (Note for importing: GitHub enables the alerts on all repos by default). Note that vulnerability alerts have not been successfully tested on any GitHub Enterprise instance and may be unavailable in those settings.",
403+
Deprecated: "Use the github_repository_vulnerability_alerts resource instead. This field will be removed in a future version.",
403404
},
404405
"ignore_vulnerability_alerts_during_read": {
405406
Type: schema.TypeBool,
406407
Optional: true,
407408
Default: false,
408-
Deprecated: "This is ignored as the provider now handles lack of permissions automatically.",
409+
Deprecated: "This is ignored as the provider now handles lack of permissions automatically. This field will be removed in a future version.",
409410
},
410411
"full_name": {
411412
Type: schema.TypeString,

website/docs/r/repository.html.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,9 @@ initial repository creation and create the target branch inside of the repositor
140140

141141
* `template` - (Optional) Use a template repository to create this resource. See [Template Repositories](#template-repositories) below for details.
142142

143-
* `vulnerability_alerts` - (Optional) 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.
143+
* `vulnerability_alerts` - (Optional) (**DEPRECATED**) 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. This field will be removed in a future version. Use the `github_repository_vulnerability_alerts` resource instead.
144144

145-
* `ignore_vulnerability_alerts_during_read` (**DEPRECATED**) (Optional) - This is ignored as the provider now handles lack of permissions automatically.
145+
* `ignore_vulnerability_alerts_during_read` (**DEPRECATED**) (Optional) - This is ignored as the provider now handles lack of permissions automatically. This field will be removed in a future version.
146146

147147
* `allow_update_branch` (Optional) - Set to `true` to always suggest updating pull request branches.
148148

0 commit comments

Comments
 (0)