Skip to content

Commit 57d847a

Browse files
committed
update statuspage
3.7-alpine and use basic auth
1 parent 018d891 commit 57d847a

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.6
1+
FROM python:3.7-alpine
22
RUN pip install requests
33
ADD statuspage.py statuspage.py
44
CMD ["python", "statuspage.py"]

statuspage.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,9 @@
1919

2020
def get_rate_limit():
2121
"""Retrieve the current GitHub rate limit for our auth tokens"""
22-
r = requests.get('https://api.github.com/rate_limit',
23-
params={
24-
'client_id': github_id,
25-
'client_secret': github_secret,
26-
}
22+
r = requests.get(
23+
'https://api.github.com/rate_limit',
24+
auth=(github_id, github_secret)
2725
)
2826
r.raise_for_status()
2927
resp = r.json()

0 commit comments

Comments
 (0)