Closed phillipshaong closed 4 months ago
Hi there @phillipshaong :wave:!
Thank you for opening an issue. Our team will triage this as soon as we can. Please take a moment to review the troubleshooting steps which lists common error messages and their resolution steps.
Did you grant the WIF identity (principalSet://...
) permissions as Workload Identity User on your service account? Example from the README:
gcloud iam service-accounts add-iam-policy-binding "my-service-account@${PROJECT_ID}.iam.gserviceaccount.com" \
--project="${PROJECT_ID}" \
--role="roles/iam.workloadIdentityUser" \
--member="principalSet://iam.googleapis.com/${WORKLOAD_IDENTITY_POOL_ID}/attribute.repository/${REPO}"
Yup, that was the one! I did it manually via the console and I realized that instead of using the service account as a resource, I had added it as a principal. Thanks!
TL;DR
I am getting "Permission 'iam.serviceAccounts.getAccessToken' denied on resource (or it may not exist)." when using 'google-github-actions/auth@v2'. I've already tried the items in the troubleshooting manual (https://github.com/google-github-actions/auth/blob/main/docs/TROUBLESHOOTING.md).
Expected behavior
Successful authentication
Observed behavior
Permission Denied.
Action YAML
Log output
Additional information