{"id":15569514,"url":"https://github.com/toddrob99/webhooks","last_synced_at":"2025-09-12T15:55:37.709Z","repository":{"id":46890868,"uuid":"211382576","full_name":"toddrob99/Webhooks","owner":"toddrob99","description":"Webserver module to listen for webhooks and forward requests to a predefined function.","archived":false,"fork":false,"pushed_at":"2022-12-14T21:38:00.000Z","size":20,"stargazers_count":38,"open_issues_count":1,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-29T02:29:09.984Z","etag":null,"topics":["cherrypy","python","python3","webhook-server","webhooks-catcher"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/toddrob99.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":["toddrob99"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":["https://paypal.me/toddrob","https://cash.me/toddrob"]}},"created_at":"2019-09-27T18:49:52.000Z","updated_at":"2025-06-05T09:14:37.000Z","dependencies_parsed_at":"2023-01-29T01:15:52.848Z","dependency_job_id":null,"html_url":"https://github.com/toddrob99/Webhooks","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/toddrob99/Webhooks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toddrob99%2FWebhooks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toddrob99%2FWebhooks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toddrob99%2FWebhooks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toddrob99%2FWebhooks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/toddrob99","download_url":"https://codeload.github.com/toddrob99/Webhooks/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toddrob99%2FWebhooks/sbom","scorecard":{"id":891173,"data":{"date":"2025-08-11","repo":{"name":"github.com/toddrob99/Webhooks","commit":"730496200b368aad56aec3e5908cd7a0378f9501"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.1,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/toddrob99/Webhooks/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/toddrob99/Webhooks/release.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/toddrob99/Webhooks/release.yml/master?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Code-Review","score":1,"reason":"Found 2/13 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/release.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v1.1.0 not signed: https://api.github.com/repos/toddrob99/Webhooks/releases/50022351","Warn: release artifact v1.0.0 not signed: https://api.github.com/repos/toddrob99/Webhooks/releases/28265650","Warn: release artifact v0.0.3 not signed: https://api.github.com/repos/toddrob99/Webhooks/releases/25114515","Warn: release artifact v0.0.1 not signed: https://api.github.com/repos/toddrob99/Webhooks/releases/20830044","Warn: release artifact v1.1.0 does not have provenance: https://api.github.com/repos/toddrob99/Webhooks/releases/50022351","Warn: release artifact v1.0.0 does not have provenance: https://api.github.com/repos/toddrob99/Webhooks/releases/28265650","Warn: release artifact v0.0.3 does not have provenance: https://api.github.com/repos/toddrob99/Webhooks/releases/25114515","Warn: release artifact v0.0.1 does not have provenance: https://api.github.com/repos/toddrob99/Webhooks/releases/20830044"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":8,"reason":"2 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2008-3 / GHSA-76x8-gg39-5jjg","Warn: Project is vulnerable to: PYSEC-2006-1 / GHSA-vx77-5pf4-c9wr"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 20 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-24T11:53:45.819Z","repository_id":46890868,"created_at":"2025-08-24T11:53:45.819Z","updated_at":"2025-08-24T11:53:45.819Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274833179,"owners_count":25358279,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-12T02:00:09.324Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cherrypy","python","python3","webhook-server","webhooks-catcher"],"created_at":"2024-10-02T17:30:30.903Z","updated_at":"2025-09-12T15:55:37.678Z","avatar_url":"https://github.com/toddrob99.png","language":"Python","readme":"# Webhook Listener\nVery basic webserver module to listen for webhooks and forward requests to predefined functions.\n\nAuthor: Todd Roberts\n\nhttps://pypi.org/project/webhook_listener/\n\nhttps://github.com/toddrob99/Webhooks\n\n## Install\n\nInstall from PyPI using pip\n\n`pip install webhook_listener`\n\n## Use\n\n* Define a function to process requests\n    * `request` parameter will be a cherrypy request object\n    * `*args` parameter will be a tuple of URL path components\n    * `**kwargs` parameter will be a dictionary of URL parameters\n    * Get the body of a `POST` request from `request.body.read` passing the length of `request.headers['Content-Length']`: `request.body.read(int(request.headers['Content-Length'])) if int(request.headers.get('Content-Length',0)) \u003e 0 else ''`\n    * Note: The body will be a byte array, and not a string. You may need to decode it to a string. For example:\n        ```\n        import json\n        body_raw = request.body.read(int(request.headers['Content-Length'])) if int(request.headers.get('Content-Length',0)) \u003e 0 else '{}'\n        body = json.loads(body_raw.decode('utf-8'))\n        ```\n* Include webhook-listener in your project\n* Create an instance of the webhook_listener.Listener class\n    * handlers = Dictionary of functions/callables for each supported HTTP method. (Example: {'POST':process_post_request, 'GET':process_get_request})\n    * port = Port for the web server to listen on (default: 8090)\n    * host = Host for the web server to listen on (default: '0.0.0.0')\n    * threadPool = Number of worker threads for the web server (default: 10)\n    * logScreen = Setting for cherrypy to log to screen (default: False)\n    * autoReload = Setting for cherrypy to auto reload when python files are changed (default: False)\n    * sslModule = Select which SSL library to use (default: 'builtin')\n    * sslCert = Path to the certificate (SSL is disabled when empty)\n    * sslPrivKey = Path to the certificate's private key (SSL is disabled when empty)\n    * sslCertChain = Path to the full certificate chain\n      see https://cherrypydocrework.readthedocs.io/deploy.html#ssl-support for more information on SSL support\n* Start the Listener\n* Keep your application running so the Listener can run in a separate thread\n\n## Example\n\n    import time\n    import webhook_listener\n\n\n    def process_post_request(request, *args, **kwargs):\n        print(\n            \"Received request:\\n\"\n            + \"Method: {}\\n\".format(request.method)\n            + \"Headers: {}\\n\".format(request.headers)\n            + \"Args (url path): {}\\n\".format(args)\n            + \"Keyword Args (url parameters): {}\\n\".format(kwargs)\n            + \"Body: {}\".format(\n                request.body.read(int(request.headers[\"Content-Length\"]))\n                if int(request.headers.get(\"Content-Length\", 0)) \u003e 0\n                else \"\"\n            )\n        )\n\n        # Process the request!\n        # ...\n\n        return\n\n\n    webhooks = webhook_listener.Listener(handlers={\"POST\": process_post_request})\n    webhooks.start()\n\n    while True:\n        print(\"Still alive...\")\n        time.sleep(300)\n","funding_links":["https://github.com/sponsors/toddrob99","https://paypal.me/toddrob","https://cash.me/toddrob"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoddrob99%2Fwebhooks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftoddrob99%2Fwebhooks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoddrob99%2Fwebhooks/lists"}