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 "AppendPayload": true
}, },
"Secret": "THISISVERYSECRET", "Secret": "THISISVERYSECRET",
"SignatureHeader": "X-Hub-Signature", "SignatureHeader": "X-Gitea-Signature",
"SignaturePrefix": "sha256=",
"Tests": [ "Tests": [
{ {
"Program": "echo", "Program": "echo",
"Arguments": [ "test" ] "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 "AppendPayload": true
}, },
"Secret": "THISISVERYSECRET", "Secret": "THISISVERYSECRET",
"SignatureHeader": "X-Hub-Signature", "SignatureHeader": "X-Gitea-Signature",
"SignaturePrefix": "sha256=",
"Tests": [ "Tests": [
{ {
"Program": "echo", "Program": "echo",
"Arguments": [ "test" ] "Arguments": [ "test" ]
} }
] ]
},
"fails_tests": {
"Script": {
"Program": "./example.sh",
"AppendPayload": true
},
"Secret": "who_cares",
"SignatureHeader": "X-Hub-Signature-256",
"SignaturePrefix": "sha256=",
"Tests": [
{
"Program": "false",
"Arguments": []
}
]
} }
} }
} }