Skip to content

Commit cff22ad

Browse files
authored
fix(symbolicator): check source credentials and not the credential token (#92024)
This PR fixes a bug where it would always report that no token can be obtained. The reason is that no refresh is being performed on the `source_credentials`, so it does not have a `token` property yet and the check will always return `False`.
1 parent 2344c81 commit cff22ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sentry/lang/native/sources.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ def get_gcp_token(client_email):
616616
# Fetch the regular credentials for GCP
617617
source_credentials, _ = google.auth.default()
618618

619-
if source_credentials.token is None:
619+
if source_credentials is None:
620620
return None
621621

622622
# Impersonate the service account to give the token for symbolicator a proper scope

0 commit comments

Comments
 (0)