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
Copy file name to clipboardExpand all lines: README.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -74,7 +74,7 @@ unformatted to avoid JSON decoding errors.
74
74
I'll not get into the [details of writing a workflow](https://docs.github.com/en/actions/writing-workflows/about-workflows).
75
75
You can [see my full example](https://github.com/gee-community/ee-initialize-github-actions/blob/main/.github/workflows/ee-test-with-oauth2.yml),
76
76
but **the important part to note is that I'm setting an environmental variable from the credentials secret
77
-
in the step that runs my Earth Engine script** (ee-test-with-oauth2.py).
77
+
in the step that runs my Earth Engine script** ([ee-test-with-oauth2.py](https://github.com/gee-community/ee-initialize-github-actions/blob/main/ee-test-with-oauth2.py)).
78
78
79
79
```yml
80
80
- name: Run Earth Engine Script
@@ -86,12 +86,13 @@ in the step that runs my Earth Engine script** (ee-test-with-oauth2.py).
86
86
87
87
## 4. Initialize to Earth Engine in your test file
88
88
89
-
In the test file that makes Earth Engine requests, **construct Oauth2 credentials
89
+
In the test file ([ee-test-with-oauth2.py](https://github.com/gee-community/ee-initialize-github-actions/blob/main/ee-test-with-oauth2.py)
90
+
that makes Earth Engine requests, **construct Oauth2 credentials
90
91
from the credentials info in the secret**. The credentials info is fetched from
91
92
the environment variable we set previously, and then arranged as arguments
92
93
to `google.oauth2.credentials.Credentials` whose result is given to `ee.Initialize()`.
0 commit comments