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
Copy file name to clipboardExpand all lines: website/docs/index.html.markdown
+4-1
Original file line number
Diff line number
Diff line change
@@ -75,11 +75,13 @@ provider "github" {
75
75
### GitHub App Installation
76
76
77
77
To authenticate using a GitHub App installation, ensure that arguments in the `app_auth` block or the `GITHUB_APP_XXX` environment variables are set.
78
+
The `owner` parameter required in this situation. Leaving out will throw a `403 "Resource not accessible by integration"` error.
78
79
79
80
Some API operations may not be available when using a GitHub App installation configuration. For more information, refer to the list of [supported endpoints](https://docs.github.com/en/rest/overview/endpoints-available-for-github-apps).
80
81
81
82
```terraform
82
83
provider "github" {
84
+
owner = var.github_organization
83
85
app_auth {
84
86
id = var.app_id # or `GITHUB_APP_ID`
85
87
installation_id = var.app_installation_id # or `GITHUB_APP_INSTALLATION_ID`
@@ -92,6 +94,7 @@ provider "github" {
92
94
93
95
```terraform
94
96
provider "github" {
97
+
owner = var.github_organization
95
98
app_auth {} # When using `GITHUB_APP_XXX` environment variables
96
99
}
97
100
```
@@ -104,7 +107,7 @@ The following arguments are supported in the `provider` block:
104
107
105
108
*`base_url` - (Optional) This is the target GitHub base API endpoint. Providing a value is a requirement when working with GitHub Enterprise. It is optional to provide this value and it can also be sourced from the `GITHUB_BASE_URL` environment variable. The value must end with a slash, for example: `https://terraformtesting-ghe.westus.cloudapp.azure.com/`
106
109
107
-
*`owner` - (Optional) This is the target GitHub organization or individual user account to manage. For example, `torvalds` and `github` are valid owners. It is optional to provide this value and it can also be sourced from the `GITHUB_OWNER` environment variable. When not provided and a `token` is available, the individual user account owning the `token` will be used. When not provided and no `token` is available, the provider may not function correctly.
110
+
*`owner` - (Optional) This is the target GitHub organization or individual user account to manage. For example, `torvalds` and `github` are valid owners. It is optional to provide this value and it can also be sourced from the `GITHUB_OWNER` environment variable. When not provided and a `token` is available, the individual user account owning the `token` will be used. When not provided and no `token` is available, the provider may not function correctly. It is required in case of GitHub App Installation.
108
111
109
112
*`organization` - (Deprecated) This behaves the same as `owner`, which should be used instead. This value can also be sourced from the `GITHUB_ORGANIZATION` environment variable.
0 commit comments