Skip to content

Commit 7aadffa

Browse files
committed
Added a guide to allow workload identity federation in other repos
1 parent 8c219c6 commit 7aadffa

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/README.md

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# CI Tips and Tricks
2+
3+
## Adding a new repository to Google Cloud workload identity
4+
5+
We are using a separate Google Cloud project for GitHub Actions workload
6+
federation, if you need `auth` action to work from a new repo - it needs to be
7+
added to the principal set of a GitHub Actions service account:
8+
9+
```
10+
export REPO="firezone/firezone"
11+
gcloud iam service-accounts add-iam-policy-binding "[email protected]" \
12+
--project="github-iam-387915" \
13+
--role="roles/iam.workloadIdentityUser" \
14+
--member="principalSet://iam.googleapis.com/projects/397012414171/locations/global/workloadIdentityPools/github-actions-pool/attribute.repository/${REPO}"
15+
```
16+
17+
for more details see https://github.com/google-github-actions/auth.

0 commit comments

Comments
 (0)