You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But with actual code we got : got error: Get "https://compute.googleapis.com/compute/v1/projects/[MASKED]/aggregated/instances?alt=json&prettyPrint=false": oauth2/google: unable to generate access token: Post "https://iamcredentials.googleapis.com/v1/projects/-/serviceAccounts/[MASKED]@[MASKED]:generateAccessToken": oauth2/google/externalaccount: failed to open credential file ".tmp_test_sa_nokey_file"
The text was updated successfully, but these errors were encountered:
Describe the solution you'd like
Be able to use directly token from environment variable
GOOGLE_OAUTH_ACCESS_TOKEN
Additional context
In a case using workload identity and gitlab federation the connection is made by :
But with actual code we got :
got error: Get "https://compute.googleapis.com/compute/v1/projects/[MASKED]/aggregated/instances?alt=json&prettyPrint=false": oauth2/google: unable to generate access token: Post "https://iamcredentials.googleapis.com/v1/projects/-/serviceAccounts/[MASKED]@[MASKED]:generateAccessToken": oauth2/google/externalaccount: failed to open credential file ".tmp_test_sa_nokey_file"
The text was updated successfully, but these errors were encountered: