Compare commits
No commits in common. "7eb3ef7ce43ed253d1ae02861e4ad32590a011e6" and "eca90c6a5a73f6100cec337bc91c1160de56be4c" have entirely different histories.
7eb3ef7ce4
...
eca90c6a5a
|
@ -10,8 +10,4 @@ See [the instructions](docs.md) for installing on a server.
|
|||
|
||||
## Testing
|
||||
|
||||
There isn't a test suite, but you can use the `curl_test.sh` script to manually test that your app is working correctly.
|
||||
|
||||
## Notes for Hugh
|
||||
|
||||
Remember that you adjusted this on the server to run `process.js` to merge csv changes into the topojson file!
|
||||
There isn't a test suite, but you can use the `curl_test.sh` script to manually test that your app is working correctly.
|
|
@ -51,8 +51,7 @@ async function gitPull(local_repo, res) {
|
|||
app.post(`/${process.env.APP_PATH}`, (req, res) => {
|
||||
const hmac = createHmac('sha256', process.env.SECRET)
|
||||
const local_repo = process.env.LOCAL_REPO
|
||||
// Use spacing of 2 for Forgejo, or none for GitHub
|
||||
hmac.update(JSON.stringify(req.body, null, 2))
|
||||
hmac.update(JSON.stringify(req.body))
|
||||
|
||||
// check has signature header and the decrypted signature matches
|
||||
if (req.get('X-Hub-Signature-256')) {
|
||||
|
@ -97,4 +96,4 @@ app.listen(port, () => {
|
|||
}
|
||||
|
||||
console.log(`Webhooks app listening on port ${port}`)
|
||||
})
|
||||
})
|
Loading…
Reference in a new issue