Skip to content

Commit f287b3a

Browse files
committed
fix: use mapillary api key secret in github workflow
1 parent 816b1e6 commit f287b3a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/actions.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ jobs:
8080
POSTGRES_DB: postgres
8181
OSMCHA_API_KEY: ${{ secrets.OSMCHA_API_KEY }}
8282
DJANGO_SECRET_KEY: test-django-secret-key
83-
MAPILLARY_API_KEY: test-mapillary-api-key
83+
MAPILLARY_API_KEY: ${{ secrets.MAPILLARY_API_KEY }}
8484
COMPOSE_FILE: ../docker-compose.yaml:../docker-compose-ci.yaml
8585
run: |
8686
docker compose run --rm mapswipe_workers_creation python -m unittest discover --verbose --start-directory tests/unittests/

mapswipe_workers/mapswipe_workers/definitions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
OSMCHA_API_LINK = "https://osmcha.org/api/v1/"
1818
OSMCHA_API_KEY = os.environ["OSMCHA_API_KEY"]
1919
MAPILLARY_API_LINK = "https://tiles.mapillary.com/maps/vtp/mly1_computed_public/2/"
20-
MAPILLARY_API_KEY = os.getenv("MAPILLARY_API_KEY")
20+
MAPILLARY_API_KEY = os.environ("MAPILLARY_API_KEY")
2121

2222
# number of geometries for project geometries
2323
MAX_INPUT_GEOMETRIES = 10

0 commit comments

Comments
 (0)