Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use service account for CI #56

Merged
merged 3 commits into from
Jan 29, 2025
Merged

Use service account for CI #56

merged 3 commits into from
Jan 29, 2025

Conversation

aazuspan
Copy link
Owner

Related issue

Description

As of earthengine-api==1.5.0, ee.Initialize requires a project. I could have continued using the persistent token along with a project ID, but a service account should provide more control.

Note that the service account needs two roles to run tests:

  • Earth Engine Resource Writer
  • Service Usage Consumer

Local tests will still rely on user's persistent credentials, to allow contributors to run tests.

This is a quick fix to get CI back up and running, but I should consider switching to workload identity federation.

Checklist

  • I have updated the CHANGELOG with any added features, changes, fixes, or removals.

@aazuspan aazuspan self-assigned this Jan 29, 2025
@aazuspan aazuspan merged commit eecc5d9 into main Jan 29, 2025
6 checks passed
@aazuspan aazuspan deleted the service-account branch January 29, 2025 22:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant