Skip to content

Manually Creating Webhook Secret

Aditya Rajput edited this page Nov 6, 2022 · 2 revisions

Normally, webhook creation will be handled by the bot upon first subscribing to a new repository. And so in normal circumstances the user won't need to manually create secrets for webhooks.

However, in case one does want to manually create a secure secret, it's advised to use a random string with high entropy. One quick way to achieve this is to run (in the terminal)

python -c "import secrets; print(secrets.token_hex(20))"
Clone this wiki locally