valid github signature check

This commit is contained in:
Klemek
2019-06-20 20:19:03 +02:00
parent c1c8672380
commit 0f5b3f138d
6 changed files with 45 additions and 16 deletions
+3 -3
View File
@@ -63,14 +63,14 @@ Create a webhook on your git source (On GitHub, in the `Settings/Webhooks` part
Here are the steps for Github, if you use another platform adapt it your way (header format on the config) :
* Create a password or random secret
* Calculate it's SHA1
* Edit your configuration to add webhook info
```json
{
...
"webhook": {
"secret_value": "sha1=<value>",
"secret_header": "X-Hub-Signature"
"endpoint": "/webhook",
"secret": "sha1=<value>",
"signature_header": "X-Hub-Signature"
},
...
}