-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add signatures to webhooks #6428
Add signatures to webhooks #6428
Conversation
@@ -657,11 +662,23 @@ func prepareWebhook(e Engine, w *Webhook, repo *Repository, event HookEventType, | |||
payloader = p | |||
} | |||
|
|||
var signature string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: On L611 the secret is still added to the payload. This is being kept that was as to not be a breaking change.
Codecov Report
@@ Coverage Diff @@
## master #6428 +/- ##
==========================================
- Coverage 38.85% 38.85% -0.01%
==========================================
Files 365 365
Lines 51401 51413 +12
==========================================
+ Hits 19974 19978 +4
- Misses 28559 28566 +7
- Partials 2868 2869 +1
Continue to review full report at Codecov.
|
Fix #3901
Code is based on PR from Gogs (PR 3692)