From 990b58572f59a5acaf0fd8fe9885eb2c93b87825 Mon Sep 17 00:00:00 2001 From: Anton Drukh Date: Mon, 24 Jul 2017 18:47:52 +0300 Subject: [PATCH] feat: whitelist gradle and sbt manifest files by default --- client-templates/bitbucket-server/accept.json.sample | 12 ++++++++++++ client-templates/github/accept.json.sample | 12 ++++++++++++ 2 files changed, 24 insertions(+) diff --git a/client-templates/bitbucket-server/accept.json.sample b/client-templates/bitbucket-server/accept.json.sample index 1b32e05c2..a0ab6f524 100644 --- a/client-templates/bitbucket-server/accept.json.sample +++ b/client-templates/bitbucket-server/accept.json.sample @@ -55,6 +55,18 @@ "path": "/projects/:project/repos/:repo/browse*/yarn.lock", "origin": "https://${BITBUCKET_USERNAME}:${BITBUCKET_PASSWORD}@${BITBUCKET_API}" }, + { + "//": "used to determine the full dependency tree", + "method": "GET", + "path": "/projects/:project/repos/:repo/browse*/build.gradle", + "origin": "https://${BITBUCKET_USERNAME}:${BITBUCKET_PASSWORD}@${BITBUCKET_API}" + }, + { + "//": "used to determine the full dependency tree", + "method": "GET", + "path": "/projects/:project/repos/:repo/browse*/build.sbt", + "origin": "https://${BITBUCKET_USERNAME}:${BITBUCKET_PASSWORD}@${BITBUCKET_API}" + }, { "//": "used to check if there's any ignore rules or existing patches", "method": "GET", diff --git a/client-templates/github/accept.json.sample b/client-templates/github/accept.json.sample index 671199284..09ddaea5e 100644 --- a/client-templates/github/accept.json.sample +++ b/client-templates/github/accept.json.sample @@ -163,6 +163,18 @@ "path": "/:name/:repo/:branch*/yarn.lock", "origin": "https://${GITHUB_TOKEN}@${GITHUB_RAW}" }, + { + "//": "used to determine the full dependency tree", + "method": "GET", + "path": "/:name/:repo/:branch*/build.gradle", + "origin": "https://${GITHUB_TOKEN}@${GITHUB_RAW}" + }, + { + "//": "used to determine the full dependency tree", + "method": "GET", + "path": "/:name/:repo/:branch*/build.sbt", + "origin": "https://${GITHUB_TOKEN}@${GITHUB_RAW}" + }, { "//": "used to check if there's any ignore rules or existing patches", "method": "GET",