aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/utilities/githubinfo.py
diff options
context:
space:
mode:
authorGravatar shtlrs <[email protected]>2023-05-05 22:08:09 +0100
committerGravatar shtlrs <[email protected]>2023-05-06 13:20:47 +0100
commit12be2fdf771a1a25c2c135516746002154135dbf (patch)
tree108cbc37c7a2f89ae7cffeca4165ebc444b75317 /bot/exts/utilities/githubinfo.py
parentupdate env variables in "Attempt bot setup" stage (diff)
use `SecretStr` for all secrets
Diffstat (limited to 'bot/exts/utilities/githubinfo.py')
-rw-r--r--bot/exts/utilities/githubinfo.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/utilities/githubinfo.py b/bot/exts/utilities/githubinfo.py
index a7979718..4e008e9f 100644
--- a/bot/exts/utilities/githubinfo.py
+++ b/bot/exts/utilities/githubinfo.py
@@ -26,7 +26,7 @@ ISSUE_ENDPOINT = "https://api.github.com/repos/{user}/{repository}/issues/{numbe
PR_ENDPOINT = "https://api.github.com/repos/{user}/{repository}/pulls/{number}"
if Tokens.github:
- REQUEST_HEADERS["Authorization"] = f"token {Tokens.github}"
+ REQUEST_HEADERS["Authorization"] = f"token {Tokens.github.get_secret_value()}"
CODE_BLOCK_RE = re.compile(
r"^`([^`\n]+)`" # Inline codeblock