File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change
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 .
You can’t perform that action at this time.
0 commit comments