From e5ef10186329b9cc70f79bda76389023718e9ff4 Mon Sep 17 00:00:00 2001 From: Matt French Date: Fri, 21 Feb 2025 11:42:57 +0000 Subject: [PATCH] fix: add github and azure-repos filter rules for webhook event upgrades --- .../azure-repos/accept.json.sample | 10 + .../github-com/accept.json.sample | 6 + .../github-enterprise/accept.json.sample | 6 + .../github-server-app/accept.json.sample | 6 + defaultFilters/azure-repos.json | 10 + defaultFilters/github-enterprise.json | 6 + defaultFilters/github-server-app.json | 10 + defaultFilters/github.json | 6 + test/fixtures/accept/github.json | 6 + .../runtime-rules-hotloading.test.ts.snap | 396 ++++++++++++++++++ 10 files changed, 462 insertions(+) diff --git a/client-templates/azure-repos/accept.json.sample b/client-templates/azure-repos/accept.json.sample index 8f469282c..750af48fd 100644 --- a/client-templates/azure-repos/accept.json.sample +++ b/client-templates/azure-repos/accept.json.sample @@ -414,6 +414,16 @@ "scheme": "basic", "token": "${BROKER_CLIENT_VALIDATION_BASIC_AUTH}" } + }, + { + "//": "get webhook", + "method": "GET", + "path": "/_apis/hooks/subscriptions/:subscriptionId", + "origin": "https://${AZURE_REPOS_HOST}/${AZURE_REPOS_ORG}", + "auth": { + "scheme": "basic", + "token": "${BROKER_CLIENT_VALIDATION_BASIC_AUTH}" + } } ] } diff --git a/client-templates/github-com/accept.json.sample b/client-templates/github-com/accept.json.sample index 01dd7978f..feca90f11 100644 --- a/client-templates/github-com/accept.json.sample +++ b/client-templates/github-com/accept.json.sample @@ -2142,6 +2142,12 @@ "method": "PATCH", "path": "/repos/:name/:repo/hooks/:id/config", "origin": "https://${GITHUB_TOKEN}@${GITHUB_API}" + }, + { + "//": "allow webhooks to be updated, to allow for event upgrades", + "method": "PATCH", + "path": "/repos/:name/:repo/hooks/:id", + "origin": "https://${GITHUB_TOKEN}@${GITHUB_API}" } ] } diff --git a/client-templates/github-enterprise/accept.json.sample b/client-templates/github-enterprise/accept.json.sample index d2c07502b..f0ecbb929 100644 --- a/client-templates/github-enterprise/accept.json.sample +++ b/client-templates/github-enterprise/accept.json.sample @@ -1422,6 +1422,12 @@ "method": "PATCH", "path": "/repos/:name/:repo/hooks/:id/config", "origin": "https://${GITHUB_TOKEN}@${GITHUB_API}" + }, + { + "//": "allow webhooks to be updated, to allow for event upgrades", + "method": "PATCH", + "path": "/repos/:name/:repo/hooks/:id", + "origin": "https://${GITHUB_TOKEN}@${GITHUB_API}" } ] } diff --git a/client-templates/github-server-app/accept.json.sample b/client-templates/github-server-app/accept.json.sample index 4b612612e..4fe8a4fcd 100644 --- a/client-templates/github-server-app/accept.json.sample +++ b/client-templates/github-server-app/accept.json.sample @@ -1422,6 +1422,12 @@ "method": "PATCH", "path": "/repos/:name/:repo/hooks/:id/config", "origin": "https://${GITHUB_API}" + }, + { + "//": "allow webhooks to be updated, to allow for event upgrades", + "method": "PATCH", + "path": "/repos/:name/:repo/hooks/:id", + "origin": "https://${GITHUB_API}" } ] } diff --git a/defaultFilters/azure-repos.json b/defaultFilters/azure-repos.json index 7a3da5bb6..52b5bc0dc 100644 --- a/defaultFilters/azure-repos.json +++ b/defaultFilters/azure-repos.json @@ -422,6 +422,16 @@ "scheme": "basic", "token": "${BROKER_CLIENT_VALIDATION_BASIC_AUTH}" } + }, + { + "//": "get webhook", + "method": "GET", + "path": "/_apis/hooks/subscriptions/:subscriptionId", + "origin": "https://${AZURE_REPOS_HOST}/${AZURE_REPOS_ORG}", + "auth": { + "scheme": "basic", + "token": "${BROKER_CLIENT_VALIDATION_BASIC_AUTH}" + } } ] } diff --git a/defaultFilters/github-enterprise.json b/defaultFilters/github-enterprise.json index f0d4e54f7..6c5eb66f9 100644 --- a/defaultFilters/github-enterprise.json +++ b/defaultFilters/github-enterprise.json @@ -1422,6 +1422,12 @@ "method": "PATCH", "path": "/repos/:name/:repo/hooks/:id/config", "origin": "https://${GITHUB_TOKEN}@${GITHUB_API}" + }, + { + "//": "allow webhooks to be updated, to allow for event upgrades", + "method": "PATCH", + "path": "/repos/:name/:repo/hooks/:id", + "origin": "https://${GITHUB_TOKEN}@${GITHUB_API}" } ] } \ No newline at end of file diff --git a/defaultFilters/github-server-app.json b/defaultFilters/github-server-app.json index a3853c1a6..b7c12038f 100644 --- a/defaultFilters/github-server-app.json +++ b/defaultFilters/github-server-app.json @@ -2033,5 +2033,15 @@ "token": "${GHA_ACCESS_TOKEN}" } }, + { + "//": "allow webhooks to be updated, to allow for event upgrades", + "method": "PATCH", + "path": "/repos/:name/:repo/hooks/:id", + "origin": "https://${GITHUB_API}", + "auth": { + "scheme": "bearer", + "token": "${GHA_ACCESS_TOKEN}" + } + } ] } \ No newline at end of file diff --git a/defaultFilters/github.json b/defaultFilters/github.json index ea8b18bb7..ab5190b3d 100644 --- a/defaultFilters/github.json +++ b/defaultFilters/github.json @@ -2140,6 +2140,12 @@ "method": "PATCH", "path": "/repos/:name/:repo/hooks/:id/config", "origin": "https://${GITHUB_TOKEN}@${GITHUB_API}" + }, + { + "//": "allow webhooks to be updated, to allow for event upgrades", + "method": "PATCH", + "path": "/repos/:name/:repo/hooks/:id", + "origin": "https://${GITHUB_TOKEN}@${GITHUB_API}" } ] } diff --git a/test/fixtures/accept/github.json b/test/fixtures/accept/github.json index a4557378b..ae86e28a0 100644 --- a/test/fixtures/accept/github.json +++ b/test/fixtures/accept/github.json @@ -50,6 +50,12 @@ "method": "PATCH", "path": "/repos/:name/:repo/hooks/:id/config", "origin": "https://${GITHUB_TOKEN}@${GITHUB_API}" + }, + { + "//": "allow webhooks to be updated, to allow for event upgrades", + "method": "PATCH", + "path": "/repos/:name/:repo/hooks/:id", + "origin": "https://${GITHUB_TOKEN}@${GITHUB_API}" } ] } diff --git a/test/unit/__snapshots__/runtime-rules-hotloading.test.ts.snap b/test/unit/__snapshots__/runtime-rules-hotloading.test.ts.snap index 47b6f39ac..b4c69a83d 100644 --- a/test/unit/__snapshots__/runtime-rules-hotloading.test.ts.snap +++ b/test/unit/__snapshots__/runtime-rules-hotloading.test.ts.snap @@ -430,6 +430,16 @@ Object { "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", "path": "/_apis/hooks/subscriptions/:subscriptionId", }, + Object { + "//": "get webhook", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/_apis/hooks/subscriptions/:subscriptionId", + }, ], "public": Array [ Object { @@ -4638,6 +4648,12 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/hooks/:id/config", }, + Object { + "//": "allow webhooks to be updated, to allow for event upgrades", + "method": "PATCH", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/hooks/:id", + }, ], "public": Array [ Object { @@ -6068,6 +6084,12 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/hooks/:id/config", }, + Object { + "//": "allow webhooks to be updated, to allow for event upgrades", + "method": "PATCH", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/hooks/:id", + }, ], "public": Array [ Object { @@ -8404,6 +8426,16 @@ Object { "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", "path": "/_apis/hooks/subscriptions/:subscriptionId", }, + Object { + "//": "get webhook", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/_apis/hooks/subscriptions/:subscriptionId", + }, ], "public": Array [ Object { @@ -12612,6 +12644,12 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/hooks/:id/config", }, + Object { + "//": "allow webhooks to be updated, to allow for event upgrades", + "method": "PATCH", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/hooks/:id", + }, ], "public": Array [ Object { @@ -14042,6 +14080,12 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/hooks/:id/config", }, + Object { + "//": "allow webhooks to be updated, to allow for event upgrades", + "method": "PATCH", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/hooks/:id", + }, ], "public": Array [ Object { @@ -16378,6 +16422,16 @@ Object { "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", "path": "/_apis/hooks/subscriptions/:subscriptionId", }, + Object { + "//": "get webhook", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/_apis/hooks/subscriptions/:subscriptionId", + }, ], "public": Array [ Object { @@ -20586,6 +20640,12 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/hooks/:id/config", }, + Object { + "//": "allow webhooks to be updated, to allow for event upgrades", + "method": "PATCH", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/hooks/:id", + }, ], "public": Array [ Object { @@ -22016,6 +22076,12 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/hooks/:id/config", }, + Object { + "//": "allow webhooks to be updated, to allow for event upgrades", + "method": "PATCH", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/hooks/:id", + }, ], "public": Array [ Object { @@ -24352,6 +24418,16 @@ Object { "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", "path": "/_apis/hooks/subscriptions/:subscriptionId", }, + Object { + "//": "get webhook", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/_apis/hooks/subscriptions/:subscriptionId", + }, ], "public": Array [ Object { @@ -28560,6 +28636,12 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/hooks/:id/config", }, + Object { + "//": "allow webhooks to be updated, to allow for event upgrades", + "method": "PATCH", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/hooks/:id", + }, ], "public": Array [ Object { @@ -29990,6 +30072,12 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/hooks/:id/config", }, + Object { + "//": "allow webhooks to be updated, to allow for event upgrades", + "method": "PATCH", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/hooks/:id", + }, ], "public": Array [ Object { @@ -32326,6 +32414,16 @@ Object { "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", "path": "/_apis/hooks/subscriptions/:subscriptionId", }, + Object { + "//": "get webhook", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/_apis/hooks/subscriptions/:subscriptionId", + }, ], "public": Array [ Object { @@ -36534,6 +36632,12 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/hooks/:id/config", }, + Object { + "//": "allow webhooks to be updated, to allow for event upgrades", + "method": "PATCH", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/hooks/:id", + }, ], "public": Array [ Object { @@ -37964,6 +38068,12 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/hooks/:id/config", }, + Object { + "//": "allow webhooks to be updated, to allow for event upgrades", + "method": "PATCH", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/hooks/:id", + }, ], "public": Array [ Object { @@ -40300,6 +40410,16 @@ Object { "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", "path": "/_apis/hooks/subscriptions/:subscriptionId", }, + Object { + "//": "get webhook", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/_apis/hooks/subscriptions/:subscriptionId", + }, ], "public": Array [ Object { @@ -44550,6 +44670,12 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/hooks/:id/config", }, + Object { + "//": "allow webhooks to be updated, to allow for event upgrades", + "method": "PATCH", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/hooks/:id", + }, Object { "//": "used to get custom pull request template", "method": "GET", @@ -45992,6 +46118,12 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/hooks/:id/config", }, + Object { + "//": "allow webhooks to be updated, to allow for event upgrades", + "method": "PATCH", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/hooks/:id", + }, Object { "//": "used to get custom pull request template", "method": "GET", @@ -48367,6 +48499,16 @@ Object { "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", "path": "/_apis/hooks/subscriptions/:subscriptionId", }, + Object { + "//": "get webhook", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/_apis/hooks/subscriptions/:subscriptionId", + }, Object { "//": "get core api's location for sanity check", "auth": Object { @@ -53188,6 +53330,12 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/hooks/:id/config", }, + Object { + "//": "allow webhooks to be updated, to allow for event upgrades", + "method": "PATCH", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/hooks/:id", + }, Object { "//": "used to get repo's teams list", "method": "GET", @@ -54684,6 +54832,12 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/hooks/:id/config", }, + Object { + "//": "allow webhooks to be updated, to allow for event upgrades", + "method": "PATCH", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/hooks/:id", + }, Object { "//": "used to get repo's teams list", "method": "GET", @@ -57128,6 +57282,16 @@ Object { "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", "path": "/_apis/hooks/subscriptions/:subscriptionId", }, + Object { + "//": "get webhook", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/_apis/hooks/subscriptions/:subscriptionId", + }, ], "public": Array [ Object { @@ -61336,6 +61500,12 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/hooks/:id/config", }, + Object { + "//": "allow webhooks to be updated, to allow for event upgrades", + "method": "PATCH", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/hooks/:id", + }, Object { "//": "used to get given manifest file", "method": "GET", @@ -62772,6 +62942,12 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/hooks/:id/config", }, + Object { + "//": "allow webhooks to be updated, to allow for event upgrades", + "method": "PATCH", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/hooks/:id", + }, Object { "//": "used to get given manifest file", "method": "GET", @@ -65114,6 +65290,16 @@ Object { "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", "path": "/_apis/hooks/subscriptions/:subscriptionId", }, + Object { + "//": "get webhook", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/_apis/hooks/subscriptions/:subscriptionId", + }, Object { "//": "allow info refs (for git clone)", "auth": Object { @@ -69415,6 +69601,12 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/hooks/:id/config", }, + Object { + "//": "allow webhooks to be updated, to allow for event upgrades", + "method": "PATCH", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/hooks/:id", + }, Object { "//": "allow info refs (for git clone)", "method": "GET", @@ -70863,6 +71055,12 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/hooks/:id/config", }, + Object { + "//": "allow webhooks to be updated, to allow for event upgrades", + "method": "PATCH", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/hooks/:id", + }, Object { "//": "allow info refs (for git clone)", "method": "GET", @@ -73239,6 +73437,16 @@ Object { "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", "path": "/_apis/hooks/subscriptions/:subscriptionId", }, + Object { + "//": "get webhook", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/_apis/hooks/subscriptions/:subscriptionId", + }, Object { "//": "allow info refs (for git clone)", "auth": Object { @@ -77582,6 +77790,12 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/hooks/:id/config", }, + Object { + "//": "allow webhooks to be updated, to allow for event upgrades", + "method": "PATCH", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/hooks/:id", + }, Object { "//": "used to scan IAC files", "method": "GET", @@ -79042,6 +79256,12 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/hooks/:id/config", }, + Object { + "//": "allow webhooks to be updated, to allow for event upgrades", + "method": "PATCH", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/hooks/:id", + }, Object { "//": "used to scan IAC files", "method": "GET", @@ -81438,6 +81658,16 @@ Object { "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", "path": "/_apis/hooks/subscriptions/:subscriptionId", }, + Object { + "//": "get webhook", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/_apis/hooks/subscriptions/:subscriptionId", + }, Object { "//": "allow info refs (for git clone)", "auth": Object { @@ -85739,6 +85969,12 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/hooks/:id/config", }, + Object { + "//": "allow webhooks to be updated, to allow for event upgrades", + "method": "PATCH", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/hooks/:id", + }, Object { "//": "allow info refs (for git clone)", "method": "GET", @@ -87187,6 +87423,12 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/hooks/:id/config", }, + Object { + "//": "allow webhooks to be updated, to allow for event upgrades", + "method": "PATCH", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/hooks/:id", + }, Object { "//": "allow info refs (for git clone)", "method": "GET", @@ -89595,6 +89837,16 @@ Object { "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", "path": "/_apis/hooks/subscriptions/:subscriptionId", }, + Object { + "//": "get webhook", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/_apis/hooks/subscriptions/:subscriptionId", + }, ], "public": Array [ Object { @@ -90044,6 +90296,16 @@ Object { "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", "path": "/_apis/hooks/subscriptions/:subscriptionId", }, + Object { + "//": "get webhook", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/_apis/hooks/subscriptions/:subscriptionId", + }, ], "public": Array [ Object { @@ -96896,6 +97158,12 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/hooks/:id/config", }, + Object { + "//": "allow webhooks to be updated, to allow for event upgrades", + "method": "PATCH", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/hooks/:id", + }, Object { "//": "used to scan IAC files", "method": "GET", @@ -99106,6 +99374,12 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/hooks/:id/config", }, + Object { + "//": "allow webhooks to be updated, to allow for event upgrades", + "method": "PATCH", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/hooks/:id", + }, Object { "//": "used to scan IAC files", "method": "GET", @@ -100560,6 +100834,12 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/hooks/:id/config", }, + Object { + "//": "allow webhooks to be updated, to allow for event upgrades", + "method": "PATCH", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/hooks/:id", + }, Object { "//": "used to scan IAC files", "method": "GET", @@ -102050,6 +102330,12 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/hooks/:id/config", }, + Object { + "//": "allow webhooks to be updated, to allow for event upgrades", + "method": "PATCH", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/hooks/:id", + }, Object { "//": "used to scan IAC files", "method": "GET", @@ -106097,6 +106383,16 @@ Object { "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", "path": "/_apis/hooks/subscriptions/:subscriptionId", }, + Object { + "//": "get webhook", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/_apis/hooks/subscriptions/:subscriptionId", + }, ], "public": Array [ Object { @@ -110305,6 +110601,12 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/hooks/:id/config", }, + Object { + "//": "allow webhooks to be updated, to allow for event upgrades", + "method": "PATCH", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/hooks/:id", + }, ], "public": Array [ Object { @@ -111735,6 +112037,12 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/hooks/:id/config", }, + Object { + "//": "allow webhooks to be updated, to allow for event upgrades", + "method": "PATCH", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/hooks/:id", + }, ], "public": Array [ Object { @@ -114071,6 +114379,16 @@ Object { "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", "path": "/_apis/hooks/subscriptions/:subscriptionId", }, + Object { + "//": "get webhook", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/_apis/hooks/subscriptions/:subscriptionId", + }, ], "public": Array [ Object { @@ -118279,6 +118597,12 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/hooks/:id/config", }, + Object { + "//": "allow webhooks to be updated, to allow for event upgrades", + "method": "PATCH", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/hooks/:id", + }, ], "public": Array [ Object { @@ -119709,6 +120033,12 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/hooks/:id/config", }, + Object { + "//": "allow webhooks to be updated, to allow for event upgrades", + "method": "PATCH", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/hooks/:id", + }, ], "public": Array [ Object { @@ -122053,6 +122383,16 @@ Object { "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", "path": "/_apis/hooks/subscriptions/:subscriptionId", }, + Object { + "//": "get webhook", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/_apis/hooks/subscriptions/:subscriptionId", + }, ], "public": Array [ Object { @@ -126261,6 +126601,12 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/hooks/:id/config", }, + Object { + "//": "allow webhooks to be updated, to allow for event upgrades", + "method": "PATCH", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/hooks/:id", + }, ], "public": Array [ Object { @@ -127691,6 +128037,12 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/hooks/:id/config", }, + Object { + "//": "allow webhooks to be updated, to allow for event upgrades", + "method": "PATCH", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/hooks/:id", + }, ], "public": Array [ Object { @@ -130027,6 +130379,16 @@ Object { "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", "path": "/_apis/hooks/subscriptions/:subscriptionId", }, + Object { + "//": "get webhook", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/_apis/hooks/subscriptions/:subscriptionId", + }, ], "public": Array [ Object { @@ -134235,6 +134597,12 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/hooks/:id/config", }, + Object { + "//": "allow webhooks to be updated, to allow for event upgrades", + "method": "PATCH", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/hooks/:id", + }, ], "public": Array [ Object { @@ -135665,6 +136033,12 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/hooks/:id/config", }, + Object { + "//": "allow webhooks to be updated, to allow for event upgrades", + "method": "PATCH", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/hooks/:id", + }, ], "public": Array [ Object { @@ -138001,6 +138375,16 @@ Object { "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", "path": "/_apis/hooks/subscriptions/:subscriptionId", }, + Object { + "//": "get webhook", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/_apis/hooks/subscriptions/:subscriptionId", + }, ], "public": Array [ Object { @@ -142209,6 +142593,12 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/hooks/:id/config", }, + Object { + "//": "allow webhooks to be updated, to allow for event upgrades", + "method": "PATCH", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/hooks/:id", + }, ], "public": Array [ Object { @@ -143639,6 +144029,12 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/hooks/:id/config", }, + Object { + "//": "allow webhooks to be updated, to allow for event upgrades", + "method": "PATCH", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/hooks/:id", + }, ], "public": Array [ Object {