Skip to content

Commit 02517b5

Browse files
authored
Update README.md
1 parent fecf3c6 commit 02517b5

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ unformatted to avoid JSON decoding errors.
7474
I'll not get into the [details of writing a workflow](https://docs.github.com/en/actions/writing-workflows/about-workflows).
7575
You can [see my full example](https://github.com/gee-community/ee-initialize-github-actions/blob/main/.github/workflows/ee-test-with-oauth2.yml),
7676
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)).
7878

7979
```yml
8080
- name: Run Earth Engine Script
@@ -86,12 +86,13 @@ in the step that runs my Earth Engine script** (ee-test-with-oauth2.py).
8686
8787
## 4. Initialize to Earth Engine in your test file
8888
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
9091
from the credentials info in the secret**. The credentials info is fetched from
9192
the environment variable we set previously, and then arranged as arguments
9293
to `google.oauth2.credentials.Credentials` whose result is given to `ee.Initialize()`.
9394

94-
```
95+
```python
9596
import ee
9697
import json
9798
import os

0 commit comments

Comments
 (0)