zulip/zerver/webhooks/github
Aditya Kumar Kasaudhan d1ff871523 webhooks: Support filtering GitHub activity from private repositories.
Currently, the GitHub webhook sends activity from both public and private
repositories, which could lead to unintended disclosure of sensitive
information from private repositories.

This commit introduces a ignore_private_repositories parameter to the
webhook URL. When set to true, the webhook ignore processing activity from
private repositories, ensuring that such activities are not posted to
Zulip streams. By default, if the parameter is omitted or set to false,
activities from both public and private repositories are processed
normally. This provides users with the flexibility to control the
visibility of private repository activities without altering the default
behavior.

More importantly, this introduces a cleaner mechanism for individual
incoming webhooks to declare support for settings not common to all
webhook integrations.

Fixes #31638.
2024-10-31 10:40:28 -07:00
..
fixtures webhooks: Support filtering GitHub activity from private repositories. 2024-10-31 10:40:28 -07:00
__init__.py
doc.md integration-docs: Update Github for new doc format. 2024-07-08 16:28:24 -07:00
githubsponsors.md integration-docs: Update Github Sponsors for new doc format. 2024-07-08 16:28:24 -07:00
tests.py webhooks: Support filtering GitHub activity from private repositories. 2024-10-31 10:40:28 -07:00
view.py webhooks: Support filtering GitHub activity from private repositories. 2024-10-31 10:40:28 -07:00