Set up a GitHub webhook to scan every push automatically.
https://github.com/YOU/REPO/settings/hooks
Payload URL:
https://app.safepush.serghini.me/webhook
Content type: application/json
Secret: 161fc3fa68ae91c3d2e4f536272e12c5bb9866c8138a4afaa4322ebab9f26089
Events: Just the push event
curl -X POST https://app.safepush.serghini.me/webhook \
-H 'x-github-event: ping' \
-H 'content-type: application/json' \
-d '{"zen":"test"}'
You should get {"message":"pong"}
Already have a token? Scan all your repos:
curl -X POST https://app.safepush.serghini.me/scan-installations \ -H 'authorization: Bearer YOUR_GITHUB_TOKEN'