Migrate [Discord] implementation to use bot token (#5346)

* Migrate [Discord] implementation to use bot token

* Rework authorization field creation

* Revert "Rework authorization field creation"

This reverts commit caf65bde5d.

* Add LGTM exclusion for hardcoded credentials
This commit is contained in:
Pierre-Yves B
2020-07-24 18:04:12 +02:00
committed by GitHub
parent c85512997c
commit 135b842946
10 changed files with 90 additions and 45 deletions

View File

@@ -105,6 +105,15 @@ self-hosted Shields installation access to private repositories hosted on bitbuc
Bitbucket badges use basic auth. Provide a username and password to give your
self-hosted Shields installation access to a private Bitbucket Server instance.
### Discord
Using a token for Dicsord is optional but will allow higher API rates.
- `DISCORD_BOT_TOKEN` (yml: `discord_bot_token`)
Register an application in the [Discord developer console](https://discord.com/developers).
To obtain a token, simply create a bot for your application.
### Drone
- `DRONE_ORIGINS` (yml: `public.services.drone.authorizedOrigins`)