Adnan Hajdarevic
154177e46a
Add documentation for SHA512 payload hash check rule.
2019-12-02 19:49:34 +01:00
Adnan Hajdarevic
d4e98281d7
Add SHA512 payload check rule.
2019-12-02 19:48:59 +01:00
Adnan Hajdarevic
ce186487f4
Format the file using go fmt
.
2019-12-02 19:03:38 +01:00
Adnan Hajdarevic
1110f82443
Add test for unsupported content type error message.
2019-12-02 19:01:20 +01:00
Adnan Hajdarevic
a99abd4e6f
Fix invalid assumption in code that multipart forms can be parsed in the same way as urlencoded forms.
...
Refactored code to use switch-case statement over the `Content-Type` header and log unsupported content types instead of silently failing.
Also made the `x-www-form-urlencoded` content type handler more specific (as opposed to the previous code which looked for `form` occurence in the value),
as we need to use different logic for multipart forms, which we'll hopefully implement soon.
The issue with multipart forms that we have to handle first is that the files are being written to temporary files, and as such, for async hooks
webhook cannot guarantee they'll be available after we close the request; that, and the fact that we don't have code that will properly serialize
and pass such Golang objects to the script, as there are several fields which might be interesting to the end user.
2019-12-02 18:49:24 +01:00
Fabrizio Destro
8728ec4786
Add help target to Makefile
2019-10-19 23:16:17 +02:00
Adnan Hajdarevic
34ae132930
Bump webhook version to 2.6.10
2019-09-24 19:45:40 +02:00
Adnan Hajdarevic
f993aaa11c
Merge branch 'master' into development
2019-09-24 19:35:31 +02:00
Adnan Hajdarević
d82e838554
Merge pull request #342 from moorereason/doc-content-type
...
Document incoming-payload-content-type hook setting
2019-09-21 11:50:46 +02:00
Cameron Moore
9c35aa070c
Document incoming-payload-content-type hook setting
...
As implemented in PR #206
2019-09-20 08:50:44 -05:00
Adnan Hajdarević
14ee68a06e
Create FUNDING.yml
2019-09-20 01:48:22 +02:00
Adnan Hajdarević
e0e1dd8ade
Delete appveyor.yml
2019-09-20 01:42:52 +02:00
Adnan Hajdarević
9852f0f0a5
Merge pull request #341 from moorereason/wintrav
...
Add Windows to Travis CI
2019-09-20 01:41:01 +02:00
Cameron Moore
2cf3f4e1a8
Add Windows to Travis CI
2019-09-19 08:42:33 -05:00
Adnan Hajdarević
1cf531b1c3
Merge pull request #339 from moorereason/StatusOK
...
Fix TestWebhook tests
2019-09-19 10:52:44 +02:00
Cameron Moore
74e55e3089
Update go versions in Travis CI
...
Test against the latest three minor releases.
2019-09-18 17:00:22 -05:00
Cameron Moore
6c77ff0a2c
Fix TestWebhook tests
...
PR #266 appears to have changed the default response code to StatusOK.
waitForServerReady() was expected a StatusNotFound response, which was
preventing all TestWebhook tests from running.
2019-09-18 16:59:11 -05:00
Adnan Hajdarević
002c332b68
Merge pull request #327 from dexpota/master
...
Fix issue with relative paths and command execution
2019-09-18 18:07:07 +02:00
Adnan Hajdarević
ffba396523
Merge pull request #337 from moorereason/iss333
...
Update GetParameter to support keys with dots
2019-09-18 18:02:25 +02:00
Cameron Moore
b016e99ea6
Update GetParameter to support keys with dots
...
Fixes #333
2019-09-13 13:10:14 -05:00
Cameron Moore
e47f9afb11
Fix failing ip-whitelist tests
2019-09-13 13:09:44 -05:00
Fabrizio Destro
d3fd9bddd9
Fix issue with relative paths and command execution
2019-08-25 20:08:39 +02:00
Adnan Hajdarević
42b72b028b
Merge pull request #319 from Htbaa/issue-313
...
Replaced fmt.Frpintf calls with fmt.Fprint when there's no formatting…
2019-06-21 22:04:12 +02:00
Christiaan Kras
c6939d57dc
Replaced fmt.Frpintf calls with fmt.Fprint when there's no formatting used
...
This fixes #313
2019-04-24 14:59:38 +02:00
Adnan Hajdarević
90f751a61d
Merge pull request #266 from aioobe/development
...
Added SuccessHttpResponseCode hook setting
2019-04-17 18:13:25 +02:00
Adnan Hajdarević
e86c2cf610
Merge branch 'development' into development
2019-04-17 18:11:12 +02:00
Adnan Hajdarević
0aa7395e21
Merge pull request #304 from johnpmitsch/travis
...
Add travis CI webhook example
2019-02-13 09:53:03 +01:00
John Mitsch
3f834f5c3d
Add travis webhook example
2019-02-12 20:51:29 -05:00
Adnan Hajdarević
5bca86cdb2
Add snap store link to the README.md
2019-02-12 10:29:39 +01:00
Adnan Hajdarević
896d1608ca
Merge pull request #297 from moorereason/iss207
...
Return errors on empty secrets during signature validations
2019-01-08 09:30:08 +01:00
Adnan Hajdarević
e5c18aa87e
Merge pull request #298 from moorereason/iss290
...
Allow multiple values for ip-whitelist
2019-01-08 09:29:32 +01:00
Cameron Moore
f056f94305
Allow multiple values for ip-whitelist
...
Allow the value of ip-whitelist to consist of multiple space-separated
addresses or CIDRs.
Updates #290
2019-01-02 16:50:23 -06:00
Cameron Moore
1a17dc83fe
Return errors on empty secrets during signature validations
...
Fixes #207
2019-01-02 16:09:27 -06:00
Adnan Hajdarević
753734428f
Merge pull request #283 from adnanh/healthcheck-route
...
Add `/` route handler to return 200 OK which can be used as a healthcheck endpoint
2018-11-17 19:03:20 +01:00
Adnan Hajdarevic
f76426e9b0
add handler for the route to be used as a healtcheck endpoint, fixes #233
2018-11-17 19:01:26 +01:00
Adnan Hajdarević
5803d5e849
Merge pull request #282 from adnanh/master
...
Backmerge
2018-11-16 18:59:25 +01:00
Adnan Hajdarević
385898b21f
Merge pull request #281 from ruliezz/patch-1
...
Update docs with a Gitea example
2018-11-16 18:58:58 +01:00
ruliezz
ce7f8d5d28
Updated with a Gitea example
2018-11-16 15:23:39 +01:00
Adnan Hajdarević
b2899d1d3e
Update README.md
2018-11-16 10:46:35 +01:00
Adnan Hajdarević
e8628cd662
Add more guides to the README
2018-11-16 10:45:37 +01:00
Adnan Hajdarević
4e1719d966
Merge pull request #278 from adnanh/add-exe-extension-to-windows-build
...
Fix Makefile to include .exe extension for windows builds
2018-11-13 21:27:24 +01:00
Adnan Hajdarevic
98f86cf044
Fix Makefile to include .exe extension for windows builds
2018-11-13 21:12:20 +01:00
Adnan Hajdarevic
fc0544e4a2
Bump version to 2.6.9
2018-11-13 21:01:42 +01:00
Adnan Hajdarević
537f5c21bc
Merge pull request #277 from ZachCheung/master
...
docs: fix link
2018-11-13 18:03:14 +01:00
Zach Cheung
a0880ab82d
docs: fix link
2018-11-13 23:30:47 +08:00
Adnan Hajdarević
5636ead921
Merge pull request #269 from alyssais/hook-def-links
...
Fix links in Hook Definition docs
2018-10-05 21:37:46 +02:00
Alyssa Ross
01e0c9e972
Fix links in Hook Definition docs
2018-10-05 11:24:36 +01:00
Andreas Lundblad
54a7190113
Forgot a rename in previous refactoring.
2018-09-17 20:41:51 +02:00
Andreas Lundblad
b65bdbbb24
Removed trailing tab
2018-09-17 20:35:51 +02:00
Andreas Lundblad
ef3f43f89f
Added SuccessHttpResponseCode handling for case when capture output is set to true.
2018-09-15 16:06:18 +02:00