Skip to content

Commit

Permalink
dropping the API keys to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
captn3m0 committed Apr 12, 2024
1 parent 9c730e5 commit 39d84c2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ jobs:
pip install -r requirements.txt
- name: Fetch updates
run: rm out/* && make all && make db
env:
MELLO_JWT_TOKEN: ${{ secrets.MELLO_JWT_TOKEN }}
ZOMATO_PUBLIC_API_KEY: ${{ secrets.ZOMATO_PUBLIC_API_KEY }}

- name: Upload Artifacts
uses: actions/upload-artifact@v4
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ _site
vendor
tmp.py
tmp
events.db
events.db
.env
3 changes: 2 additions & 1 deletion src/zomato.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
import datefinder
import datetime
from urllib.parse import urlparse, parse_qs
import os

# Public Key, not-logged-in API key
ZOMATO_API_KEY = "239899c6817b488ba5d82bbd49676a76"
ZOMATO_API_KEY = os.environ.get('ZOMATO_PUBLIC_API_KEY')
def fetch_data(url, body):
conn = http.client.HTTPSConnection("api.zomato.com")

Expand Down

0 comments on commit 39d84c2

Please sign in to comment.