You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "betodealmeida (via GitHub)" <gi...@apache.org> on 2024/08/06 22:51:31 UTC
Re: [PR] fix: handle empty catalog when DB supports them [superset]
betodealmeida commented on code in PR #29840:
URL: https://github.com/apache/superset/pull/29840#discussion_r1706191154
##########
scripts/change_detector.py:
##########
@@ -52,7 +52,7 @@
def fetch_files_github_api(url: str): # type: ignore
"""Fetches data using GitHub API."""
req = Request(url)
- req.add_header("Authorization", f"token {GITHUB_TOKEN}")
+ req.add_header("Authorization", f"Bearer {GITHUB_TOKEN}")
Review Comment:
> Note: In most cases, you can use Authorization: Bearer or Authorization: token to pass a token. However, if you are passing a JSON web token (JWT), you must use Authorization: Bearer. [[source](https://docs.github.com/en/rest/authentication/authenticating-to-the-rest-api?apiVersion=2022-11-28#about-authentication)]
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org