You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for opening an issue. Please note that we try to keep the Terraform issue tracker reserved for bug reports and feature requests. For general usage questions, please see: https://www.terraform.io/community.html.
Terraform Version
Run terraform -v to show the version. If you are not running the latest version of Terraform, please upgrade because your issue may have already been fixed.
If this issue appears to affect multiple resources, it may be an issue with Terraform's core, so please mention this.
Terraform Configuration Files
my tf file is a custom module and is functional when using with orgs, but when trying to operate the same config for a user account owner = 'ahmadnassri' it throws an error that branch protection is not supported for user accounts
Debug Output
Error: This resource can only be used in the context of an organization, "ahmadnassri" is a user.
on module/main.tf line 50, in resource "github_branch_protection" "branch_protection":
50: resource "github_branch_protection" branch_protection {
Expected Behavior
should allow branch protection to run on user repos
Actual Behavior
branch protection does not run for user repos
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform plan
The text was updated successfully, but these errors were encountered:
ahmadnassri
changed the title
github_branch_protection not working on user accounts
github_branch_protection not working on user repos
Oct 1, 2020
Hi there,
Thank you for opening an issue. Please note that we try to keep the Terraform issue tracker reserved for bug reports and feature requests. For general usage questions, please see: https://www.terraform.io/community.html.
Terraform Version
Run
terraform -v
to show the version. If you are not running the latest version of Terraform, please upgrade because your issue may have already been fixed.Affected Resource(s)
Please list the resources as a list, for example:
If this issue appears to affect multiple resources, it may be an issue with Terraform's core, so please mention this.
Terraform Configuration Files
my tf file is a custom module and is functional when using with orgs, but when trying to operate the same config for a user account
owner = 'ahmadnassri'
it throws an error that branch protection is not supported for user accountsDebug Output
Expected Behavior
should allow branch protection to run on user repos
Actual Behavior
branch protection does not run for user repos
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform plan
The text was updated successfully, but these errors were encountered: