We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1f81af commit d0e752cCopy full SHA for d0e752c
gitconsensusservice/routes/webhooks.py
@@ -26,8 +26,8 @@ def githook():
26
abort(403)
27
28
# If secret is set use it to validate message.
29
- if 'webhook_secret' in app.config:
30
- secret = app.config.get['webhook_secret']
+ if 'GITHUB_WEBHOOK_SECRET' in app.config and app.config['GITHUB_WEBHOOK_SECRET']:
+ secret = app.config.get['GITHUB_WEBHOOK_SECRET']
31
header_signature = request.headers.get('X-Hub-Signature')
32
if header_signature is None:
33
logging.warning('Github webhook received without expected authentication signature')
settings.dist.yaml
@@ -1,3 +1,4 @@
1
DEBUG: false
2
GITHUB_PRIVATE_KEY: '/absolute/path/to/private-key.pem'
3
GITHUB_APP_ID: 0
4
+GITHUB_WEBHOOK_SECRET:
0 commit comments