gcp setting up workload identity authentication with github actions
We need to setup our :- 1. Workload identity pool 2 Create a provider 3. Create service account called - 4. And setup the required attributes mapping. 5. Create our yaml pipeline I create a pool call github. And next, I create my provider and call it githubprovider. You can see my mappings here :- Run the following command to add service account to the github worker pool :- gcloud iam service-accounts add-iam-policy-binding "github-wif@project-f54eacb9-b4e5-40b9-b0c.iam.gserviceaccount.com" \ --project="project-f54eacb9-b4e5-40b9-b0c" \ --role="roles/iam.workloadIdentityUser" \ --member="principalSet://iam.googleapis.com/projects/1092851139093/locations/global/workloadIdentityPools/github/attribute.repository/kepungnzai/testrepo" And once you run this command, you will get something like this :- This is the github actions yaml that we can use the run and test our workload identity federation. # This is a basic workflow...