mirror of
https://github.com/tubearchivist/tubearchivist-server.git
synced 2024-11-13 23:50:12 +00:00
put webhook url in env vars
This commit is contained in:
parent
d8c3f62055
commit
1de5f5bc86
2
env/tubearchivist.sample.env
vendored
2
env/tubearchivist.sample.env
vendored
@ -3,6 +3,8 @@ ROADMAP_HOOK_URL=https://discordapp.com/api/webhooks/000000000000000000/aaaaaaaa
|
||||
DOCKER_UNSTABLE_HOOK_URL=https://discordapp.com/api/webhooks/000000000000000000/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
|
||||
GITHUB_RELEASE_HOOK_URL=https://discord.com/api/webhooks/000000000000000000/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
|
||||
NOTIFICATION_TEST_HOOK_URL=https://discord.com/api/webhooks/000000000000000000/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
|
||||
GITHUB_TA_HOOK_URL=https://discord.com/api/webhooks/000000000000000000/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
|
||||
GITHUB_COMPANION_HOOK_URL=https://discord.com/api/webhooks/000000000000000000/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
|
||||
|
||||
GH_HOOK_SECRET=xxxxxxxxxxxxxxxxxxxxxxxx
|
||||
DOCKER_HOOK_SECRET=yyyyyyyyyyyyyyyyyyyyyyyy
|
@ -5,6 +5,7 @@ import json
|
||||
from datetime import datetime
|
||||
from hashlib import sha256, md5
|
||||
from hmac import HMAC, compare_digest
|
||||
from os import environ
|
||||
|
||||
from bs4 import BeautifulSoup
|
||||
import requests
|
||||
@ -15,8 +16,8 @@ from src.webhook_base import WebhookBase
|
||||
|
||||
|
||||
HOOK_URL = {
|
||||
"tubearchivist/browser-extension": "https://discord.com/api/webhooks/1048456394979946547/OskydG_dgtcHxPVn-khyKDy_qu9J4UbUo9ipGSKVaS6CzvuMRkuPq3aXpIYds2Zuhr3A",
|
||||
"tubearchivist/tubearchivist": "https://discord.com/api/webhooks/1048906149463867472/QREIvEFxeUzflxvX6W-cpbE47-HwcYcuA3hFzcMhljLpTzuBd2LvWvrL-g7-4v6JpDIu",
|
||||
"tubearchivist/browser-extension": environ.get("GITHUB_COMPANION_HOOK_URL"),
|
||||
"tubearchivist/tubearchivist": environ.get("GITHUB_TA_HOOK_URL"),
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user