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: examples/github-actions/README.md
+5-2
Original file line number
Diff line number
Diff line change
@@ -8,19 +8,21 @@ With this example the following steps are executed and configured:
8
8
9
9
1. Create Workload Identity Pool Provider for GitHub
10
10
1. Create new service account for GitHub Actions
11
-
1. Allow login via Workload Identity Provider and limit login only from the GitHub repository
11
+
1. Allow login via Workload Identity Provider and limit login only from the GitHub organization and repository
12
12
1. Output the Workload Identity Pool Provider resource name for GitHub Actions configuration
13
13
14
14
> An example of a working GitHub Actions configuration can be found [here](https://github.com/Cyclenerd/google-workload-identity-federation/blob/master/.github/workflows/auth.yml).
15
15
16
16
<!-- BEGIN_TF_DOCS -->
17
17
18
18
```hcl
19
-
# Create Workload Identity Pool Provider for GitHub
19
+
# Create Workload Identity Pool Provider for GitHub and restrict access to GitHub organization
20
20
module "github-wif" {
21
21
source = "Cyclenerd/wif-github/google"
22
22
version = "~> 1.0.0"
23
23
project_id = var.project_id
24
+
# Restrict access to username or the name of a GitHub organization
| <aname="input_github_account_id"></a> [github\_account\_id](#input\_github\_account\_id)| The account id of the service account for GitHub Actions |`string`| n/a | yes |
59
+
| <aname="input_github_organization"></a> [github\_organization](#input\_github\_organization)| The username or the name of a GitHub organization |`string`| n/a | yes |
0 commit comments