google-github-actions / auth

A GitHub Action for authenticating to Google Cloud.
https://cloud.google.com/iam
Apache License 2.0
953 stars 195 forks source link

Error in generating cloud access token #189

Closed SPCSEKOL closed 2 years ago

SPCSEKOL commented 2 years ago

Hi All, I have followed the workload identity federation based authentication approach to authenticate my gcp account but, I am getting below error:

Error: google-github-actions/auth failed with: retry function failed with 0 attempts: failed to generate Google Cloud access token for ***: {
  "error": {
    "code": 403,
    "message": "The caller does not have permission",
    "status": "PERMISSION_DENIED"
  }
}

https://github.com/SPCSEKOL/gcp-boot-demo/runs/6642437534?check_suite_focus=true

Please check.

sethvargo commented 2 years ago

Hi @SPCSEKOL

Thank you for opening an issue. Please follow the troubleshooting steps. As noted in the troubleshooting guide, the most common reason for this error is misconfigured attribute mappings.

If you are unable to resolve the issue after the troubleshooting steps, please open a new issue and use one of our issue templates. This helps us collect the required information to try and reproduce the issue.