update example config

This commit is contained in:
Akbar Rahman 2021-08-06 14:54:36 +01:00
parent 4c8cb33c59
commit f2b2ac9368
2 changed files with 32 additions and 4 deletions

View File

@ -7,14 +7,28 @@
"AppendPayload": true
},
"Secret": "THISISVERYSECRET",
"SignatureHeader": "X-Hub-Signature",
"SignaturePrefix": "sha256=",
"SignatureHeader": "X-Gitea-Signature",
"Tests": [
{
"Program": "echo",
"Arguments": [ "test" ]
}
]
},
"fails_tests": {
"Script": {
"Program": "./example.sh",
"AppendPayload": true
},
"Secret": "who_cares",
"SignatureHeader": "X-Hub-Signature-256",
"SignaturePrefix": "sha256=",
"Tests": [
{
"Program": "false",
"Arguments": []
}
]
}
}
}

View File

@ -64,14 +64,28 @@ An example config file can be found [here](./config.json) but also below:
"AppendPayload": true
},
"Secret": "THISISVERYSECRET",
"SignatureHeader": "X-Hub-Signature",
"SignaturePrefix": "sha256=",
"SignatureHeader": "X-Gitea-Signature",
"Tests": [
{
"Program": "echo",
"Arguments": [ "test" ]
}
]
},
"fails_tests": {
"Script": {
"Program": "./example.sh",
"AppendPayload": true
},
"Secret": "who_cares",
"SignatureHeader": "X-Hub-Signature-256",
"SignaturePrefix": "sha256=",
"Tests": [
{
"Program": "false",
"Arguments": []
}
]
}
}
}