From 0dee7541e7b33aa0e316b7abb1cdcfa8d6ba7672 Mon Sep 17 00:00:00 2001 From: Julien Malka Date: Sun, 22 Jan 2023 00:06:29 +0100 Subject: [PATCH] Secured buildbot change endpoint --- modules/buildbot/master.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/buildbot/master.py b/modules/buildbot/master.py index d288dc1..0e82e03 100644 --- a/modules/buildbot/master.py +++ b/modules/buildbot/master.py @@ -150,7 +150,7 @@ def build_config() -> dict[str, Any]: util.AnyControlEndpointMatcher(role="admins"), ], ), - "plugins": dict(waterfall_view={}, console_view={}, grid_view={}, badges ={ + "plugins": dict(console_view={}, badges ={ "left_pad" : 5, "left_text": "Build Status", # text on the left part of the image "left_color": "#555", # color of the left part of the image @@ -173,8 +173,8 @@ def build_config() -> dict[str, Any]: }), "change_hook_dialects": dict( github={ - "secret": "hello", - "strict": False, + "secret": str(read_secret_file("github-webhook-secret")).strip(), + "strict": True, "token": github_api_token, "github_property_whitelist": "*", }