-
Notifications
You must be signed in to change notification settings - Fork 806
App Auth can't create 'Internal' repos #832
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Yeah, we restrict that. We don't want to risk having users with 'admin' access to a repository inadvertently making it public. We were hoping that the app key would still be able to do this with sufficient permissions. |
Good find! Thanks, I think you're right - that should address this issue. I'll close this out & reopen it if it turns out that doesn't address it. |
Can we reopen this? This is broken. I authenticate with a GH App.
resource "github_repository" "poc_repo" {
name = local.repo_name
description = "My awesome codebase"
visibility = "internal"
} ERROR: Terraform version: |
@imre-turi-cko would you mind creating a new issue that details your concerns? |
@imre-turi-cko - Did you open a new issue? I am facing the same problem. |
@imre-turi-cko I am getting the same error, except my repo is I am authenticating with a GH app, and I'm also seeing the repo get created properly after the initial fail. When rerunning the workspace I get the same error Terraform Version: |
'internal' repository creation fails when using App-based authentication.
Terraform Version
Terraform Configuration Files
Debug Output
Expected Behavior
The repo should have been successfully created as 'private' and then changed to 'internal'.
Actual Behavior
The repo was created as 'private', but then Terraform failed when attempting to change its visibility to 'internal'.
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform apply
References
Are there any other GitHub issues (open or closed) or Pull Requests that should be linked here? For example:
The text was updated successfully, but these errors were encountered: