We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 018d891 commit 57d847aCopy full SHA for 57d847a
Dockerfile
@@ -1,4 +1,4 @@
1
-FROM python:3.6
+FROM python:3.7-alpine
2
RUN pip install requests
3
ADD statuspage.py statuspage.py
4
CMD ["python", "statuspage.py"]
statuspage.py
@@ -19,11 +19,9 @@
19
20
def get_rate_limit():
21
"""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
- }
+ r = requests.get(
+ 'https://api.github.com/rate_limit',
+ auth=(github_id, github_secret)
27
)
28
r.raise_for_status()
29
resp = r.json()
0 commit comments