diff --git a/defaultFilters/customPrTemplates/azure-repos.json b/defaultFilters/customPrTemplates/azure-repos.json new file mode 100644 index 000000000..390ac66dd --- /dev/null +++ b/defaultFilters/customPrTemplates/azure-repos.json @@ -0,0 +1,17 @@ +[ + { + "//": "get file content. restrict by file types", + "method": "GET", + "path": "/:owner/_apis/git/repositories/:repo/items", + "origin": "https://${AZURE_REPOS_HOST}/${AZURE_REPOS_ORG}", + "valid": [ + { + "queryParam": "path", + "values": [ + "**/.azuredevops/snyk_pull_request_template.yaml", + "**%2F.azuredevops%2Fsnyk_pull_request_template.yaml" + ] + } + ] + } +] diff --git a/defaultFilters/customPrTemplates/bitbucket-server-bearer-auth.json b/defaultFilters/customPrTemplates/bitbucket-server-bearer-auth.json new file mode 100644 index 000000000..5f434975d --- /dev/null +++ b/defaultFilters/customPrTemplates/bitbucket-server-bearer-auth.json @@ -0,0 +1,22 @@ +[ + { + "//": "used to get custom pull request template", + "method": "GET", + "path": "/projects/:project/repos/:repo/browse*/snyk_pull_request_template.yaml", + "origin": "https://${BITBUCKET_API}", + "auth": { + "scheme": "bearer", + "token": "${BITBUCKET_PAT}" + } + }, + { + "//": "used to get custom pull request template", + "method": "GET", + "path": "/projects/:project/repos/:repo/browse*%2Fsnyk_pull_request_template.yaml", + "origin": "https://${BITBUCKET_API}", + "auth": { + "scheme": "bearer", + "token": "${BITBUCKET_PAT}" + } + } +] diff --git a/defaultFilters/customPrTemplates/bitbucket-server.json b/defaultFilters/customPrTemplates/bitbucket-server.json new file mode 100644 index 000000000..940103933 --- /dev/null +++ b/defaultFilters/customPrTemplates/bitbucket-server.json @@ -0,0 +1,24 @@ +[ + { + "//": "used to get custom pull request template", + "method": "GET", + "path": "/projects/:project/repos/:repo/browse*/snyk_pull_request_template.yaml", + "origin": "https://${BITBUCKET_API}", + "auth": { + "scheme": "basic", + "username": "${BITBUCKET_USERNAME}", + "password": "${BITBUCKET_PASSWORD}" + } + }, + { + "//": "used to get custom pull request template", + "method": "GET", + "path": "/projects/:project/repos/:repo/browse*%2Fsnyk_pull_request_template.yaml", + "origin": "https://${BITBUCKET_API}", + "auth": { + "scheme": "basic", + "username": "${BITBUCKET_USERNAME}", + "password": "${BITBUCKET_PASSWORD}" + } + } +] diff --git a/defaultFilters/customPrTemplates/github-enterprise.json b/defaultFilters/customPrTemplates/github-enterprise.json new file mode 100644 index 000000000..80c450464 --- /dev/null +++ b/defaultFilters/customPrTemplates/github-enterprise.json @@ -0,0 +1,14 @@ +[ + { + "//": "used to get custom pull request template", + "method": "GET", + "path": "/repos/:name/:repo/contents/.github/snyk_pull_request_template.yaml", + "origin": "https://${GITHUB_TOKEN}@${GITHUB_API}" + }, + { + "//": "used to get custom pull request template", + "method": "GET", + "path": "/repos/:name/:repo/contents/.github%2Fsnyk_pull_request_template.yaml", + "origin": "https://${GITHUB_TOKEN}@${GITHUB_API}" + } +] diff --git a/defaultFilters/customPrTemplates/github.json b/defaultFilters/customPrTemplates/github.json new file mode 100644 index 000000000..80c450464 --- /dev/null +++ b/defaultFilters/customPrTemplates/github.json @@ -0,0 +1,14 @@ +[ + { + "//": "used to get custom pull request template", + "method": "GET", + "path": "/repos/:name/:repo/contents/.github/snyk_pull_request_template.yaml", + "origin": "https://${GITHUB_TOKEN}@${GITHUB_API}" + }, + { + "//": "used to get custom pull request template", + "method": "GET", + "path": "/repos/:name/:repo/contents/.github%2Fsnyk_pull_request_template.yaml", + "origin": "https://${GITHUB_TOKEN}@${GITHUB_API}" + } +] diff --git a/defaultFilters/customPrTemplates/gitlab.json b/defaultFilters/customPrTemplates/gitlab.json new file mode 100644 index 000000000..306f1a8ae --- /dev/null +++ b/defaultFilters/customPrTemplates/gitlab.json @@ -0,0 +1,29 @@ +[ + { + "//": "used to get custom pull request template", + "method": "GET", + "path": "/api/v4/projects/:project/repository/files*/snyk_pull_request_template.yaml", + "origin": "https://${GITLAB}" + }, + { + "//": "used to get custom pull request template", + "method": "GET", + "path": "/api/v4/projects/:project/repository/files*%2Fsnyk_pull_request_template.yaml", + "origin": "https://${GITLAB}" + }, + { + "//": "used to determine the full dependency tree for v3 protocol", + "method": "GET", + "path": "/api/v3/projects/:project/repository/files", + "origin": "https://${GITLAB}", + "valid": [ + { + "queryParam": "file_path", + "values": [ + "**/.config/snyk_pull_request_template.yaml", + "**%2F.config%2Fsnyk_pull_request_template.yaml" + ] + } + ] + } +] diff --git a/lib/common/filter/filter-rules-loading.ts b/lib/common/filter/filter-rules-loading.ts index e9417ec9f..7ddb51061 100644 --- a/lib/common/filter/filter-rules-loading.ts +++ b/lib/common/filter/filter-rules-loading.ts @@ -249,6 +249,45 @@ function injectRulesAtRuntime( filters.private.push(...appRiskRules); } } + + const ACCEPT_CUSTOM_PR_TEMPLATES = + process.env.ACCEPT_CUSTOM_PR_TEMPLATES || config.ACCEPT_CUSTOM_PR_TEMPLATES; + if (ACCEPT_CUSTOM_PR_TEMPLATES) { + logger.debug( + { accept: ACCEPT_CUSTOM_PR_TEMPLATES }, + `Injecting Accept rules for Custom PR Templates`, + ); + const type = + ruleType ?? + config.supportedBrokerTypes.find( + (type) => + config[ + camelcase(`BROKER_DOWNSTREAM_TYPE_${type.toLocaleUpperCase()}`) + ] == 'true', + ); + if ( + type && + fs.existsSync(`defaultFilters/customPrTemplates/${type}.json`) + ) { + logger.info( + { accept: ACCEPT_CUSTOM_PR_TEMPLATES }, + `Injecting additional ${type} Accept rules for Custom PR Templates`, + ); + const customPRTemplatesRules = require(path.join( + findProjectRoot(__dirname) ?? process.cwd(), + `defaultFilters/customPrTemplates/${type}.json`, + )) as Rule[]; + // rm entry from filters.private if matching uri in appRiskRules which takes precedence + const customPRTemplatesRulesPathPattern = customPRTemplatesRules.map( + (x) => x.path, + ); + filters.private = filters.private.filter( + (x) => !customPRTemplatesRulesPathPattern.includes(x.path), + ); + filters.private.push(...customPRTemplatesRules); + } + } + return filters; } diff --git a/test/unit/__snapshots__/runtime-rules-hotloading.test.ts.snap b/test/unit/__snapshots__/runtime-rules-hotloading.test.ts.snap index 92cf6d680..79f1d3167 100644 --- a/test/unit/__snapshots__/runtime-rules-hotloading.test.ts.snap +++ b/test/unit/__snapshots__/runtime-rules-hotloading.test.ts.snap @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`filter Rules Loading Injection of valid AppRisk rules - Testing azure-repos 1`] = ` +exports[`filter Rules Loading Injection of valid ACCEPT_CUSTOM_PR_TEMPLATES rules - Testing azure-repos 1`] = ` Object { "private": Array [ Object { @@ -73,228 +73,6 @@ Object { "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", "path": "/_apis/hooks/subscriptions/:subscriptionId", }, - Object { - "//": "get file content. restrict by file types", - "auth": Object { - "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", - }, - "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/items", - "valid": Array [ - Object { - "queryParam": "path", - "values": Array [ - "**/package.json", - "**%2Fpackage.json", - "**/yarn.lock", - "**%2Fyarn.lock", - "**/package-lock.json", - "**%2Fpackage-lock.json", - "**/Gemfile", - "**%2FGemfile", - "**/Gemfile.lock", - "**%2FGemfile.lock", - "**/pom.xml", - "**%2Fpom.xml", - "**/*req*.txt", - "**%2F*req*.txt", - "**/requirements/*.txt", - "**%2Frequirements%2F*.txt", - "**/pyproject.toml", - "**%2Fpyproject.toml", - "**/poetry.lock", - "**%2Fpoetry.lock", - "**/Pipfile", - "**%2FPipfile", - "**/Pipfile.lock", - "**%2FPipfile.lock", - "**/build.gradle", - "**%2Fbuild.gradle", - "**/gradle.lockfile", - "**%2Fgradle.lockfile", - "**/build.sbt", - "**%2Fbuild.sbt", - "**/.snyk", - "**%2F.snyk", - "**/packages.config", - "**%2Fpackages.config", - "**/*.csproj", - "**%2F*.csproj", - "**/*.vbproj", - "**%2F*.vbproj", - "**/*.fsproj", - "**%2F*.fsproj", - "**/project.json", - "**%2Fproject.json", - "**/Gopkg.toml", - "**%2FGopkg.toml", - "**/Gopkg.lock", - "**%2FGopkg.lock", - "**/vendor.json", - "**%2Fvendor.json", - "**/composer.lock", - "**%2Fcomposer.lock", - "**/composer.json", - "**%2Fcomposer.json", - "**/project.assets.json", - "**%2Fproject.assets.json", - "**/Podfile", - "**%2FPodfile", - "**/Podfile.lock", - "**%2FPodfile.lock", - "**/go.mod", - "**%2Fgo.mod", - "**/go.sum", - "**%2Fgo.sum", - "**/*Dockerfile*", - "**%2F*Dockerfile*", - ], - }, - Object { - "queryParam": "recursionLevel", - "values": Array [ - "none", - ], - }, - Object { - "queryParam": "download", - "values": Array [ - "true", - ], - }, - Object { - "queryParam": "includeContent", - "values": Array [ - "true", - ], - }, - ], - }, - Object { - "//": "check file existence. restrict by file types", - "auth": Object { - "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", - }, - "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/items", - "valid": Array [ - Object { - "queryParam": "path", - "values": Array [ - "**/package.json", - "**%2Fpackage.json", - "**/yarn.lock", - "**%2Fyarn.lock", - "**/package-lock.json", - "**%2Fpackage-lock.json", - "**/Gemfile", - "**%2FGemfile", - "**/Gemfile.lock", - "**%2FGemfile.lock", - "**/pom.xml", - "**%2Fpom.xml", - "**/*req*.txt", - "**%2F*req*.txt", - "**/requirements/*.txt", - "**%2Frequirements%2F*.txt", - "**/pyproject.toml", - "**%2Fpyproject.toml", - "**/poetry.lock", - "**%2Fpoetry.lock", - "**/Pipfile", - "**%2FPipfile", - "**/Pipfile.lock", - "**%2FPipfile.lock", - "**/build.gradle", - "**%2Fbuild.gradle", - "**/gradle.lockfile", - "**%2Fgradle.lockfile", - "**/build.sbt", - "**%2Fbuild.sbt", - "**/.snyk", - "**%2F.snyk", - "**/packages.config", - "**%2Fpackages.config", - "**/*.csproj", - "**%2F*.csproj", - "**/*.vbproj", - "**%2F*.vbproj", - "**/*.fsproj", - "**%2F*.fsproj", - "**/project.json", - "**%2Fproject.json", - "**/Gopkg.toml", - "**%2FGopkg.toml", - "**/Gopkg.lock", - "**%2FGopkg.lock", - "**/vendor.json", - "**%2Fvendor.json", - "**/composer.lock", - "**%2Fcomposer.lock", - "**/composer.json", - "**%2Fcomposer.json", - "**/project.assets.json", - "**%2Fproject.assets.json", - "**/Podfile", - "**%2FPodfile", - "**/Podfile.lock", - "**%2FPodfile.lock", - "**/go.mod", - "**%2Fgo.mod", - "**/go.sum", - "**%2Fgo.sum", - "**/*Dockerfile*", - "**%2F*Dockerfile*", - ], - }, - Object { - "queryParam": "versionDescriptor.versionType", - "values": Array [ - "branch", - ], - }, - Object { - "queryParam": "includeContentMetadata", - "values": Array [ - "true", - ], - }, - ], - }, - Object { - "//": "get list of files for given repository", - "auth": Object { - "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", - }, - "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/items", - "valid": Array [ - Object { - "queryParam": "recursionLevel", - "values": Array [ - "full", - ], - }, - Object { - "queryParam": "download", - "values": Array [ - "false", - ], - }, - Object { - "queryParam": "includeContent", - "values": Array [ - "false", - ], - }, - ], - }, Object { "//": "get list of commits for given repository", "auth": Object { @@ -382,203 +160,20 @@ Object { "path": "/snykgit/*", }, Object { - "//": "get core api's location for sanity check", - "auth": Object { - "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", - }, - "method": "OPTIONS", - "origin": "https://\${AZURE_REPOS_HOST}", - "path": "/:org/_apis/Location", - }, - Object { - "//": "get resource access for sanity check", - "auth": Object { - "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", - }, - "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}", - "path": "/:org/_apis/ResourceAreas", - }, - Object { - "//": "get specific repository for given organisation", - "auth": Object { - "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", - }, - "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}", - "path": "/:org/_apis/git/repositories/:repo", - }, - Object { - "//": "get list of refs", - "auth": Object { - "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", - }, - "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}", - "path": "/:org/_apis/git/repositories/:repo/refs", - }, - Object { - "//": "pull teams", - "auth": Object { - "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", - }, - "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}", - "path": "/:org/_apis/teams", - }, - Object { - "//": "pull users via graph api", - "auth": Object { - "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", - }, - "method": "GET", - "origin": "https://vssps.dev.azure.com/", - "path": "/:owner/_apis/graph/users", - }, - Object { - "//": "get api's connection status", - "auth": Object { - "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", - }, - "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}", - "path": "/:org/_apis/connectionData", - }, - Object { - "//": "get core", - "auth": Object { - "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", - }, - "method": "OPTIONS", - "origin": "https://\${AZURE_REPOS_HOST}", - "path": "/:org/_apis/core", - }, - Object { - "//": "get git", - "auth": Object { - "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", - }, - "method": "OPTIONS", - "origin": "https://\${AZURE_REPOS_HOST}", - "path": "/:org/_apis/git", - }, - Object { - "//": "get list of repositories for given organisation", - "auth": Object { - "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", - }, - "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}", - "path": "/:org/:project/_apis/git/repositories", - }, - Object { - "//": "get list of projects for given organisation", - "auth": Object { - "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", - }, - "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}", - "path": "/:org/_apis/projects", - }, - Object { - "//": "pull teams", - "auth": Object { - "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", - }, - "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}", - "path": "/:org/_apis/projects/:repo/teams", - }, - Object { - "//": "get list of commits for given repository", - "auth": Object { - "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", - }, - "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}", - "path": "/:org/:project/_apis/git/repositories/:repo/commits", - }, - Object { - "//": "used to retrieve organization context from catalog-info.yaml", - "auth": Object { - "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", - }, + "//": "get file content. restrict by file types", "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}", - "path": "/:org/:project/_apis/git/repositories/:repo/files", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/items", "valid": Array [ Object { "queryParam": "path", "values": Array [ - "catalog-info.yaml", + "**/.azuredevops/snyk_pull_request_template.yaml", + "**%2F.azuredevops%2Fsnyk_pull_request_template.yaml", ], }, ], }, - Object { - "//": "get list of team's members", - "auth": Object { - "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", - }, - "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}", - "path": "/:org/_apis/projects/:project/teams/:team/members", - }, - Object { - "//": "get list project's languages", - "auth": Object { - "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", - }, - "method": "OPTIONS", - "origin": "https://\${AZURE_REPOS_HOST}", - "path": "/:org/_apis/projectanalysis", - }, - Object { - "//": "pull project's languages metrics", - "auth": Object { - "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", - }, - "method": "OPTIONS", - "origin": "https://\${AZURE_REPOS_HOST}", - "path": "/:org/:project/_apis/projectanalysis/languagemetrics", - }, - Object { - "//": "expend team", - "auth": Object { - "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", - }, - "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}", - "path": "/:org/_apis/projects/:project/teams/:team", - }, - Object { - "//": "get releases", - "auth": Object { - "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", - }, - "method": "OPTIONS", - "origin": "https://\${AZURE_REPOS_HOST}", - "path": "/:org/_apis/Release", - }, ], "public": Array [ Object { @@ -590,9 +185,20 @@ Object { } `; -exports[`filter Rules Loading Injection of valid AppRisk rules - Testing bitbucket-server 1`] = ` +exports[`filter Rules Loading Injection of valid ACCEPT_CUSTOM_PR_TEMPLATES rules - Testing bitbucket-server 1`] = ` Object { "private": Array [ + Object { + "//": "list the user's projects", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects", + }, Object { "//": "list the project's repos", "auth": Object { @@ -1700,7 +1306,7 @@ Object { "path": "/rest/default-reviewers/1.0/projects/:projectKey/repos/:repo/reviewers", }, Object { - "//": "used to get repo's commits", + "//": "used to get custom pull request template", "auth": Object { "password": "\${BITBUCKET_PASSWORD}", "scheme": "basic", @@ -1708,10 +1314,10 @@ Object { }, "method": "GET", "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:projectKey/repos/:repo/commits", + "path": "/projects/:project/repos/:repo/browse*/snyk_pull_request_template.yaml", }, Object { - "//": "used to get specific commit", + "//": "used to get custom pull request template", "auth": Object { "password": "\${BITBUCKET_PASSWORD}", "scheme": "basic", @@ -1719,1065 +1325,1989 @@ Object { }, "method": "GET", "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:projectKey/repos/:repo/commits/:commit/diff", + "path": "/projects/:project/repos/:repo/browse*%2Fsnyk_pull_request_template.yaml", }, + ], + "public": Array [ Object { - "//": "used to retrieve organization context from catalog-info.yaml", + "//": "used for pushing up webhooks from bitbucket-server", + "method": "POST", + "path": "/webhook/bitbucket-server/:webhookId", + }, + ], +} +`; + +exports[`filter Rules Loading Injection of valid ACCEPT_CUSTOM_PR_TEMPLATES rules - Testing bitbucket-server-bearer-auth 1`] = ` +Object { + "private": Array [ + Object { + "//": "list the user's projects", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:projectKey/repos/:repo/raw/catalog-info.yaml", + "path": "/projects", }, Object { - "//": "list commit for a given repo", + "//": "list the project's repos", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", - "origin": "https://\${BITBUCKET}", - "path": "/:workspace/:repo/commits", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:projectKey/repos", }, Object { - "//": "get a specific commit diff stats identified by the commit hash or name of a branch", + "//": "list the user's repos", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", - "origin": "https://\${BITBUCKET}", - "path": "/:workspace/:repo/diffstat/commits/:sha", + "origin": "https://\${BITBUCKET_API}", + "path": "/repos", }, Object { - "//": "list the user's workspaces", + "//": "fetch a given repo", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", - "path": "/workspaces", + "path": "/projects/:project/repos/:repo", }, Object { - "//": "list the user's projects", + "//": "read all file names to find manifests", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/files/:searchPath?", }, Object { - "//": "used to get groups", + "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", - "path": "/admin/groups", + "path": "/projects/:project/repos/:repo/browse*/package.json", }, Object { - "//": "used to get group's members", + "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", - "path": "/admin/groups/more-members", + "path": "/projects/:project/repos/:repo/browse*%2Fpackage.json", }, Object { - "//": "used to get repositories for a given workspace", + "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", - "path": "/repositories/:workspace", + "path": "/projects/:project/repos/:repo/browse*/package-lock.json", }, Object { - "//": "used to get repository", + "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", - "path": "/repositories/:workspace/:repo", + "path": "/projects/:project/repos/:repo/browse*%2Fpackage-lock.json", }, Object { - "//": "used to get pull requests for a given repo", + "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", - "path": "/repositories/:workspace/:repo/pullrequests", + "path": "/projects/:project/repos/:repo/browse*/Gemfile.lock", }, Object { - "//": "list commits for a given repo", + "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", - "path": "/repositories/:workspace/:repo/commits", + "path": "/projects/:project/repos/:repo/browse*%2FGemfile.lock", }, Object { - "//": "list members for a given workspace", + "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", - "path": "/workspaces/:workspace/members", - }, - ], - "public": Array [ - Object { - "//": "used for pushing up webhooks from bitbucket-server", - "method": "POST", - "path": "/webhook/bitbucket-server/:webhookId", + "path": "/projects/:project/repos/:repo/browse*/Gemfile", }, - ], -} -`; - -exports[`filter Rules Loading Injection of valid AppRisk rules - Testing github 1`] = ` -Object { - "private": Array [ Object { - "//": "search for user's repos", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/search/repositories", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FGemfile", }, Object { - "//": "list the user's info, and validate their credentials", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/user", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/pom.xml", }, Object { - "//": "list the user's orgs", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/user/orgs", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fpom.xml", }, Object { - "//": "list the logged in user's repos", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/user/repos", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/*req*.txt", }, Object { - "//": "list a user's repos", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/users/:username/repos", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F*req*.txt", }, Object { - "//": "list an orgs's repos", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/orgs/:username/repos", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/requirements/*.txt", }, Object { - "//": "get a user's repo", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:user/:repo", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Frequirements%2F*.txt", }, Object { - "//": "rate limit check", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/rate_limit", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/pyproject.toml", }, Object { - "//": "allow meta lookup on the api version", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/", - }, - Object { - "//": "allow webhooks to be added, to allow commits to be checked by Snyk. Rules for what is sent to Snyk are controlled in the \`public\` accept filters", - "method": "POST", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:user/:repo/hooks", - }, - Object { - "//": "allow webhooks to be deleted, used to cleanup when a user deactivates or deletes a project", - "method": "DELETE", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:owner/:repo/hooks/:id", - }, - Object { - "//": "used to create commit status messages", - "method": "POST", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:user/:repo/statuses/:sha", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fpyproject.toml", }, Object { - "//": "used to list branches on a repo", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:user/:repo/branches", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/poetry.lock", }, Object { - "//": "used to get branch info", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:user/:repo/branches/:branch", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fpoetry.lock", }, Object { - "//": "used to get status checks on a branch", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:user/:repo/branches/:branch/protection/required_status_checks/contexts", - }, - Object { - "//": "used to create status checks on a branch", - "method": "POST", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:user/:repo/branches/:branch/protection/required_status_checks/contexts", - }, - Object { - "//": "used to delete status checks on a branch", - "method": "DELETE", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:user/:repo/branches/:branch/protection/required_status_checks/contexts", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Pipfile", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/package.json", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FPipfile", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fpackage.json", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Pipfile.lock", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/package.json", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FPipfile.lock", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fpackage.json", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/yarn.lock", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/package-lock.json", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fyarn.lock", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fpackage-lock.json", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/build.gradle", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/package-lock.json", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fbuild.gradle", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fpackage-lock.json", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/gradle.lockfile", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Gemfile.lock", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fgradle.lockfile", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FGemfile.lock", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/gradle.properties", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/Gemfile.lock", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fgradle.properties", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2FGemfile.lock", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Packages.props", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Gemfile", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FPackages.props", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FGemfile", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Directory.Build.props", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/Gemfile", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FDirectory.Build.props", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2FGemfile", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Directory.Build.targets", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/pom.xml", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FDirectory.Build.targets", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fpom.xml", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/build.sbt", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/pom.xml", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fbuild.sbt", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fpom.xml", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/packages.config", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/*req*.txt", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fpackages.config", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2F*req*.txt", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/*.csproj", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/*req*.txt", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F*.csproj", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2F*req*.txt", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/*.vbproj", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/requirements/*.txt", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F*.vbproj", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Frequirements%2F*.txt", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/*.fsproj", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/requirements/*.txt", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F*.fsproj", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Frequirements%2F*.txt", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/project.json", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/pyproject.toml", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fproject.json", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fpyproject.toml", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Gopkg.toml", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/pyproject.toml", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FGopkg.toml", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fpyproject.toml", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Gopkg.lock", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/poetry.lock", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FGopkg.lock", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fpoetry.lock", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/vendor.json", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/poetry.lock", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fvendor.json", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fpoetry.lock", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/composer.lock", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/yarn.lock", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fcomposer.lock", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fyarn.lock", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/composer.json", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/yarn.lock", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fcomposer.json", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fyarn.lock", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/project.assets.json", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/build.gradle", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fproject.assets.json", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fbuild.gradle", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Podfile", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/build.gradle", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FPodfile", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fbuild.gradle", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Podfile.lock", }, Object { "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/gradle.lockfile", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FPodfile.lock", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fgradle.lockfile", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/go.mod", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/gradle.lockfile", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fgo.mod", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fgradle.lockfile", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/go.sum", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/gradle.properties", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fgo.sum", }, Object { - "//": "used to determine the full dependency tree", + "//": "used to scan Dockerfile", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fgradle.properties", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/*Dockerfile*", }, Object { - "//": "used to determine the full dependency tree", + "//": "used to scan Dockerfile", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/gradle.properties", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F*Dockerfile*", }, Object { - "//": "used to determine the full dependency tree", + "//": "used to check if there's any ignore rules or existing patches", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fgradle.properties", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/.snyk", }, Object { - "//": "used to determine the full dependency tree", + "//": "used to check if there's any ignore rules or existing patches", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Packages.props", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F.snyk", }, Object { - "//": "used to determine the full dependency tree", + "//": "get list of API capabilities", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FPackages.props", + "origin": "https://\${BITBUCKET}", + "path": "/rest/capabilities", }, Object { - "//": "used to determine the full dependency tree", + "//": "allow webhooks to be added, to allow commits to be checked by Snyk. Rules for what is sent to Snyk are controlled in the \`public\` accept filters", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "POST", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/webhooks", + }, + Object { + "//": "allow webhooks to be deleted, used to cleanup when a user deactivates or deletes a project", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "DELETE", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/webhooks/:webhookId", + }, + Object { + "//": "used to create commit status messages", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "POST", + "origin": "https://\${BITBUCKET}", + "path": "/rest/build-status/1.0/commits/:sha", + }, + Object { + "//": "used to create a new branch for fix PRs", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "POST", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/branches", + }, + Object { + "//": "used to create or update a file for fix PRs", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "PUT", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/browse/*", + }, + Object { + "//": "used to create a pull request for fix PRs", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "POST", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/pull-requests", + }, + Object { + "//": "used to query for open pull requests by branch", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/Packages.props", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/pull-requests", }, Object { - "//": "used to determine the full dependency tree", + "//": "used to query for a merge-base for a pull request", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2FPackages.props", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/pull-requests/:pullRequestId/changes", }, Object { - "//": "used to determine the full dependency tree", + "//": "used to check for a repo's default branch", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Directory.Build.props", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/branches/default", }, Object { - "//": "used to determine the full dependency tree", + "//": "Used to get a branch specified by query string", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FDirectory.Build.props", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/branches:filterText?", }, Object { - "//": "used to determine the full dependency tree", + "//": "get a specific commit identified by the commit hash or name of a branch", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/Directory.Build.props", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/commits/:sha", }, Object { - "//": "used to determine the full dependency tree", + "//": "used to create a Code Insights report", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "PUT", + "origin": "https://\${BITBUCKET}", + "path": "/rest/insights/:apiVersion/projects/:project/repos/:repo/commits/:sha/reports/:report", + }, + Object { + "//": "used to remove a Code Insights report", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "DELETE", + "origin": "https://\${BITBUCKET}", + "path": "/rest/insights/:apiVersion/projects/:project/repos/:repo/commits/:sha/reports/:report", + }, + Object { + "//": "used to add Code Insights annotations to a report", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "POST", + "origin": "https://\${BITBUCKET}", + "path": "/rest/insights/:apiVersion/projects/:project/repos/:repo/commits/:sha/reports/:report/annotations", + }, + Object { + "//": "get list of API capabilities for Code Insights", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2FDirectory.Build.props", + "origin": "https://\${BITBUCKET}", + "path": "/rest/insights/:apiVersion/capabilities", }, Object { - "//": "used to determine the full dependency tree", + "//": "used to remove Code Insights annotations for a report", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "DELETE", + "origin": "https://\${BITBUCKET}", + "path": "/rest/insights/:apiVersion/projects/:project/repos/:repo/commits/:sha/reports/:report/annotations", + }, + Object { + "//": "used to get current user. so we'll be able to fetch current user's repos, that are not part of any project.", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Directory.Build.targets", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/application-properties", }, Object { - "//": "used to determine the full dependency tree", + "//": "used to get current user. so we'll be able to fetch current user's repos, that are not part of any project - this is using atlassian's SDK api.", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FDirectory.Build.targets", + "origin": "https://\${BITBUCKET}", + "path": "/plugins/servlet/applinks/whoami", }, Object { - "//": "used to determine the full dependency tree", + "//": "used to get the current user's project-like structure. So we'll be able to bind all user's private repos (that are not included in different project)", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/Directory.Build.targets", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:projectKey", }, Object { - "//": "used to determine the full dependency tree", + "//": "used to check if the user has admin or higher permissions", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2FDirectory.Build.targets", + "origin": "https://\${BITBUCKET_API}", + "path": "/admin/permissions/users", }, Object { - "//": "used to determine the full dependency tree", + "//": "used to get all the users. it's called only for admin permissioned user. to retrieve all the repos they can access", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/build.sbt", + "origin": "https://\${BITBUCKET_API}", + "path": "/users", }, Object { - "//": "used to determine the full dependency tree", + "//": "used to redirect requests to snyk git client", + "method": "any", + "origin": "\${GIT_CLIENT_URL}", + "path": "/snykgit/*", + }, + Object { + "//": "used to fetch a given repo from API", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fbuild.sbt", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo", }, Object { - "//": "used to determine the full dependency tree", + "//": "used to get default reviewers for a pull request", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/build.sbt", + "origin": "https://\${BITBUCKET}", + "path": "/rest/default-reviewers/1.0/projects/:projectKey/repos/:repo/reviewers", }, Object { - "//": "used to determine the full dependency tree", + "//": "used to get custom pull request template", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fbuild.sbt", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/snyk_pull_request_template.yaml", }, Object { - "//": "used to determine the full dependency tree", + "//": "used to get custom pull request template", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fsnyk_pull_request_template.yaml", + }, + ], + "public": Array [ + Object { + "//": "used for pushing up webhooks from bitbucket-server", + "method": "POST", + "path": "/webhook/bitbucket-server/:webhookId", + }, + ], +} +`; + +exports[`filter Rules Loading Injection of valid ACCEPT_CUSTOM_PR_TEMPLATES rules - Testing github 1`] = ` +Object { + "private": Array [ + Object { + "//": "search for user's repos", "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/packages.config", + "path": "/search/repositories", }, Object { - "//": "used to determine the full dependency tree", + "//": "list the user's info, and validate their credentials", "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fpackages.config", + "path": "/user", }, Object { - "//": "used to determine the full dependency tree", + "//": "list the user's orgs", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/packages.config", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/user/orgs", }, Object { - "//": "used to determine the full dependency tree", + "//": "list the logged in user's repos", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fpackages.config", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/user/repos", }, Object { - "//": "used to determine the full dependency tree", + "//": "list a user's repos", "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/*.csproj", + "path": "/users/:username/repos", }, Object { - "//": "used to determine the full dependency tree", + "//": "list an orgs's repos", "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2F*.csproj", + "path": "/orgs/:username/repos", }, Object { - "//": "used to determine the full dependency tree", + "//": "get a user's repo", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/*.csproj", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:user/:repo", }, Object { - "//": "used to determine the full dependency tree", + "//": "rate limit check", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2F*.csproj", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/rate_limit", }, Object { - "//": "used to determine the full dependency tree", + "//": "allow meta lookup on the api version", "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/*.fsproj", + "path": "/", }, Object { - "//": "used to determine the full dependency tree", + "//": "allow webhooks to be added, to allow commits to be checked by Snyk. Rules for what is sent to Snyk are controlled in the \`public\` accept filters", + "method": "POST", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:user/:repo/hooks", + }, + Object { + "//": "allow webhooks to be deleted, used to cleanup when a user deactivates or deletes a project", + "method": "DELETE", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:owner/:repo/hooks/:id", + }, + Object { + "//": "used to create commit status messages", + "method": "POST", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:user/:repo/statuses/:sha", + }, + Object { + "//": "used to list branches on a repo", "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2F*.fsproj", + "path": "/repos/:user/:repo/branches", }, Object { - "//": "used to determine the full dependency tree", + "//": "used to get branch info", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/*.fsproj", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:user/:repo/branches/:branch", }, Object { - "//": "used to determine the full dependency tree", + "//": "used to get status checks on a branch", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2F*.fsproj", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:user/:repo/branches/:branch/protection/required_status_checks/contexts", + }, + Object { + "//": "used to create status checks on a branch", + "method": "POST", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:user/:repo/branches/:branch/protection/required_status_checks/contexts", + }, + Object { + "//": "used to delete status checks on a branch", + "method": "DELETE", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:user/:repo/branches/:branch/protection/required_status_checks/contexts", + }, + Object { + "//": "check if repo is public", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB}", + "path": "/:user/:repo", }, Object { "//": "used to determine the full dependency tree", "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/*.vbproj", + "path": "/repos/:name/:repo/contents/:path*/package.json", }, Object { "//": "used to determine the full dependency tree", "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2F*.vbproj", + "path": "/repos/:name/:repo/contents/:path*%2Fpackage.json", }, Object { "//": "used to determine the full dependency tree", "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/*.vbproj", + "path": "/:name/:repo/:path*/package.json", }, Object { "//": "used to determine the full dependency tree", "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2F*.vbproj", + "path": "/:name/:repo/:path*%2Fpackage.json", }, Object { "//": "used to determine the full dependency tree", "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/project.json", + "path": "/repos/:name/:repo/contents/:path*/package-lock.json", }, Object { "//": "used to determine the full dependency tree", "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fproject.json", + "path": "/repos/:name/:repo/contents/:path*%2Fpackage-lock.json", }, Object { "//": "used to determine the full dependency tree", "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/project.json", + "path": "/:name/:repo/:path*/package-lock.json", }, Object { "//": "used to determine the full dependency tree", "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fproject.json", + "path": "/:name/:repo/:path*%2Fpackage-lock.json", }, Object { "//": "used to determine the full dependency tree", "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Gopkg.toml", + "path": "/repos/:name/:repo/contents/:path*/Gemfile.lock", }, Object { "//": "used to determine the full dependency tree", "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FGopkg.toml", + "path": "/repos/:name/:repo/contents/:path*%2FGemfile.lock", }, Object { "//": "used to determine the full dependency tree", "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/Gopkg.toml", + "path": "/:name/:repo/:path*/Gemfile.lock", }, Object { "//": "used to determine the full dependency tree", "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2FGopkg.toml", + "path": "/:name/:repo/:path*%2FGemfile.lock", }, Object { "//": "used to determine the full dependency tree", "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Gopkg.lock", + "path": "/repos/:name/:repo/contents/:path*/Gemfile", }, Object { "//": "used to determine the full dependency tree", "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FGopkg.lock", + "path": "/repos/:name/:repo/contents/:path*%2FGemfile", }, Object { "//": "used to determine the full dependency tree", "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/Gopkg.lock", + "path": "/:name/:repo/:path*/Gemfile", }, Object { "//": "used to determine the full dependency tree", "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2FGopkg.lock", + "path": "/:name/:repo/:path*%2FGemfile", }, Object { "//": "used to determine the full dependency tree", "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/vendor.json", + "path": "/repos/:name/:repo/contents/:path*/pom.xml", }, Object { "//": "used to determine the full dependency tree", "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fvendor.json", + "path": "/repos/:name/:repo/contents/:path*%2Fpom.xml", }, Object { "//": "used to determine the full dependency tree", "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/vendor.json", + "path": "/:name/:repo/:path*/pom.xml", }, Object { "//": "used to determine the full dependency tree", "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fvendor.json", + "path": "/:name/:repo/:path*%2Fpom.xml", }, Object { "//": "used to determine the full dependency tree", "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/composer.lock", + "path": "/repos/:name/:repo/contents/:path*/*req*.txt", }, Object { "//": "used to determine the full dependency tree", "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fcomposer.lock", + "path": "/repos/:name/:repo/contents/:path*%2F*req*.txt", }, Object { "//": "used to determine the full dependency tree", "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/composer.lock", + "path": "/:name/:repo/:path*/*req*.txt", }, Object { "//": "used to determine the full dependency tree", "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fcomposer.lock", + "path": "/:name/:repo/:path*%2F*req*.txt", }, Object { "//": "used to determine the full dependency tree", "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/composer.json", + "path": "/repos/:name/:repo/contents/:path*/requirements/*.txt", }, Object { "//": "used to determine the full dependency tree", "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fcomposer.json", + "path": "/repos/:name/:repo/contents/:path*%2Frequirements%2F*.txt", }, Object { "//": "used to determine the full dependency tree", "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/composer.json", + "path": "/:name/:repo/:path*/requirements/*.txt", }, Object { "//": "used to determine the full dependency tree", "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fcomposer.json", + "path": "/:name/:repo/:path*%2Frequirements%2F*.txt", }, Object { "//": "used to determine the full dependency tree", "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/project.assets.json", + "path": "/repos/:name/:repo/contents/:path*/pyproject.toml", }, Object { "//": "used to determine the full dependency tree", "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fproject.assets.json", + "path": "/repos/:name/:repo/contents/:path*%2Fpyproject.toml", }, Object { "//": "used to determine the full dependency tree", "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/project.assets.json", + "path": "/:name/:repo/:path*/pyproject.toml", }, Object { "//": "used to determine the full dependency tree", "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fproject.assets.json", + "path": "/:name/:repo/:path*%2Fpyproject.toml", }, Object { "//": "used to determine the full dependency tree", "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Podfile", + "path": "/repos/:name/:repo/contents/:path*/poetry.lock", }, Object { "//": "used to determine the full dependency tree", "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FPodfile", + "path": "/repos/:name/:repo/contents/:path*%2Fpoetry.lock", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Podfile.lock", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/poetry.lock", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FPodfile.lock", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fpoetry.lock", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/Podfile", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/yarn.lock", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2FPodfile", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fyarn.lock", }, Object { "//": "used to determine the full dependency tree", "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/Podfile.lock", + "path": "/:name/:repo/:path*/yarn.lock", }, Object { "//": "used to determine the full dependency tree", "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2FPodfile.lock", + "path": "/:name/:repo/:path*%2Fyarn.lock", }, Object { "//": "used to determine the full dependency tree", "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/go.mod", + "path": "/repos/:name/:repo/contents/:path*/build.gradle", }, Object { "//": "used to determine the full dependency tree", "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fgo.mod", + "path": "/repos/:name/:repo/contents/:path*%2Fbuild.gradle", }, Object { "//": "used to determine the full dependency tree", "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/go.mod", + "path": "/:name/:repo/:path*/build.gradle", }, Object { "//": "used to determine the full dependency tree", "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fgo.mod", + "path": "/:name/:repo/:path*%2Fbuild.gradle", }, Object { "//": "used to determine the full dependency tree", "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/go.sum", + "path": "/repos/:name/:repo/contents/:path*/gradle.lockfile", }, Object { "//": "used to determine the full dependency tree", "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fgo.sum", + "path": "/repos/:name/:repo/contents/:path*%2Fgradle.lockfile", }, Object { "//": "used to determine the full dependency tree", "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/go.sum", + "path": "/:name/:repo/:path*/gradle.lockfile", }, Object { "//": "used to determine the full dependency tree", "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fgo.sum", + "path": "/:name/:repo/:path*%2Fgradle.lockfile", }, Object { - "//": "used to scan Dockerfile", + "//": "used to determine the full dependency tree", "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/*Dockerfile*", + "path": "/repos/:name/:repo/contents/:path*/gradle.properties", }, Object { - "//": "used to scan Dockerfile", + "//": "used to determine the full dependency tree", "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2F*Dockerfile*", + "path": "/repos/:name/:repo/contents/:path*%2Fgradle.properties", }, Object { - "//": "used to scan Dockerfile", + "//": "used to determine the full dependency tree", "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/*Dockerfile*", + "path": "/:name/:repo/:path*/gradle.properties", }, Object { - "//": "used to scan Dockerfile", + "//": "used to determine the full dependency tree", "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2F*Dockerfile*", + "path": "/:name/:repo/:path*%2Fgradle.properties", }, Object { - "//": "used to check if there's any ignore rules or existing patches", + "//": "used to determine the full dependency tree", "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/.snyk", + "path": "/repos/:name/:repo/contents/:path*/Packages.props", }, Object { - "//": "used to check if there's any ignore rules or existing patches", + "//": "used to determine the full dependency tree", "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2F.snyk", + "path": "/repos/:name/:repo/contents/:path*%2FPackages.props", }, Object { "//": "used to determine the full dependency tree", "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/.snyk", + "path": "/:name/:repo/:path*/Packages.props", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FPackages.props", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Directory.Build.props", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FDirectory.Build.props", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Directory.Build.props", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FDirectory.Build.props", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Directory.Build.targets", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FDirectory.Build.targets", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Directory.Build.targets", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FDirectory.Build.targets", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/build.sbt", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fbuild.sbt", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/build.sbt", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fbuild.sbt", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/packages.config", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpackages.config", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/packages.config", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fpackages.config", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*.csproj", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*.csproj", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/*.csproj", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2F*.csproj", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*.fsproj", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*.fsproj", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/*.fsproj", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2F*.fsproj", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*.vbproj", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*.vbproj", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/*.vbproj", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2F*.vbproj", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/project.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fproject.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/project.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fproject.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Gopkg.toml", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FGopkg.toml", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Gopkg.toml", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FGopkg.toml", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Gopkg.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FGopkg.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Gopkg.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FGopkg.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/vendor.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fvendor.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/vendor.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fvendor.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/composer.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fcomposer.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/composer.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fcomposer.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/composer.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fcomposer.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/composer.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fcomposer.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/project.assets.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fproject.assets.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/project.assets.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fproject.assets.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Podfile", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FPodfile", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Podfile.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FPodfile.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Podfile", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FPodfile", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Podfile.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FPodfile.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/go.mod", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fgo.mod", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/go.mod", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fgo.mod", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/go.sum", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fgo.sum", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/go.sum", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fgo.sum", + }, + Object { + "//": "used to scan Dockerfile", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*Dockerfile*", + }, + Object { + "//": "used to scan Dockerfile", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*Dockerfile*", + }, + Object { + "//": "used to scan Dockerfile", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/*Dockerfile*", + }, + Object { + "//": "used to scan Dockerfile", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2F*Dockerfile*", + }, + Object { + "//": "used to check if there's any ignore rules or existing patches", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/.snyk", + }, + Object { + "//": "used to check if there's any ignore rules or existing patches", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F.snyk", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/.snyk", }, Object { "//": "used to determine the full dependency tree", @@ -3682,73 +4212,19 @@ Object { "path": "/graphql", }, Object { - "//": "used to get repo's teams list", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:owner/:repo/teams", - }, - Object { - "//": "used to get teams's repo list", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/orgs/:owner/teams/:team/repos", - }, - Object { - "//": "used to get orgs's teams list", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/orgs/:username/teams", - }, - Object { - "//": "used to get team's members list", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/orgs/:username/teams/:team_slug/members", - }, - Object { - "//": "used to get org's members list", + "//": "used to get custom pull request template", "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/orgs/:username/members", + "path": "/repos/:name/:repo/contents/.github/snyk_pull_request_template.yaml", }, Object { - "//": "used to get repo's contributors list", + "//": "used to get custom pull request template", "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:owner/:repo/contributors", + "path": "/repos/:name/:repo/contents/.github%2Fsnyk_pull_request_template.yaml", }, - Object { - "//": "used to retrieve organization context from catalog-info.yaml", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/catalog-info.yaml", - }, - Object { - "//": "used to get repo's languages", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:owner/:repo/languages", - }, - Object { - "//": "used to get repo's topics list", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:owner/:repo/topics", - }, - Object { - "//": "used to get user", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/:user/:repo", - }, - Object { - "//": "used to get user's orgs", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/users/:username/orgs", - }, - ], - "public": Array [ + ], + "public": Array [ Object { "//": "used for pushing up webhooks from github", "method": "POST", @@ -4050,7 +4526,7 @@ Object { } `; -exports[`filter Rules Loading Injection of valid AppRisk rules - Testing github-enterprise 1`] = ` +exports[`filter Rules Loading Injection of valid ACCEPT_CUSTOM_PR_TEMPLATES rules - Testing github-enterprise 1`] = ` Object { "private": Array [ Object { @@ -4155,6 +4631,12 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:user/:repo/branches/:branch/protection/required_status_checks/contexts", }, + Object { + "//": "check if repo is public", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB}", + "path": "/:user/:repo", + }, Object { "//": "used to determine the full dependency tree", "method": "GET", @@ -5148,64 +5630,16 @@ Object { "path": "/graphql", }, Object { - "//": "used to get repo's teams list", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:owner/:repo/teams", - }, - Object { - "//": "used to get teams's repo list", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/orgs/:owner/teams/:team/repos", - }, - Object { - "//": "used to get orgs's teams list", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/orgs/:username/teams", - }, - Object { - "//": "used to get team's members list", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/orgs/:username/teams/:team_slug/members", - }, - Object { - "//": "used to get org's members list", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/orgs/:username/members", - }, - Object { - "//": "used to get repo's contributors list", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:owner/:repo/contributors", - }, - Object { - "//": "used to get repo's languages", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:owner/:repo/languages", - }, - Object { - "//": "used to get repo's topics list", + "//": "used to get custom pull request template", "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:owner/:repo/topics", + "path": "/repos/:name/:repo/contents/.github/snyk_pull_request_template.yaml", }, Object { - "//": "used to get user", + "//": "used to get custom pull request template", "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/:user/:repo", - }, - Object { - "//": "used to get user's orgs", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/users/:username/orgs", + "path": "/repos/:name/:repo/contents/.github%2Fsnyk_pull_request_template.yaml", }, ], "public": Array [ @@ -5510,7 +5944,7 @@ Object { } `; -exports[`filter Rules Loading Injection of valid AppRisk rules - Testing gitlab 1`] = ` +exports[`filter Rules Loading Injection of valid ACCEPT_CUSTOM_PR_TEMPLATES rules - Testing gitlab 1`] = ` Object { "private": Array [ Object { @@ -5987,77 +6421,6 @@ Object { "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*%2F.snyk", }, - Object { - "//": "used to determine the full dependency tree for v3 protocol", - "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v3/projects/:project/repository/files", - "valid": Array [ - Object { - "queryParam": "file_path", - "values": Array [ - "**/package.json", - "**%2Fpackage.json", - "**/yarn.lock", - "**%2Fyarn.lock", - "**/package-lock.json", - "**%2Fpackage-lock.json", - "**/Gemfile", - "**%2FGemfile", - "**/Gemfile.lock", - "**%2FGemfile.lock", - "**/pom.xml", - "**%2Fpom.xml", - "**/*req*.txt", - "**%2F*req*.txt", - "**/requirements/*.txt", - "**%2Frequirements%2F*.txt", - "**/pyproject.toml", - "**%2Fpyproject.toml", - "**/poetry.lock", - "**%2Fpoetry.lock", - "**/build.gradle", - "**%2Fbuild.gradle", - "**/gradle.lockfile", - "**%2Fgradle.lockfile", - "**/build.sbt", - "**%2Fbuild.sbt", - "**/.snyk", - "**%2F.snyk", - "**/packages.config", - "**%2Fpackages.config", - "**/*.csproj", - "**%2F*.csproj", - "**/*.vbproj", - "**%2F*.vbproj", - "**/*.fsproj", - "**%2F*.fsproj", - "**/project.json", - "**%2Fproject.json", - "**/Gopkg.toml", - "**%2FGopkg.toml", - "**/Gopkg.lock", - "**%2FGopkg.lock", - "**/vendor.json", - "**%2Fvendor.json", - "**/composer.lock", - "**%2Fcomposer.lock", - "**/composer.json", - "**%2Fcomposer.json", - "**/project.assets.json", - "**%2Fproject.assets.json", - "**/Podfile", - "**%2FPodfile", - "**/Podfile.lock", - "**%2FPodfile.lock", - "**/go.mod", - "**%2Fgo.mod", - "**/go.sum", - "**%2Fgo.sum", - ], - }, - ], - }, Object { "//": "used to create manifest file", "method": "POST", @@ -6454,75 +6817,6 @@ Object { "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*%2F.snyk", }, - Object { - "//": "used to create manifest file for v3 protocol", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v3/projects/:project/repository/files", - "valid": Array [ - Object { - "queryParam": "file_path", - "values": Array [ - "**/package.json", - "**%2Fpackage.json", - "**/yarn.lock", - "**%2Fyarn.lock", - "**/package-lock.json", - "**%2Fpackage-lock.json", - "**/Gemfile", - "**%2FGemfile", - "**/Gemfile.lock", - "**%2FGemfile.lock", - "**/pom.xml", - "**%2Fpom.xml", - "**/*req*.txt", - "**%2F*req*.txt", - "**/pyproject.toml", - "**%2Fpyproject.toml", - "**/poetry.lock", - "**%2Fpoetry.lock", - "**/build.gradle", - "**%2Fbuild.gradle", - "**/gradle.lockfile", - "**%2Fgradle.lockfile", - "**/build.sbt", - "**%2Fbuild.sbt", - "**/.snyk", - "**%2F.snyk", - "**/packages.config", - "**%2Fpackages.config", - "**/*.csproj", - "**%2F*.csproj", - "**/*.vbproj", - "**%2F*.vbproj", - "**/*.fsproj", - "**%2F*.fsproj", - "**/project.json", - "**%2Fproject.json", - "**/Gopkg.toml", - "**%2FGopkg.toml", - "**/Gopkg.lock", - "**%2FGopkg.lock", - "**/vendor.json", - "**%2Fvendor.json", - "**/composer.lock", - "**%2Fcomposer.lock", - "**/composer.json", - "**%2Fcomposer.json", - "**/project.assets.json", - "**%2Fproject.assets.json", - "**/Podfile", - "**%2FPodfile", - "**/Podfile.lock", - "**%2FPodfile.lock", - "**/go.mod", - "**%2Fgo.mod", - "**/go.sum", - "**%2Fgo.sum", - ], - }, - ], - }, Object { "//": "used to update manifest file", "method": "PUT", @@ -6919,75 +7213,6 @@ Object { "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*%2F.snyk", }, - Object { - "//": "used to update manifest file for v3 protocol", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v3/projects/:project/repository/files", - "valid": Array [ - Object { - "queryParam": "file_path", - "values": Array [ - "**/package.json", - "**%2Fpackage.json", - "**/yarn.lock", - "**%2Fyarn.lock", - "**/package-lock.json", - "**%2Fpackage-lock.json", - "**/Gemfile", - "**%2FGemfile", - "**/Gemfile.lock", - "**%2FGemfile.lock", - "**/pom.xml", - "**%2Fpom.xml", - "**/*req*.txt", - "**%2F*req*.txt", - "**/pyproject.toml", - "**%2Fpyproject.toml", - "**/poetry.lock", - "**%2Fpoetry.lock", - "**/build.gradle", - "**%2Fbuild.gradle", - "**/gradle.lockfile", - "**%2Fgradle.lockfile", - "**/build.sbt", - "**%2Fbuild.sbt", - "**/.snyk", - "**%2F.snyk", - "**/packages.config", - "**%2Fpackages.config", - "**/*.csproj", - "**%2F*.csproj", - "**/*.vbproj", - "**%2F*.vbproj", - "**/*.fsproj", - "**%2F*.fsproj", - "**/project.json", - "**%2Fproject.json", - "**/Gopkg.toml", - "**%2FGopkg.toml", - "**/Gopkg.lock", - "**%2FGopkg.lock", - "**/vendor.json", - "**%2Fvendor.json", - "**/composer.lock", - "**%2Fcomposer.lock", - "**/composer.json", - "**%2Fcomposer.json", - "**/project.assets.json", - "**%2Fproject.assets.json", - "**/Podfile", - "**%2FPodfile", - "**/Podfile.lock", - "**%2FPodfile.lock", - "**/go.mod", - "**%2Fgo.mod", - "**/go.sum", - "**%2Fgo.sum", - ], - }, - ], - }, Object { "//": "allow webhooks to be added, to allow commits to be checked by Snyk. Rules for what is sent to Snyk are controlled in the \`public\` accept filters", "method": "POST", @@ -7079,34 +7304,31 @@ Object { "path": "/snykgit/*", }, Object { - "//": "list the group's members", - "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/groups/:id/members", - }, - Object { - "//": "list of languages in a project", - "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/languages", - }, - Object { - "//": "list of groups in a project", + "//": "used to get custom pull request template", "method": "GET", "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/groups", + "path": "/api/v4/projects/:project/repository/files*/snyk_pull_request_template.yaml", }, Object { - "//": "used to retrieve organization context from catalog-info.yaml", + "//": "used to get custom pull request template", "method": "GET", "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files/catalog-info.yaml/raw", + "path": "/api/v4/projects/:project/repository/files*%2Fsnyk_pull_request_template.yaml", }, Object { - "//": "get metadata", + "//": "used to determine the full dependency tree for v3 protocol", "method": "GET", "origin": "https://\${GITLAB}", - "path": "/api/v4/metadata", + "path": "/api/v3/projects/:project/repository/files", + "valid": Array [ + Object { + "queryParam": "file_path", + "values": Array [ + "**/.config/snyk_pull_request_template.yaml", + "**%2F.config%2Fsnyk_pull_request_template.yaml", + ], + }, + ], }, ], "public": Array [ @@ -7119,7 +7341,7 @@ Object { } `; -exports[`filter Rules Loading Injection of valid CODE GH rules - Testing azure-repos 1`] = ` +exports[`filter Rules Loading Injection of valid AppRisk rules - Testing azure-repos 1`] = ` Object { "private": Array [ Object { @@ -7500,6 +7722,204 @@ Object { "origin": "\${GIT_CLIENT_URL}", "path": "/snykgit/*", }, + Object { + "//": "get core api's location for sanity check", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "OPTIONS", + "origin": "https://\${AZURE_REPOS_HOST}", + "path": "/:org/_apis/Location", + }, + Object { + "//": "get resource access for sanity check", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}", + "path": "/:org/_apis/ResourceAreas", + }, + Object { + "//": "get specific repository for given organisation", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}", + "path": "/:org/_apis/git/repositories/:repo", + }, + Object { + "//": "get list of refs", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}", + "path": "/:org/_apis/git/repositories/:repo/refs", + }, + Object { + "//": "pull teams", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}", + "path": "/:org/_apis/teams", + }, + Object { + "//": "pull users via graph api", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://vssps.dev.azure.com/", + "path": "/:owner/_apis/graph/users", + }, + Object { + "//": "get api's connection status", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}", + "path": "/:org/_apis/connectionData", + }, + Object { + "//": "get core", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "OPTIONS", + "origin": "https://\${AZURE_REPOS_HOST}", + "path": "/:org/_apis/core", + }, + Object { + "//": "get git", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "OPTIONS", + "origin": "https://\${AZURE_REPOS_HOST}", + "path": "/:org/_apis/git", + }, + Object { + "//": "get list of repositories for given organisation", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}", + "path": "/:org/:project/_apis/git/repositories", + }, + Object { + "//": "get list of projects for given organisation", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}", + "path": "/:org/_apis/projects", + }, + Object { + "//": "pull teams", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}", + "path": "/:org/_apis/projects/:repo/teams", + }, + Object { + "//": "get list of commits for given repository", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}", + "path": "/:org/:project/_apis/git/repositories/:repo/commits", + }, + Object { + "//": "used to retrieve organization context from catalog-info.yaml", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}", + "path": "/:org/:project/_apis/git/repositories/:repo/files", + "valid": Array [ + Object { + "queryParam": "path", + "values": Array [ + "catalog-info.yaml", + ], + }, + ], + }, + Object { + "//": "get list of team's members", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}", + "path": "/:org/_apis/projects/:project/teams/:team/members", + }, + Object { + "//": "get list project's languages", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "OPTIONS", + "origin": "https://\${AZURE_REPOS_HOST}", + "path": "/:org/_apis/projectanalysis", + }, + Object { + "//": "pull project's languages metrics", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "OPTIONS", + "origin": "https://\${AZURE_REPOS_HOST}", + "path": "/:org/:project/_apis/projectanalysis/languagemetrics", + }, + Object { + "//": "expend team", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}", + "path": "/:org/_apis/projects/:project/teams/:team", + }, + Object { + "//": "get releases", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "OPTIONS", + "origin": "https://\${AZURE_REPOS_HOST}", + "path": "/:org/_apis/Release", + }, ], "public": Array [ Object { @@ -7511,20 +7931,9 @@ Object { } `; -exports[`filter Rules Loading Injection of valid CODE GH rules - Testing bitbucket-server 1`] = ` +exports[`filter Rules Loading Injection of valid AppRisk rules - Testing bitbucket-server 1`] = ` Object { "private": Array [ - Object { - "//": "list the user's projects", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects", - }, Object { "//": "list the project's repos", "auth": Object { @@ -8631,3069 +9040,2977 @@ Object { "origin": "https://\${BITBUCKET}", "path": "/rest/default-reviewers/1.0/projects/:projectKey/repos/:repo/reviewers", }, - ], - "public": Array [ - Object { - "//": "used for pushing up webhooks from bitbucket-server", - "method": "POST", - "path": "/webhook/bitbucket-server/:webhookId", - }, - ], -} -`; - -exports[`filter Rules Loading Injection of valid CODE GH rules - Testing github 1`] = ` -Object { - "private": Array [ Object { - "//": "search for user's repos", + "//": "used to get repo's commits", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/search/repositories", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:projectKey/repos/:repo/commits", }, Object { - "//": "list the user's info, and validate their credentials", + "//": "used to get specific commit", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/user", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:projectKey/repos/:repo/commits/:commit/diff", }, Object { - "//": "list the user's orgs", + "//": "used to retrieve organization context from catalog-info.yaml", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/user/orgs", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:projectKey/repos/:repo/raw/catalog-info.yaml", }, Object { - "//": "list the logged in user's repos", + "//": "list commit for a given repo", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/user/repos", + "origin": "https://\${BITBUCKET}", + "path": "/:workspace/:repo/commits", }, Object { - "//": "list a user's repos", + "//": "get a specific commit diff stats identified by the commit hash or name of a branch", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/users/:username/repos", + "origin": "https://\${BITBUCKET}", + "path": "/:workspace/:repo/diffstat/commits/:sha", }, Object { - "//": "list an orgs's repos", + "//": "list the user's workspaces", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/orgs/:username/repos", + "origin": "https://\${BITBUCKET_API}", + "path": "/workspaces", }, Object { - "//": "get a user's repo", + "//": "list the user's projects", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:user/:repo", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects", }, Object { - "//": "rate limit check", + "//": "used to get groups", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/rate_limit", + "origin": "https://\${BITBUCKET_API}", + "path": "/admin/groups", }, Object { - "//": "allow meta lookup on the api version", + "//": "used to get group's members", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/", - }, - Object { - "//": "allow webhooks to be added, to allow commits to be checked by Snyk. Rules for what is sent to Snyk are controlled in the \`public\` accept filters", - "method": "POST", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:user/:repo/hooks", + "origin": "https://\${BITBUCKET_API}", + "path": "/admin/groups/more-members", }, Object { - "//": "allow webhooks to be deleted, used to cleanup when a user deactivates or deletes a project", - "method": "DELETE", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:owner/:repo/hooks/:id", + "//": "used to get repositories for a given workspace", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/repositories/:workspace", }, Object { - "//": "used to create commit status messages", - "method": "POST", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:user/:repo/statuses/:sha", + "//": "used to get repository", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/repositories/:workspace/:repo", }, Object { - "//": "used to list branches on a repo", + "//": "used to get pull requests for a given repo", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:user/:repo/branches", + "origin": "https://\${BITBUCKET_API}", + "path": "/repositories/:workspace/:repo/pullrequests", }, Object { - "//": "used to get branch info", + "//": "list commits for a given repo", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:user/:repo/branches/:branch", + "origin": "https://\${BITBUCKET_API}", + "path": "/repositories/:workspace/:repo/commits", }, Object { - "//": "used to get status checks on a branch", + "//": "list members for a given workspace", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:user/:repo/branches/:branch/protection/required_status_checks/contexts", + "origin": "https://\${BITBUCKET_API}", + "path": "/workspaces/:workspace/members", }, + ], + "public": Array [ Object { - "//": "used to create status checks on a branch", + "//": "used for pushing up webhooks from bitbucket-server", "method": "POST", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:user/:repo/branches/:branch/protection/required_status_checks/contexts", - }, - Object { - "//": "used to delete status checks on a branch", - "method": "DELETE", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:user/:repo/branches/:branch/protection/required_status_checks/contexts", + "path": "/webhook/bitbucket-server/:webhookId", }, + ], +} +`; + +exports[`filter Rules Loading Injection of valid AppRisk rules - Testing bitbucket-server-bearer-auth 1`] = ` +Object { + "private": Array [ Object { - "//": "check if repo is public", + "//": "list the project's repos", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB}", - "path": "/:user/:repo", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:projectKey/repos", }, Object { - "//": "used to determine the full dependency tree", + "//": "list the user's repos", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/package.json", + "origin": "https://\${BITBUCKET_API}", + "path": "/repos", }, Object { - "//": "used to determine the full dependency tree", + "//": "fetch a given repo", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fpackage.json", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo", }, Object { - "//": "used to determine the full dependency tree", + "//": "read all file names to find manifests", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/package.json", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/files/:searchPath?", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fpackage.json", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/package.json", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/package-lock.json", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fpackage.json", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fpackage-lock.json", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/package-lock.json", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/package-lock.json", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fpackage-lock.json", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fpackage-lock.json", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Gemfile.lock", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Gemfile.lock", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FGemfile.lock", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FGemfile.lock", - }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/Gemfile.lock", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Gemfile", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2FGemfile.lock", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FGemfile", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Gemfile", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/pom.xml", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FGemfile", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fpom.xml", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/Gemfile", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/*req*.txt", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2FGemfile", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F*req*.txt", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/pom.xml", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/requirements/*.txt", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fpom.xml", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Frequirements%2F*.txt", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/pom.xml", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/pyproject.toml", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fpom.xml", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fpyproject.toml", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/*req*.txt", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/poetry.lock", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2F*req*.txt", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fpoetry.lock", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/*req*.txt", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Pipfile", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2F*req*.txt", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FPipfile", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/requirements/*.txt", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Pipfile.lock", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Frequirements%2F*.txt", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FPipfile.lock", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/requirements/*.txt", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/yarn.lock", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Frequirements%2F*.txt", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fyarn.lock", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/pyproject.toml", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/build.gradle", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fpyproject.toml", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fbuild.gradle", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/pyproject.toml", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/gradle.lockfile", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fpyproject.toml", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fgradle.lockfile", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/poetry.lock", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/gradle.properties", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fpoetry.lock", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fgradle.properties", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/poetry.lock", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Packages.props", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fpoetry.lock", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FPackages.props", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/yarn.lock", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Directory.Build.props", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fyarn.lock", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FDirectory.Build.props", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/yarn.lock", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Directory.Build.targets", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fyarn.lock", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FDirectory.Build.targets", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/build.gradle", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/build.sbt", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fbuild.gradle", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fbuild.sbt", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/build.gradle", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/packages.config", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fbuild.gradle", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fpackages.config", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/gradle.lockfile", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/*.csproj", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fgradle.lockfile", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F*.csproj", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/gradle.lockfile", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/*.vbproj", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fgradle.lockfile", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F*.vbproj", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/gradle.properties", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/*.fsproj", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fgradle.properties", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F*.fsproj", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/gradle.properties", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/project.json", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fgradle.properties", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fproject.json", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Packages.props", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Gopkg.toml", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FPackages.props", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FGopkg.toml", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/Packages.props", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Gopkg.lock", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2FPackages.props", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FGopkg.lock", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Directory.Build.props", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/vendor.json", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FDirectory.Build.props", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fvendor.json", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/Directory.Build.props", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/composer.lock", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2FDirectory.Build.props", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fcomposer.lock", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Directory.Build.targets", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/composer.json", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FDirectory.Build.targets", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fcomposer.json", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/Directory.Build.targets", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/project.assets.json", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2FDirectory.Build.targets", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fproject.assets.json", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/build.sbt", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Podfile", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fbuild.sbt", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FPodfile", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/build.sbt", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Podfile.lock", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fbuild.sbt", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FPodfile.lock", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/packages.config", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/go.mod", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fpackages.config", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fgo.mod", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/packages.config", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/go.sum", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fpackages.config", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fgo.sum", }, Object { - "//": "used to determine the full dependency tree", + "//": "used to scan Dockerfile", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/*.csproj", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/*Dockerfile*", }, Object { - "//": "used to determine the full dependency tree", + "//": "used to scan Dockerfile", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2F*.csproj", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F*Dockerfile*", }, Object { - "//": "used to determine the full dependency tree", + "//": "used to check if there's any ignore rules or existing patches", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/*.csproj", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/.snyk", }, Object { - "//": "used to determine the full dependency tree", + "//": "used to check if there's any ignore rules or existing patches", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2F*.csproj", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F.snyk", }, Object { - "//": "used to determine the full dependency tree", + "//": "get list of API capabilities", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/*.fsproj", + "origin": "https://\${BITBUCKET}", + "path": "/rest/capabilities", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2F*.fsproj", + "//": "allow webhooks to be added, to allow commits to be checked by Snyk. Rules for what is sent to Snyk are controlled in the \`public\` accept filters", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "POST", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/webhooks", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/*.fsproj", + "//": "allow webhooks to be deleted, used to cleanup when a user deactivates or deletes a project", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "DELETE", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/webhooks/:webhookId", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2F*.fsproj", + "//": "used to create commit status messages", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "POST", + "origin": "https://\${BITBUCKET}", + "path": "/rest/build-status/1.0/commits/:sha", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/*.vbproj", + "//": "used to create a new branch for fix PRs", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "POST", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/branches", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2F*.vbproj", + "//": "used to create or update a file for fix PRs", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "PUT", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/browse/*", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/*.vbproj", + "//": "used to create a pull request for fix PRs", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "POST", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/pull-requests", }, Object { - "//": "used to determine the full dependency tree", + "//": "used to query for open pull requests by branch", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2F*.vbproj", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/pull-requests", }, Object { - "//": "used to determine the full dependency tree", + "//": "used to query for a merge-base for a pull request", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/project.json", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/pull-requests/:pullRequestId/changes", }, Object { - "//": "used to determine the full dependency tree", + "//": "used to check for a repo's default branch", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fproject.json", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/branches/default", }, Object { - "//": "used to determine the full dependency tree", + "//": "Used to get a branch specified by query string", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/project.json", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/branches:filterText?", }, Object { - "//": "used to determine the full dependency tree", + "//": "get a specific commit identified by the commit hash or name of a branch", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fproject.json", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/commits/:sha", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Gopkg.toml", - }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FGopkg.toml", - }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/Gopkg.toml", + "//": "used to create a Code Insights report", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "PUT", + "origin": "https://\${BITBUCKET}", + "path": "/rest/insights/:apiVersion/projects/:project/repos/:repo/commits/:sha/reports/:report", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2FGopkg.toml", + "//": "used to remove a Code Insights report", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "DELETE", + "origin": "https://\${BITBUCKET}", + "path": "/rest/insights/:apiVersion/projects/:project/repos/:repo/commits/:sha/reports/:report", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Gopkg.lock", + "//": "used to add Code Insights annotations to a report", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "POST", + "origin": "https://\${BITBUCKET}", + "path": "/rest/insights/:apiVersion/projects/:project/repos/:repo/commits/:sha/reports/:report/annotations", }, Object { - "//": "used to determine the full dependency tree", + "//": "get list of API capabilities for Code Insights", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FGopkg.lock", + "origin": "https://\${BITBUCKET}", + "path": "/rest/insights/:apiVersion/capabilities", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/Gopkg.lock", + "//": "used to remove Code Insights annotations for a report", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "DELETE", + "origin": "https://\${BITBUCKET}", + "path": "/rest/insights/:apiVersion/projects/:project/repos/:repo/commits/:sha/reports/:report/annotations", }, Object { - "//": "used to determine the full dependency tree", + "//": "used to get current user. so we'll be able to fetch current user's repos, that are not part of any project.", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2FGopkg.lock", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/application-properties", }, Object { - "//": "used to determine the full dependency tree", + "//": "used to get current user. so we'll be able to fetch current user's repos, that are not part of any project - this is using atlassian's SDK api.", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/vendor.json", + "origin": "https://\${BITBUCKET}", + "path": "/plugins/servlet/applinks/whoami", }, Object { - "//": "used to determine the full dependency tree", + "//": "used to get the current user's project-like structure. So we'll be able to bind all user's private repos (that are not included in different project)", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fvendor.json", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:projectKey", }, Object { - "//": "used to determine the full dependency tree", + "//": "used to check if the user has admin or higher permissions", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/vendor.json", + "origin": "https://\${BITBUCKET_API}", + "path": "/admin/permissions/users", }, Object { - "//": "used to determine the full dependency tree", + "//": "used to get all the users. it's called only for admin permissioned user. to retrieve all the repos they can access", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fvendor.json", + "origin": "https://\${BITBUCKET_API}", + "path": "/users", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/composer.lock", + "//": "used to redirect requests to snyk git client", + "method": "any", + "origin": "\${GIT_CLIENT_URL}", + "path": "/snykgit/*", }, Object { - "//": "used to determine the full dependency tree", + "//": "used to fetch a given repo from API", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fcomposer.lock", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo", }, Object { - "//": "used to determine the full dependency tree", + "//": "used to get default reviewers for a pull request", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/composer.lock", + "origin": "https://\${BITBUCKET}", + "path": "/rest/default-reviewers/1.0/projects/:projectKey/repos/:repo/reviewers", }, Object { - "//": "used to determine the full dependency tree", + "//": "used to get repo's commits", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fcomposer.lock", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:projectKey/repos/:repo/commits", }, Object { - "//": "used to determine the full dependency tree", + "//": "used to get specific commit", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/composer.json", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:projectKey/repos/:repo/commits/:commit/diff", }, Object { - "//": "used to determine the full dependency tree", + "//": "used to retrieve organization context from catalog-info.yaml", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fcomposer.json", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:projectKey/repos/:repo/raw/catalog-info.yaml", }, Object { - "//": "used to determine the full dependency tree", + "//": "list commit for a given repo", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/composer.json", + "origin": "https://\${BITBUCKET}", + "path": "/:workspace/:repo/commits", }, Object { - "//": "used to determine the full dependency tree", + "//": "get a specific commit diff stats identified by the commit hash or name of a branch", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fcomposer.json", + "origin": "https://\${BITBUCKET}", + "path": "/:workspace/:repo/diffstat/commits/:sha", }, Object { - "//": "used to determine the full dependency tree", + "//": "list the user's workspaces", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/project.assets.json", + "origin": "https://\${BITBUCKET_API}", + "path": "/workspaces", }, Object { - "//": "used to determine the full dependency tree", + "//": "list the user's projects", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fproject.assets.json", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects", }, Object { - "//": "used to determine the full dependency tree", + "//": "used to get groups", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/project.assets.json", + "origin": "https://\${BITBUCKET_API}", + "path": "/admin/groups", }, Object { - "//": "used to determine the full dependency tree", + "//": "used to get group's members", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fproject.assets.json", + "origin": "https://\${BITBUCKET_API}", + "path": "/admin/groups/more-members", }, Object { - "//": "used to determine the full dependency tree", + "//": "used to get repositories for a given workspace", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Podfile", + "origin": "https://\${BITBUCKET_API}", + "path": "/repositories/:workspace", }, Object { - "//": "used to determine the full dependency tree", + "//": "used to get repository", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FPodfile", + "origin": "https://\${BITBUCKET_API}", + "path": "/repositories/:workspace/:repo", }, Object { - "//": "used to determine the full dependency tree", + "//": "used to get pull requests for a given repo", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Podfile.lock", + "origin": "https://\${BITBUCKET_API}", + "path": "/repositories/:workspace/:repo/pullrequests", }, Object { - "//": "used to determine the full dependency tree", + "//": "list commits for a given repo", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FPodfile.lock", + "origin": "https://\${BITBUCKET_API}", + "path": "/repositories/:workspace/:repo/commits", }, Object { - "//": "used to determine the full dependency tree", + "//": "list members for a given workspace", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/Podfile", + "origin": "https://\${BITBUCKET_API}", + "path": "/workspaces/:workspace/members", }, + ], + "public": Array [ Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2FPodfile", + "//": "used for pushing up webhooks from bitbucket-server", + "method": "POST", + "path": "/webhook/bitbucket-server/:webhookId", }, + ], +} +`; + +exports[`filter Rules Loading Injection of valid AppRisk rules - Testing github 1`] = ` +Object { + "private": Array [ Object { - "//": "used to determine the full dependency tree", + "//": "search for user's repos", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/Podfile.lock", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/search/repositories", }, Object { - "//": "used to determine the full dependency tree", + "//": "list the user's info, and validate their credentials", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2FPodfile.lock", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/user", }, Object { - "//": "used to determine the full dependency tree", + "//": "list the user's orgs", "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/go.mod", + "path": "/user/orgs", }, Object { - "//": "used to determine the full dependency tree", + "//": "list the logged in user's repos", "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fgo.mod", + "path": "/user/repos", }, Object { - "//": "used to determine the full dependency tree", + "//": "list a user's repos", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/go.mod", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/users/:username/repos", }, Object { - "//": "used to determine the full dependency tree", + "//": "list an orgs's repos", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fgo.mod", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/orgs/:username/repos", }, Object { - "//": "used to determine the full dependency tree", + "//": "get a user's repo", "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/go.sum", + "path": "/repos/:user/:repo", }, Object { - "//": "used to determine the full dependency tree", + "//": "rate limit check", "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fgo.sum", + "path": "/rate_limit", }, Object { - "//": "used to determine the full dependency tree", + "//": "allow meta lookup on the api version", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/go.sum", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fgo.sum", + "//": "allow webhooks to be added, to allow commits to be checked by Snyk. Rules for what is sent to Snyk are controlled in the \`public\` accept filters", + "method": "POST", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:user/:repo/hooks", }, Object { - "//": "used to scan Dockerfile", - "method": "GET", + "//": "allow webhooks to be deleted, used to cleanup when a user deactivates or deletes a project", + "method": "DELETE", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/*Dockerfile*", + "path": "/repos/:owner/:repo/hooks/:id", }, Object { - "//": "used to scan Dockerfile", - "method": "GET", + "//": "used to create commit status messages", + "method": "POST", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2F*Dockerfile*", + "path": "/repos/:user/:repo/statuses/:sha", }, Object { - "//": "used to scan Dockerfile", + "//": "used to list branches on a repo", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/*Dockerfile*", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:user/:repo/branches", }, Object { - "//": "used to scan Dockerfile", + "//": "used to get branch info", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2F*Dockerfile*", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:user/:repo/branches/:branch", }, Object { - "//": "used to check if there's any ignore rules or existing patches", + "//": "used to get status checks on a branch", "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/.snyk", + "path": "/repos/:user/:repo/branches/:branch/protection/required_status_checks/contexts", }, Object { - "//": "used to check if there's any ignore rules or existing patches", - "method": "GET", + "//": "used to create status checks on a branch", + "method": "POST", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2F.snyk", + "path": "/repos/:user/:repo/branches/:branch/protection/required_status_checks/contexts", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/.snyk", + "//": "used to delete status checks on a branch", + "method": "DELETE", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:user/:repo/branches/:branch/protection/required_status_checks/contexts", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2F.snyk", - }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*/package.json", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2Fpackage.json", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", "path": "/:name/:repo/:path*/package.json", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", "path": "/:name/:repo/:path*%2Fpackage.json", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*/package-lock.json", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2Fpackage-lock.json", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", "path": "/:name/:repo/:path*/package-lock.json", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", "path": "/:name/:repo/:path*%2Fpackage-lock.json", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*/Gemfile.lock", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2FGemfile.lock", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", "path": "/:name/:repo/:path*/Gemfile.lock", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", "path": "/:name/:repo/:path*%2FGemfile.lock", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*/Gemfile", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2FGemfile", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", "path": "/:name/:repo/:path*/Gemfile", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", "path": "/:name/:repo/:path*%2FGemfile", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*/pom.xml", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2Fpom.xml", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", "path": "/:name/:repo/:path*/pom.xml", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", "path": "/:name/:repo/:path*%2Fpom.xml", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*/*req*.txt", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2F*req*.txt", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", "path": "/:name/:repo/:path*/*req*.txt", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", "path": "/:name/:repo/:path*%2F*req*.txt", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/requirements/*.txt", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Frequirements%2F*.txt", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/requirements/*.txt", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Frequirements%2F*.txt", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*/pyproject.toml", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2Fpyproject.toml", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", "path": "/:name/:repo/:path*/pyproject.toml", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", "path": "/:name/:repo/:path*%2Fpyproject.toml", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*/poetry.lock", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2Fpoetry.lock", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", "path": "/:name/:repo/:path*/poetry.lock", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", "path": "/:name/:repo/:path*%2Fpoetry.lock", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*/yarn.lock", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2Fyarn.lock", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", "path": "/:name/:repo/:path*/yarn.lock", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", "path": "/:name/:repo/:path*%2Fyarn.lock", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*/build.gradle", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2Fbuild.gradle", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", "path": "/:name/:repo/:path*/build.gradle", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", "path": "/:name/:repo/:path*%2Fbuild.gradle", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*/gradle.lockfile", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2Fgradle.lockfile", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", "path": "/:name/:repo/:path*/gradle.lockfile", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", "path": "/:name/:repo/:path*%2Fgradle.lockfile", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*/gradle.properties", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2Fgradle.properties", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", "path": "/:name/:repo/:path*/gradle.properties", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", "path": "/:name/:repo/:path*%2Fgradle.properties", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*/Packages.props", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2FPackages.props", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", "path": "/:name/:repo/:path*/Packages.props", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", "path": "/:name/:repo/:path*%2FPackages.props", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*/Directory.Build.props", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2FDirectory.Build.props", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", "path": "/:name/:repo/:path*/Directory.Build.props", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", "path": "/:name/:repo/:path*%2FDirectory.Build.props", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*/Directory.Build.targets", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2FDirectory.Build.targets", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", "path": "/:name/:repo/:path*/Directory.Build.targets", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", "path": "/:name/:repo/:path*%2FDirectory.Build.targets", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*/build.sbt", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2Fbuild.sbt", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", "path": "/:name/:repo/:path*/build.sbt", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", "path": "/:name/:repo/:path*%2Fbuild.sbt", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*/packages.config", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2Fpackages.config", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", "path": "/:name/:repo/:path*/packages.config", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", "path": "/:name/:repo/:path*%2Fpackages.config", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*/*.csproj", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2F*.csproj", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", "path": "/:name/:repo/:path*/*.csproj", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", "path": "/:name/:repo/:path*%2F*.csproj", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*/*.fsproj", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2F*.fsproj", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", "path": "/:name/:repo/:path*/*.fsproj", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", "path": "/:name/:repo/:path*%2F*.fsproj", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*/*.vbproj", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2F*.vbproj", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", "path": "/:name/:repo/:path*/*.vbproj", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", "path": "/:name/:repo/:path*%2F*.vbproj", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*/project.json", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2Fproject.json", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", "path": "/:name/:repo/:path*/project.json", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", "path": "/:name/:repo/:path*%2Fproject.json", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*/Gopkg.toml", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2FGopkg.toml", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", "path": "/:name/:repo/:path*/Gopkg.toml", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", "path": "/:name/:repo/:path*%2FGopkg.toml", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*/Gopkg.lock", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2FGopkg.lock", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", "path": "/:name/:repo/:path*/Gopkg.lock", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", "path": "/:name/:repo/:path*%2FGopkg.lock", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*/vendor.json", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2Fvendor.json", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", "path": "/:name/:repo/:path*/vendor.json", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", "path": "/:name/:repo/:path*%2Fvendor.json", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*/composer.lock", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2Fcomposer.lock", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", "path": "/:name/:repo/:path*/composer.lock", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", "path": "/:name/:repo/:path*%2Fcomposer.lock", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*/composer.json", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2Fcomposer.json", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", "path": "/:name/:repo/:path*/composer.json", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", "path": "/:name/:repo/:path*%2Fcomposer.json", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*/project.assets.json", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2Fproject.assets.json", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", "path": "/:name/:repo/:path*/project.assets.json", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", "path": "/:name/:repo/:path*%2Fproject.assets.json", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*/Podfile", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2FPodfile", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*/Podfile.lock", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2FPodfile.lock", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", "path": "/:name/:repo/:path*/Podfile", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", "path": "/:name/:repo/:path*%2FPodfile", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", "path": "/:name/:repo/:path*/Podfile.lock", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", "path": "/:name/:repo/:path*%2FPodfile.lock", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*/go.mod", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2Fgo.mod", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", "path": "/:name/:repo/:path*/go.mod", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", "path": "/:name/:repo/:path*%2Fgo.mod", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*/go.sum", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2Fgo.sum", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", "path": "/:name/:repo/:path*/go.sum", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to determine the full dependency tree", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", "path": "/:name/:repo/:path*%2Fgo.sum", }, Object { - "//": "used to update Dockerfile", - "method": "PUT", + "//": "used to scan Dockerfile", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*/*Dockerfile*", }, Object { - "//": "used to update Dockerfile", - "method": "PUT", + "//": "used to scan Dockerfile", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2F*Dockerfile*", }, Object { - "//": "used to update Dockerfile", - "method": "PUT", + "//": "used to scan Dockerfile", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", "path": "/:name/:repo/:path*/*Dockerfile*", }, Object { - "//": "used to update Dockerfile", - "method": "PUT", + "//": "used to scan Dockerfile", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", "path": "/:name/:repo/:path*%2F*Dockerfile*", }, Object { - "//": "used to write or update ignore rules or existing patches", - "method": "PUT", + "//": "used to check if there's any ignore rules or existing patches", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*/.snyk", }, Object { - "//": "used to write or update ignore rules or existing patches", - "method": "PUT", + "//": "used to check if there's any ignore rules or existing patches", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2F.snyk", }, Object { - "//": "get details of the repo", + "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/.snyk", }, Object { - "//": "get the details of the commit to determine its SHA", + "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/commits/:ref", - "valid": Array [ - Object { - "header": "accept", - "values": Array [ - "application/vnd.github.v4.sha", - ], - }, - ], + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2F.snyk", }, Object { - "//": "get a list of all the refs to match find whether an existing PR is open", - "method": "GET", + "//": "used to update manifest or lock", + "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/git/refs", + "path": "/repos/:name/:repo/contents/:path*/package.json", }, Object { - "//": "get the head commit of an individual ref", - "method": "GET", + "//": "used to update manifest or lock", + "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/git/refs/heads/:ref", + "path": "/repos/:name/:repo/contents/:path*%2Fpackage.json", }, Object { - "//": "get the details of an individual ref", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/git/refs/:ref", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/package.json", }, Object { - "//": "compares two commits against each other", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/compare/:base...:head", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fpackage.json", }, Object { - "//": "search for open snyk pull requests", - "method": "GET", + "//": "used to update manifest or lock", + "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/pulls", + "path": "/repos/:name/:repo/contents/:path*/package-lock.json", }, Object { - "//": "get pull request data for getting merge sha and tracking PR processing state", - "method": "GET", + "//": "used to update manifest or lock", + "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/pulls/:pull_number", + "path": "/repos/:name/:repo/contents/:path*%2Fpackage-lock.json", }, Object { - "//": "get pull request file names", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/pulls/:pull_number/files", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/package-lock.json", }, Object { - "//": "create branches for new commits", - "method": "POST", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/git/refs", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fpackage-lock.json", }, Object { - "//": "create the pull request", - "method": "POST", + "//": "used to update manifest or lock", + "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/pulls", + "path": "/repos/:name/:repo/contents/:path*/Gemfile.lock", }, Object { - "//": "add pull request assignees", - "method": "POST", + "//": "used to update manifest or lock", + "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/issues/:pull_number/assignees", + "path": "/repos/:name/:repo/contents/:path*%2FGemfile.lock", }, Object { - "//": "update ref", - "method": "PATCH", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/git/refs/:sha", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Gemfile.lock", }, Object { - "//": "update ref head", - "method": "PATCH", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/git/refs/heads/:ref", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FGemfile.lock", }, Object { - "//": "get list of all files in a repo", - "method": "GET", + "//": "used to update manifest or lock", + "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/git/trees/:ref", + "path": "/repos/:name/:repo/contents/:path*/Gemfile", }, Object { - "//": "used to get repo's contributors list", - "method": "GET", + "//": "used to update manifest or lock", + "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:owner/:repo/commits", + "path": "/repos/:name/:repo/contents/:path*%2FGemfile", }, Object { - "//": "used to redirect requests to snyk git client", - "method": "any", - "origin": "\${GIT_CLIENT_URL}", - "path": "/snykgit/*", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Gemfile", }, Object { - "//": "query graphql", - "method": "POST", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_GRAPHQL}", - "path": "/graphql", - }, + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FGemfile", + }, Object { - "//": "used to get given manifest file", - "method": "GET", + "//": "used to update manifest or lock", + "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:owner/:repo/git/blobs/:sha", + "path": "/repos/:name/:repo/contents/:path*/pom.xml", }, - ], - "public": Array [ Object { - "//": "used for pushing up webhooks from github", - "method": "POST", - "path": "/webhook/github", - "valid": Array [ - Object { - "//": "accept all pull request state changes (these don't have files in them)", - "path": "pull_request.state", - "value": "open", - }, - Object { - "path": "commits.*.added.*", - "value": "package.json", - }, - Object { - "path": "commits.*.modified.*", - "value": "package.json", - }, - Object { - "path": "commits.*.added.*", - "value": "package-lock.json", - }, - Object { - "path": "commits.*.modified.*", - "value": "package-lock.json", - }, - Object { - "path": "commits.*.added.*", - "value": "Gemfile.lock", - }, - Object { - "path": "commits.*.modified.*", - "value": "Gemfile.lock", - }, - Object { - "path": "commits.*.added.*", - "value": "*req*.txt", - }, - Object { - "path": "commits.*.modified.*", - "value": "*req*.txt", - }, - Object { - "path": "commits.*.added.*", - "value": "requirements%2F*.txt", - }, - Object { - "path": "commits.*.modified.*", - "value": "requirements%2F*.txt", - }, - Object { - "path": "commits.*.added.*", - "value": "requirements/*.txt", - }, - Object { - "path": "commits.*.modified.*", - "value": "requirements/*.txt", - }, - Object { - "path": "commits.*.added.*", - "value": "pyproject.toml", - }, - Object { - "path": "commits.*.modified.*", - "value": "pyproject.toml", - }, - Object { - "path": "commits.*.added.*", - "value": "poetry.lock", - }, - Object { - "path": "commits.*.modified.*", - "value": "poetry.lock", - }, - Object { - "path": "commits.*.added.*", - "value": "Pipfile", - }, - Object { - "path": "commits.*.modified.*", - "value": "Pipfile", - }, - Object { - "path": "commits.*.added.*", - "value": "Pipfile.lock", - }, - Object { - "path": "commits.*.modified.*", - "value": "Pipfile.lock", - }, - Object { - "path": "commits.*.added.*", - "value": "pom.xml", - }, - Object { - "path": "commits.*.modified.*", - "value": "pom.xml", - }, - Object { - "path": "commits.*.added.*", - "value": "build.gradle", - }, - Object { - "path": "commits.*.modified.*", - "value": "build.gradle", - }, - Object { - "path": "commits.*.added.*", - "value": "gradle.lockfile", - }, - Object { - "path": "commits.*.modified.*", - "value": "gradle.lockfile", - }, - Object { - "path": "commits.*.added.*", - "value": "gradle.properties", - }, - Object { - "path": "commits.*.modified.*", - "value": "gradle.properties", - }, - Object { - "path": "commits.*.added.*", - "value": "Packages.props", - }, - Object { - "path": "commits.*.modified.*", - "value": "Packages.props", - }, - Object { - "path": "commits.*.added.*", - "value": "Directory.Build.props", - }, - Object { - "path": "commits.*.modified.*", - "value": "Directory.Build.props", - }, - Object { - "path": "commits.*.added.*", - "value": "Directory.Build.targets", - }, - Object { - "path": "commits.*.modified.*", - "value": "Directory.Build.targets", - }, - Object { - "path": "commits.*.added.*", - "value": "build.sbt", - }, - Object { - "path": "commits.*.modified.*", - "value": "build.sbt", - }, - Object { - "path": "commits.*.added.*", - "value": "yarn.lock", - }, - Object { - "path": "commits.*.modified.*", - "value": "yarn.lock", - }, - Object { - "path": "commits.*.added.*", - "value": ".snyk", - }, - Object { - "path": "commits.*.modified.*", - "value": ".snyk", - }, - Object { - "path": "commits.*.added.*", - "value": "packages.config", - }, - Object { - "path": "commits.*.modified.*", - "value": "packages.config", - }, - Object { - "path": "commits.*.added.*", - "value": "*.csproj", - }, - Object { - "path": "commits.*.modified.*", - "value": "*.csproj", - }, - Object { - "path": "commits.*.added.*", - "value": "*.vbproj", - }, - Object { - "path": "commits.*.modified.*", - "value": "*.vbproj", - }, - Object { - "path": "commits.*.added.*", - "value": "*.fsproj", - }, - Object { - "path": "commits.*.modified.*", - "value": "*.fsproj", - }, - Object { - "path": "commits.*.added.*", - "value": "project.json", - }, - Object { - "path": "commits.*.modified.*", - "value": "project.json", - }, - Object { - "path": "commits.*.added.*", - "value": "Gopkg.toml", - }, - Object { - "path": "commits.*.modified.*", - "value": "Gopkg.toml", - }, - Object { - "path": "commits.*.added.*", - "value": "Gopkg.lock", - }, - Object { - "path": "commits.*.modified.*", - "value": "Gopkg.lock", - }, - Object { - "path": "commits.*.added.*", - "value": "vendor.json", - }, - Object { - "path": "commits.*.modified.*", - "value": "vendor.json", - }, - Object { - "path": "commits.*.added.*", - "value": "composer.lock", - }, - Object { - "path": "commits.*.modified.*", - "value": "composer.lock", - }, - Object { - "path": "commits.*.added.*", - "value": "composer.json", - }, - Object { - "path": "commits.*.modified.*", - "value": "composer.json", - }, - Object { - "path": "commits.*.added.*", - "value": "project.assets.json", - }, - Object { - "path": "commits.*.modified.*", - "value": "project.assets.json", - }, - Object { - "path": "commits.*.added.*", - "value": "Podfile", - }, - Object { - "path": "commits.*.modified.*", - "value": "Podfile", - }, - Object { - "path": "commits.*.added.*", - "value": "Podfile.lock", - }, - Object { - "path": "commits.*.modified.*", - "value": "Podfile.lock", - }, - Object { - "path": "commits.*.added.*", - "value": "go.mod", - }, - Object { - "path": "commits.*.modified.*", - "value": "go.mod", - }, - Object { - "path": "commits.*.added.*", - "value": "go.sum", - }, - Object { - "path": "commits.*.modified.*", - "value": "go.sum", - }, - ], + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpom.xml", }, Object { - "//": "used for pushing up webhooks from github", - "method": "POST", - "path": "/webhook/github/:webhookId", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/pom.xml", }, - ], -} -`; - -exports[`filter Rules Loading Injection of valid CODE GH rules - Testing github-enterprise 1`] = ` -Object { - "private": Array [ Object { - "//": "search for user's repos", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/search/repositories", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fpom.xml", }, Object { - "//": "list the user's info, and validate their credentials", - "method": "GET", + "//": "used to update manifest or lock", + "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/user", + "path": "/repos/:name/:repo/contents/:path*/*req*.txt", }, Object { - "//": "list the user's orgs", - "method": "GET", + "//": "used to update manifest or lock", + "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/user/orgs", + "path": "/repos/:name/:repo/contents/:path*%2F*req*.txt", }, Object { - "//": "list the logged in user's repos", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/user/repos", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/*req*.txt", }, Object { - "//": "list a user's repos", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/users/:username/repos", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2F*req*.txt", }, Object { - "//": "list an orgs's repos", - "method": "GET", + "//": "used to update manifest or lock", + "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/orgs/:username/repos", + "path": "/repos/:name/:repo/contents/:path*/pyproject.toml", }, Object { - "//": "get a user's repo", - "method": "GET", + "//": "used to update manifest or lock", + "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:user/:repo", + "path": "/repos/:name/:repo/contents/:path*%2Fpyproject.toml", }, Object { - "//": "rate limit check", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/rate_limit", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/pyproject.toml", }, Object { - "//": "allow meta lookup on the api version", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fpyproject.toml", }, Object { - "//": "allow webhooks to be added, to allow commits to be checked by Snyk. Rules for what is sent to Snyk are controlled in the \`public\` accept filters", - "method": "POST", + "//": "used to update manifest or lock", + "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:user/:repo/hooks", + "path": "/repos/:name/:repo/contents/:path*/poetry.lock", }, Object { - "//": "allow webhooks to be deleted, used to cleanup when a user deactivates or deletes a project", - "method": "DELETE", + "//": "used to update manifest or lock", + "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:owner/:repo/hooks/:id", + "path": "/repos/:name/:repo/contents/:path*%2Fpoetry.lock", }, Object { - "//": "used to create commit status messages", - "method": "POST", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:user/:repo/statuses/:sha", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/poetry.lock", }, Object { - "//": "used to list branches on a repo", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:user/:repo/branches", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fpoetry.lock", }, Object { - "//": "used to get branch info", - "method": "GET", + "//": "used to update manifest or lock", + "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:user/:repo/branches/:branch", + "path": "/repos/:name/:repo/contents/:path*/yarn.lock", }, Object { - "//": "used to get status checks on a branch", - "method": "GET", + "//": "used to update manifest or lock", + "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:user/:repo/branches/:branch/protection/required_status_checks/contexts", + "path": "/repos/:name/:repo/contents/:path*%2Fyarn.lock", }, Object { - "//": "used to create status checks on a branch", - "method": "POST", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:user/:repo/branches/:branch/protection/required_status_checks/contexts", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/yarn.lock", }, Object { - "//": "used to delete status checks on a branch", - "method": "DELETE", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:user/:repo/branches/:branch/protection/required_status_checks/contexts", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fyarn.lock", }, Object { - "//": "check if repo is public", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB}", - "path": "/:user/:repo", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/build.gradle", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", + "//": "used to update manifest or lock", + "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/package.json", + "path": "/repos/:name/:repo/contents/:path*%2Fbuild.gradle", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fpackage.json", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/build.gradle", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/package-lock.json", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fbuild.gradle", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", + "//": "used to update manifest or lock", + "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fpackage-lock.json", + "path": "/repos/:name/:repo/contents/:path*/gradle.lockfile", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", + "//": "used to update manifest or lock", + "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Gemfile.lock", + "path": "/repos/:name/:repo/contents/:path*%2Fgradle.lockfile", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FGemfile.lock", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/gradle.lockfile", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Gemfile", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fgradle.lockfile", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", + "//": "used to update manifest or lock", + "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FGemfile", + "path": "/repos/:name/:repo/contents/:path*/gradle.properties", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", + "//": "used to update manifest or lock", + "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/pom.xml", + "path": "/repos/:name/:repo/contents/:path*%2Fgradle.properties", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fpom.xml", - }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/*req*.txt", - }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2F*req*.txt", - }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/requirements/*.txt", - }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Frequirements%2F*.txt", - }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/pyproject.toml", - }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fpyproject.toml", - }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/poetry.lock", - }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fpoetry.lock", - }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/yarn.lock", - }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fyarn.lock", - }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/build.gradle", - }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fbuild.gradle", - }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/gradle.lockfile", - }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fgradle.lockfile", - }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/gradle.properties", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/gradle.properties", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fgradle.properties", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fgradle.properties", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", + "//": "used to update manifest or lock", + "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*/Packages.props", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", + "//": "used to update manifest or lock", + "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2FPackages.props", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Directory.Build.props", - }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FDirectory.Build.props", - }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Directory.Build.targets", - }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FDirectory.Build.targets", - }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/build.sbt", - }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fbuild.sbt", - }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/packages.config", - }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fpackages.config", - }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/*.csproj", - }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2F*.csproj", - }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/*.fsproj", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Packages.props", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2F*.fsproj", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FPackages.props", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", + "//": "used to update manifest or lock", + "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/*.vbproj", + "path": "/repos/:name/:repo/contents/:path*/Directory.Build.props", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", + "//": "used to update manifest or lock", + "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2F*.vbproj", + "path": "/repos/:name/:repo/contents/:path*%2FDirectory.Build.props", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/project.json", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Directory.Build.props", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fproject.json", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FDirectory.Build.props", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", + "//": "used to update manifest or lock", + "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Gopkg.toml", + "path": "/repos/:name/:repo/contents/:path*/Directory.Build.targets", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", + "//": "used to update manifest or lock", + "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FGopkg.toml", + "path": "/repos/:name/:repo/contents/:path*%2FDirectory.Build.targets", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Gopkg.lock", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Directory.Build.targets", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FGopkg.lock", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FDirectory.Build.targets", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", + "//": "used to update manifest or lock", + "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/vendor.json", + "path": "/repos/:name/:repo/contents/:path*/build.sbt", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", + "//": "used to update manifest or lock", + "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fvendor.json", + "path": "/repos/:name/:repo/contents/:path*%2Fbuild.sbt", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/composer.lock", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/build.sbt", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fcomposer.lock", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fbuild.sbt", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", + "//": "used to update manifest or lock", + "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/composer.json", + "path": "/repos/:name/:repo/contents/:path*/packages.config", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", + "//": "used to update manifest or lock", + "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fcomposer.json", + "path": "/repos/:name/:repo/contents/:path*%2Fpackages.config", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/project.assets.json", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/packages.config", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fproject.assets.json", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fpackages.config", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", + "//": "used to update manifest or lock", + "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Podfile", + "path": "/repos/:name/:repo/contents/:path*/*.csproj", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", + "//": "used to update manifest or lock", + "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FPodfile", + "path": "/repos/:name/:repo/contents/:path*%2F*.csproj", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Podfile.lock", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/*.csproj", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FPodfile.lock", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2F*.csproj", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", + "//": "used to update manifest or lock", + "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/go.mod", + "path": "/repos/:name/:repo/contents/:path*/*.fsproj", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", + "//": "used to update manifest or lock", + "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fgo.mod", + "path": "/repos/:name/:repo/contents/:path*%2F*.fsproj", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", + "//": "used to update manifest or lock", + "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/go.mod", + "path": "/:name/:repo/:path*/*.fsproj", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", + "//": "used to update manifest or lock", + "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fgo.mod", + "path": "/:name/:repo/:path*%2F*.fsproj", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", + "//": "used to update manifest or lock", + "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/go.sum", + "path": "/repos/:name/:repo/contents/:path*/*.vbproj", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", + "//": "used to update manifest or lock", + "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fgo.sum", + "path": "/repos/:name/:repo/contents/:path*%2F*.vbproj", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", + "//": "used to update manifest or lock", + "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/go.sum", + "path": "/:name/:repo/:path*/*.vbproj", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", + "//": "used to update manifest or lock", + "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fgo.sum", + "path": "/:name/:repo/:path*%2F*.vbproj", }, Object { - "//": "used to scan Dockerfile", - "method": "GET", + "//": "used to update manifest or lock", + "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/*Dockerfile*", + "path": "/repos/:name/:repo/contents/:path*/project.json", }, Object { - "//": "used to scan Dockerfile", - "method": "GET", + "//": "used to update manifest or lock", + "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2F*Dockerfile*", + "path": "/repos/:name/:repo/contents/:path*%2Fproject.json", }, Object { - "//": "used to scan Dockerfile", - "method": "GET", + "//": "used to update manifest or lock", + "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/*Dockerfile*", + "path": "/:name/:repo/:path*/project.json", }, Object { - "//": "used to scan Dockerfile", - "method": "GET", + "//": "used to update manifest or lock", + "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2F*Dockerfile*", + "path": "/:name/:repo/:path*%2Fproject.json", }, Object { "//": "used to update manifest or lock", "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/package.json", + "path": "/repos/:name/:repo/contents/:path*/Gopkg.toml", }, Object { "//": "used to update manifest or lock", "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fpackage.json", + "path": "/repos/:name/:repo/contents/:path*%2FGopkg.toml", }, Object { "//": "used to update manifest or lock", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/package-lock.json", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Gopkg.toml", }, Object { "//": "used to update manifest or lock", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fpackage-lock.json", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FGopkg.toml", }, Object { "//": "used to update manifest or lock", "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Gemfile.lock", + "path": "/repos/:name/:repo/contents/:path*/Gopkg.lock", }, Object { "//": "used to update manifest or lock", "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FGemfile.lock", + "path": "/repos/:name/:repo/contents/:path*%2FGopkg.lock", }, Object { "//": "used to update manifest or lock", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Gemfile", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Gopkg.lock", }, Object { "//": "used to update manifest or lock", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FGemfile", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FGopkg.lock", }, Object { "//": "used to update manifest or lock", "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/pom.xml", + "path": "/repos/:name/:repo/contents/:path*/vendor.json", }, Object { "//": "used to update manifest or lock", "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fpom.xml", + "path": "/repos/:name/:repo/contents/:path*%2Fvendor.json", }, Object { "//": "used to update manifest or lock", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/*req*.txt", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/vendor.json", }, Object { "//": "used to update manifest or lock", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2F*req*.txt", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fvendor.json", }, Object { "//": "used to update manifest or lock", "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/pyproject.toml", + "path": "/repos/:name/:repo/contents/:path*/composer.lock", }, Object { "//": "used to update manifest or lock", "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fpyproject.toml", + "path": "/repos/:name/:repo/contents/:path*%2Fcomposer.lock", }, Object { "//": "used to update manifest or lock", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/poetry.lock", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/composer.lock", }, Object { "//": "used to update manifest or lock", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fpoetry.lock", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fcomposer.lock", }, Object { "//": "used to update manifest or lock", "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/yarn.lock", + "path": "/repos/:name/:repo/contents/:path*/composer.json", }, Object { "//": "used to update manifest or lock", "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fyarn.lock", + "path": "/repos/:name/:repo/contents/:path*%2Fcomposer.json", }, Object { "//": "used to update manifest or lock", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/build.gradle", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/composer.json", }, Object { "//": "used to update manifest or lock", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fbuild.gradle", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fcomposer.json", }, Object { "//": "used to update manifest or lock", "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/gradle.lockfile", + "path": "/repos/:name/:repo/contents/:path*/project.assets.json", }, Object { "//": "used to update manifest or lock", "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fgradle.lockfile", + "path": "/repos/:name/:repo/contents/:path*%2Fproject.assets.json", }, Object { "//": "used to update manifest or lock", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/gradle.properties", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/project.assets.json", }, Object { "//": "used to update manifest or lock", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fgradle.properties", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fproject.assets.json", }, Object { "//": "used to update manifest or lock", "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Packages.props", + "path": "/repos/:name/:repo/contents/:path*/Podfile", }, Object { "//": "used to update manifest or lock", "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FPackages.props", + "path": "/repos/:name/:repo/contents/:path*%2FPodfile", }, Object { "//": "used to update manifest or lock", "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Directory.Build.props", + "path": "/repos/:name/:repo/contents/:path*/Podfile.lock", }, Object { "//": "used to update manifest or lock", "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FDirectory.Build.props", + "path": "/repos/:name/:repo/contents/:path*%2FPodfile.lock", }, Object { "//": "used to update manifest or lock", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Directory.Build.targets", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Podfile", }, Object { "//": "used to update manifest or lock", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FDirectory.Build.targets", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FPodfile", }, Object { "//": "used to update manifest or lock", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/build.sbt", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Podfile.lock", }, Object { "//": "used to update manifest or lock", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fbuild.sbt", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FPodfile.lock", }, Object { "//": "used to update manifest or lock", "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/packages.config", + "path": "/repos/:name/:repo/contents/:path*/go.mod", }, Object { "//": "used to update manifest or lock", "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fpackages.config", + "path": "/repos/:name/:repo/contents/:path*%2Fgo.mod", }, Object { "//": "used to update manifest or lock", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/*.csproj", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/go.mod", }, Object { "//": "used to update manifest or lock", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2F*.csproj", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fgo.mod", }, Object { "//": "used to update manifest or lock", "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/*.fsproj", - }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2F*.fsproj", - }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/*.vbproj", - }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2F*.vbproj", - }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/project.json", - }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fproject.json", - }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Gopkg.toml", - }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FGopkg.toml", - }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Gopkg.lock", - }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FGopkg.lock", - }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/vendor.json", - }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fvendor.json", - }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/composer.lock", - }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fcomposer.lock", - }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/composer.json", - }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fcomposer.json", - }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/project.assets.json", - }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fproject.assets.json", - }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Podfile", - }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FPodfile", - }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Podfile.lock", - }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FPodfile.lock", - }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/go.mod", - }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fgo.mod", - }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/go.mod", - }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fgo.mod", - }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/go.sum", + "path": "/repos/:name/:repo/contents/:path*/go.sum", }, Object { "//": "used to update manifest or lock", @@ -11713,18 +12030,6 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", "path": "/:name/:repo/:path*%2Fgo.sum", }, - Object { - "//": "used to write or update ignore rules or existing patches", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/.snyk", - }, - Object { - "//": "used to write or update ignore rules or existing patches", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2F.snyk", - }, Object { "//": "used to update Dockerfile", "method": "PUT", @@ -11750,14 +12055,14 @@ Object { "path": "/:name/:repo/:path*%2F*Dockerfile*", }, Object { - "//": "used to check if there's any ignore rules or existing patches", - "method": "GET", + "//": "used to write or update ignore rules or existing patches", + "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*/.snyk", }, Object { - "//": "used to check if there's any ignore rules or existing patches", - "method": "GET", + "//": "used to write or update ignore rules or existing patches", + "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2F.snyk", }, @@ -11824,7 +12129,7 @@ Object { "path": "/repos/:name/:repo/pulls/:pull_number/files", }, Object { - "//": "add commit data for new PR", + "//": "create branches for new commits", "method": "POST", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/git/refs", @@ -11878,10 +12183,70 @@ Object { "path": "/graphql", }, Object { - "//": "used to get given manifest file", + "//": "used to get repo's teams list", "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:owner/:repo/git/blobs/:sha", + "path": "/repos/:owner/:repo/teams", + }, + Object { + "//": "used to get teams's repo list", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/orgs/:owner/teams/:team/repos", + }, + Object { + "//": "used to get orgs's teams list", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/orgs/:username/teams", + }, + Object { + "//": "used to get team's members list", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/orgs/:username/teams/:team_slug/members", + }, + Object { + "//": "used to get org's members list", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/orgs/:username/members", + }, + Object { + "//": "used to get repo's contributors list", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:owner/:repo/contributors", + }, + Object { + "//": "used to retrieve organization context from catalog-info.yaml", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/catalog-info.yaml", + }, + Object { + "//": "used to get repo's languages", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:owner/:repo/languages", + }, + Object { + "//": "used to get repo's topics list", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:owner/:repo/topics", + }, + Object { + "//": "used to get user", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/:user/:repo", + }, + Object { + "//": "used to get user's orgs", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/users/:username/orgs", }, ], "public": Array [ @@ -12009,27 +12374,27 @@ Object { }, Object { "path": "commits.*.added.*", - "value": "Directory.Build.targets", + "value": "Packages.props", }, Object { "path": "commits.*.modified.*", - "value": "Directory.Build.targets", + "value": "Packages.props", }, Object { "path": "commits.*.added.*", - "value": "Packages.props", + "value": "Directory.Build.props", }, Object { "path": "commits.*.modified.*", - "value": "Packages.props", + "value": "Directory.Build.props", }, Object { "path": "commits.*.added.*", - "value": "Directory.Build.props", + "value": "Directory.Build.targets", }, Object { "path": "commits.*.modified.*", - "value": "Directory.Build.props", + "value": "Directory.Build.targets", }, Object { "path": "commits.*.added.*", @@ -12186,5316 +12551,5629 @@ Object { } `; -exports[`filter Rules Loading Injection of valid CODE GH rules - Testing gitlab 1`] = ` +exports[`filter Rules Loading Injection of valid AppRisk rules - Testing github-enterprise 1`] = ` Object { "private": Array [ Object { - "//": "identify user", + "//": "search for user's repos", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/user", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/search/repositories", }, Object { - "//": "list the user's projects", + "//": "list the user's info, and validate their credentials", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/user", }, Object { - "//": "list the user's projects", + "//": "list the user's orgs", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v3/projects", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/user/orgs", }, Object { - "//": "list the user's visible projects", + "//": "list the logged in user's repos", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v3/projects/visible", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/user/repos", }, Object { - "//": "get a user's project", + "//": "list a user's repos", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v3/projects/:project", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/users/:username/repos", }, Object { - "//": "get a user's project", + "//": "list an orgs's repos", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/orgs/:username/repos", }, Object { - "//": "used to search all manifest files", + "//": "get a user's repo", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/tree", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:user/:repo", }, Object { - "//": "used to determine the full dependency tree", + "//": "rate limit check", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/package.json", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/rate_limit", }, Object { - "//": "used to determine the full dependency tree", + "//": "allow meta lookup on the api version", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fpackage.json", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/package-lock.json", + "//": "allow webhooks to be added, to allow commits to be checked by Snyk. Rules for what is sent to Snyk are controlled in the \`public\` accept filters", + "method": "POST", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:user/:repo/hooks", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fpackage-lock.json", + "//": "allow webhooks to be deleted, used to cleanup when a user deactivates or deletes a project", + "method": "DELETE", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:owner/:repo/hooks/:id", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Gemfile.lock", + "//": "used to create commit status messages", + "method": "POST", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:user/:repo/statuses/:sha", }, Object { - "//": "used to determine the full dependency tree", + "//": "used to list branches on a repo", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FGemfile.lock", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:user/:repo/branches", }, Object { - "//": "used to determine the full dependency tree", + "//": "used to get branch info", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Gemfile", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:user/:repo/branches/:branch", }, Object { - "//": "used to determine the full dependency tree", + "//": "used to get status checks on a branch", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FGemfile", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:user/:repo/branches/:branch/protection/required_status_checks/contexts", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/pom.xml", + "//": "used to create status checks on a branch", + "method": "POST", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:user/:repo/branches/:branch/protection/required_status_checks/contexts", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fpom.xml", + "//": "used to delete status checks on a branch", + "method": "DELETE", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:user/:repo/branches/:branch/protection/required_status_checks/contexts", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/*req*.txt", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/package.json", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2F*req*.txt", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpackage.json", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/requirements/*.txt", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/package-lock.json", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Frequirements%2F*.txt", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpackage-lock.json", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/pyproject.toml", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Gemfile.lock", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fpyproject.toml", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FGemfile.lock", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/poetry.lock", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Gemfile", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fpoetry.lock", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FGemfile", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Pipfile", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/pom.xml", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FPipfile", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpom.xml", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Pipfile.lock", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*req*.txt", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FPipfile.lock", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*req*.txt", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/yarn.lock", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/requirements/*.txt", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fyarn.lock", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Frequirements%2F*.txt", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/build.gradle", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/pyproject.toml", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fbuild.gradle", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpyproject.toml", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/gradle.lockfile", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/poetry.lock", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fgradle.lockfile", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpoetry.lock", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/gradle.properties", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/yarn.lock", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fgradle.properties", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fyarn.lock", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Directory.Build.targets", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/build.gradle", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FDirectory.Build.targets", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fbuild.gradle", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Directory.Build.props", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/gradle.lockfile", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FDirectory.Build.props", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fgradle.lockfile", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Packages.props", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/gradle.properties", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FPackages.props", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fgradle.properties", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/build.sbt", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Packages.props", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fbuild.sbt", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FPackages.props", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/packages.config", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Directory.Build.props", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fpackages.config", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FDirectory.Build.props", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/*.csproj", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Directory.Build.targets", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2F*.csproj", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FDirectory.Build.targets", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/*.vbproj", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/build.sbt", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2F*.vbproj", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fbuild.sbt", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/*.fsproj", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/packages.config", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2F*.fsproj", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpackages.config", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/project.json", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*.csproj", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fproject.json", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*.csproj", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Gopkg.toml", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*.fsproj", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FGopkg.toml", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*.fsproj", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Gopkg.lock", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*.vbproj", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FGopkg.lock", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*.vbproj", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/vendor.json", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/project.json", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fvendor.json", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fproject.json", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/composer.lock", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Gopkg.toml", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fcomposer.lock", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FGopkg.toml", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/composer.json", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Gopkg.lock", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fcomposer.json", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FGopkg.lock", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/project.assets.json", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/vendor.json", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fproject.assets.json", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fvendor.json", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Podfile", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/composer.lock", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FPodfile", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fcomposer.lock", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Podfile.lock", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/composer.json", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FPodfile.lock", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fcomposer.json", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/go.mod", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/project.assets.json", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fgo.mod", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fproject.assets.json", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/go.sum", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Podfile", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fgo.sum", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FPodfile", }, Object { - "//": "used to scan Dockerfile", + "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/*Dockerfile*", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Podfile.lock", }, Object { - "//": "used to scan Dockerfile", + "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2F*Dockerfile*", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FPodfile.lock", }, Object { - "//": "used to check if there's any ignore rules or existing patches", + "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/.snyk", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/go.mod", }, Object { - "//": "used to check if there's any ignore rules or existing patches", + "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2F.snyk", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fgo.mod", }, Object { - "//": "used to determine the full dependency tree for v3 protocol", + "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v3/projects/:project/repository/files", - "valid": Array [ - Object { - "queryParam": "file_path", - "values": Array [ - "**/package.json", - "**%2Fpackage.json", - "**/yarn.lock", - "**%2Fyarn.lock", - "**/package-lock.json", - "**%2Fpackage-lock.json", - "**/Gemfile", - "**%2FGemfile", - "**/Gemfile.lock", - "**%2FGemfile.lock", - "**/pom.xml", - "**%2Fpom.xml", - "**/*req*.txt", - "**%2F*req*.txt", - "**/requirements/*.txt", - "**%2Frequirements%2F*.txt", - "**/pyproject.toml", - "**%2Fpyproject.toml", - "**/poetry.lock", - "**%2Fpoetry.lock", - "**/build.gradle", - "**%2Fbuild.gradle", - "**/gradle.lockfile", - "**%2Fgradle.lockfile", - "**/build.sbt", - "**%2Fbuild.sbt", - "**/.snyk", - "**%2F.snyk", - "**/packages.config", - "**%2Fpackages.config", - "**/*.csproj", - "**%2F*.csproj", - "**/*.vbproj", - "**%2F*.vbproj", - "**/*.fsproj", - "**%2F*.fsproj", - "**/project.json", - "**%2Fproject.json", - "**/Gopkg.toml", - "**%2FGopkg.toml", - "**/Gopkg.lock", - "**%2FGopkg.lock", - "**/vendor.json", - "**%2Fvendor.json", - "**/composer.lock", - "**%2Fcomposer.lock", - "**/composer.json", - "**%2Fcomposer.json", - "**/project.assets.json", - "**%2Fproject.assets.json", - "**/Podfile", - "**%2FPodfile", - "**/Podfile.lock", - "**%2FPodfile.lock", - "**/go.mod", - "**%2Fgo.mod", - "**/go.sum", - "**%2Fgo.sum", - ], - }, - ], + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/go.mod", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/package.json", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fgo.mod", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fpackage.json", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/go.sum", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/package-lock.json", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fgo.sum", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fpackage-lock.json", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/go.sum", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Gemfile.lock", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fgo.sum", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FGemfile.lock", + "//": "used to scan Dockerfile", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*Dockerfile*", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Gemfile", + "//": "used to scan Dockerfile", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*Dockerfile*", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FGemfile", + "//": "used to scan Dockerfile", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/*Dockerfile*", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/pom.xml", + "//": "used to scan Dockerfile", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2F*Dockerfile*", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fpom.xml", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/package.json", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/*req*.txt", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpackage.json", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2F*req*.txt", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/package-lock.json", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/pyproject.toml", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpackage-lock.json", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fpyproject.toml", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Gemfile.lock", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/poetry.lock", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FGemfile.lock", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fpoetry.lock", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Gemfile", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/yarn.lock", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FGemfile", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fyarn.lock", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/pom.xml", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/build.gradle", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpom.xml", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fbuild.gradle", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*req*.txt", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/gradle.lockfile", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*req*.txt", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fgradle.lockfile", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/pyproject.toml", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/gradle.properties", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpyproject.toml", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fgradle.properties", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/poetry.lock", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Directory.Build.targets", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpoetry.lock", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FDirectory.Build.targets", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/yarn.lock", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Directory.Build.props", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fyarn.lock", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FDirectory.Build.props", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/build.gradle", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Packages.props", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fbuild.gradle", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FPackages.props", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/gradle.lockfile", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/build.sbt", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fgradle.lockfile", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fbuild.sbt", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/gradle.properties", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/packages.config", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fgradle.properties", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fpackages.config", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Packages.props", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/*.csproj", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FPackages.props", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2F*.csproj", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Directory.Build.props", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/*.vbproj", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FDirectory.Build.props", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2F*.vbproj", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Directory.Build.targets", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/*.fsproj", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FDirectory.Build.targets", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2F*.fsproj", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/build.sbt", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/project.json", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fbuild.sbt", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fproject.json", - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Gopkg.toml", - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FGopkg.toml", - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Gopkg.lock", - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FGopkg.lock", - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/vendor.json", - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fvendor.json", - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/composer.lock", - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fcomposer.lock", - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/composer.json", - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fcomposer.json", - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/project.assets.json", - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fproject.assets.json", - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Podfile", - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FPodfile", - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Podfile.lock", - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FPodfile.lock", - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/go.mod", - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fgo.mod", - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/go.sum", - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fgo.sum", - }, - Object { - "//": "used to create Dockerfile", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/*Dockerfile*", - }, - Object { - "//": "used to create Dockerfile", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2F*Dockerfile*", - }, - Object { - "//": "used to create ignore rules or patches", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/.snyk", - }, - Object { - "//": "used to create ignore rules or patches", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2F.snyk", - }, - Object { - "//": "used to create manifest file for v3 protocol", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v3/projects/:project/repository/files", - "valid": Array [ - Object { - "queryParam": "file_path", - "values": Array [ - "**/package.json", - "**%2Fpackage.json", - "**/yarn.lock", - "**%2Fyarn.lock", - "**/package-lock.json", - "**%2Fpackage-lock.json", - "**/Gemfile", - "**%2FGemfile", - "**/Gemfile.lock", - "**%2FGemfile.lock", - "**/pom.xml", - "**%2Fpom.xml", - "**/*req*.txt", - "**%2F*req*.txt", - "**/pyproject.toml", - "**%2Fpyproject.toml", - "**/poetry.lock", - "**%2Fpoetry.lock", - "**/build.gradle", - "**%2Fbuild.gradle", - "**/gradle.lockfile", - "**%2Fgradle.lockfile", - "**/build.sbt", - "**%2Fbuild.sbt", - "**/.snyk", - "**%2F.snyk", - "**/packages.config", - "**%2Fpackages.config", - "**/*.csproj", - "**%2F*.csproj", - "**/*.vbproj", - "**%2F*.vbproj", - "**/*.fsproj", - "**%2F*.fsproj", - "**/project.json", - "**%2Fproject.json", - "**/Gopkg.toml", - "**%2FGopkg.toml", - "**/Gopkg.lock", - "**%2FGopkg.lock", - "**/vendor.json", - "**%2Fvendor.json", - "**/composer.lock", - "**%2Fcomposer.lock", - "**/composer.json", - "**%2Fcomposer.json", - "**/project.assets.json", - "**%2Fproject.assets.json", - "**/Podfile", - "**%2FPodfile", - "**/Podfile.lock", - "**%2FPodfile.lock", - "**/go.mod", - "**%2Fgo.mod", - "**/go.sum", - "**%2Fgo.sum", - ], - }, - ], + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/packages.config", }, Object { - "//": "used to update manifest file", + "//": "used to update manifest or lock", "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/package.json", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpackages.config", }, Object { - "//": "used to update manifest file", + "//": "used to update manifest or lock", "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fpackage.json", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*.csproj", }, Object { - "//": "used to update manifest file", + "//": "used to update manifest or lock", "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/package-lock.json", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*.csproj", }, Object { - "//": "used to update manifest file", + "//": "used to update manifest or lock", "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fpackage-lock.json", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*.fsproj", }, Object { - "//": "used to update manifest file", + "//": "used to update manifest or lock", "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Gemfile.lock", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*.fsproj", }, Object { - "//": "used to update manifest file", + "//": "used to update manifest or lock", "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FGemfile.lock", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*.vbproj", }, Object { - "//": "used to update manifest file", + "//": "used to update manifest or lock", "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Gemfile", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*.vbproj", }, Object { - "//": "used to update manifest file", + "//": "used to update manifest or lock", "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FGemfile", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/project.json", }, Object { - "//": "used to update manifest file", + "//": "used to update manifest or lock", "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/pom.xml", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fproject.json", }, Object { - "//": "used to update manifest file", + "//": "used to update manifest or lock", "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fpom.xml", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Gopkg.toml", }, Object { - "//": "used to update manifest file", + "//": "used to update manifest or lock", "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/*req*.txt", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FGopkg.toml", }, Object { - "//": "used to update manifest file", + "//": "used to update manifest or lock", "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2F*req*.txt", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Gopkg.lock", }, Object { - "//": "used to update manifest file", + "//": "used to update manifest or lock", "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/pyproject.toml", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FGopkg.lock", }, Object { - "//": "used to update manifest file", + "//": "used to update manifest or lock", "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fpyproject.toml", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/vendor.json", }, Object { - "//": "used to update manifest file", + "//": "used to update manifest or lock", "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/poetry.lock", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fvendor.json", }, Object { - "//": "used to update manifest file", + "//": "used to update manifest or lock", "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fpoetry.lock", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/composer.lock", }, Object { - "//": "used to update manifest file", + "//": "used to update manifest or lock", "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/yarn.lock", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fcomposer.lock", }, Object { - "//": "used to update manifest file", + "//": "used to update manifest or lock", "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fyarn.lock", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/composer.json", }, Object { - "//": "used to update manifest file", + "//": "used to update manifest or lock", "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/build.gradle", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fcomposer.json", }, Object { - "//": "used to update manifest file", + "//": "used to update manifest or lock", "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fbuild.gradle", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/project.assets.json", }, Object { - "//": "used to update manifest file", + "//": "used to update manifest or lock", "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/gradle.lockfile", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fproject.assets.json", }, Object { - "//": "used to update manifest file", + "//": "used to update manifest or lock", "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fgradle.lockfile", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Podfile", }, Object { - "//": "used to update manifest file", + "//": "used to update manifest or lock", "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/gradle.properties", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FPodfile", }, Object { - "//": "used to update manifest file", + "//": "used to update manifest or lock", "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fgradle.properties", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Podfile.lock", }, Object { - "//": "used to update manifest file", + "//": "used to update manifest or lock", "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Directory.Build.targets", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FPodfile.lock", }, Object { - "//": "used to update manifest file", + "//": "used to update manifest or lock", "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FDirectory.Build.targets", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/go.mod", }, Object { - "//": "used to update manifest file", + "//": "used to update manifest or lock", "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Directory.Build.props", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fgo.mod", }, Object { - "//": "used to update manifest file", + "//": "used to update manifest or lock", "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FDirectory.Build.props", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/go.mod", }, Object { - "//": "used to update manifest file", + "//": "used to update manifest or lock", "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Packages.props", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fgo.mod", }, Object { - "//": "used to update manifest file", + "//": "used to update manifest or lock", "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FPackages.props", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/go.sum", }, Object { - "//": "used to update manifest file", + "//": "used to update manifest or lock", "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/build.sbt", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fgo.sum", }, Object { - "//": "used to update manifest file", + "//": "used to update manifest or lock", "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fbuild.sbt", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/go.sum", }, Object { - "//": "used to update manifest file", + "//": "used to update manifest or lock", "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/packages.config", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fgo.sum", }, Object { - "//": "used to update manifest file", + "//": "used to write or update ignore rules or existing patches", "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fpackages.config", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/.snyk", }, Object { - "//": "used to update manifest file", + "//": "used to write or update ignore rules or existing patches", "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/*.csproj", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F.snyk", }, Object { - "//": "used to update manifest file", + "//": "used to update Dockerfile", "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2F*.csproj", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*Dockerfile*", }, Object { - "//": "used to update manifest file", + "//": "used to update Dockerfile", "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/*.vbproj", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*Dockerfile*", }, Object { - "//": "used to update manifest file", + "//": "used to update Dockerfile", "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2F*.vbproj", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/*Dockerfile*", }, Object { - "//": "used to update manifest file", + "//": "used to update Dockerfile", "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/*.fsproj", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2F*Dockerfile*", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2F*.fsproj", + "//": "used to check if there's any ignore rules or existing patches", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/.snyk", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/project.json", + "//": "used to check if there's any ignore rules or existing patches", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F.snyk", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fproject.json", + "//": "get details of the repo", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Gopkg.toml", + "//": "get the details of the commit to determine its SHA", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/commits/:ref", + "valid": Array [ + Object { + "header": "accept", + "values": Array [ + "application/vnd.github.v4.sha", + ], + }, + ], }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FGopkg.toml", + "//": "get a list of all the refs to match find whether an existing PR is open", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/git/refs", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Gopkg.lock", + "//": "get the head commit of an individual ref", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/git/refs/heads/:ref", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FGopkg.lock", - }, - Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/vendor.json", - }, - Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fvendor.json", - }, - Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/composer.lock", - }, - Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fcomposer.lock", - }, - Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/composer.json", - }, - Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fcomposer.json", - }, - Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/project.assets.json", - }, - Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fproject.assets.json", - }, - Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Podfile", - }, - Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FPodfile", - }, - Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Podfile.lock", - }, - Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FPodfile.lock", - }, - Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/go.mod", - }, - Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fgo.mod", - }, - Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/go.sum", - }, - Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fgo.sum", - }, - Object { - "//": "used to update Dockerfile", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/*Dockerfile*", + "//": "get the details of an individual ref", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/git/refs/:ref", }, Object { - "//": "used to update Dockerfile", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2F*Dockerfile*", + "//": "compares two commits against each other", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/compare/:base...:head", }, Object { - "//": "used to update ignore rules or existing patches", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/.snyk", + "//": "search for open snyk pull requests", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/pulls", }, Object { - "//": "used to update ignore rules or existing patches", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2F.snyk", + "//": "get pull request data for getting merge sha and tracking PR processing state", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/pulls/:pull_number", }, Object { - "//": "used to update manifest file for v3 protocol", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v3/projects/:project/repository/files", - "valid": Array [ - Object { - "queryParam": "file_path", - "values": Array [ - "**/package.json", - "**%2Fpackage.json", - "**/yarn.lock", - "**%2Fyarn.lock", - "**/package-lock.json", - "**%2Fpackage-lock.json", - "**/Gemfile", - "**%2FGemfile", - "**/Gemfile.lock", - "**%2FGemfile.lock", - "**/pom.xml", - "**%2Fpom.xml", - "**/*req*.txt", - "**%2F*req*.txt", - "**/pyproject.toml", - "**%2Fpyproject.toml", - "**/poetry.lock", - "**%2Fpoetry.lock", - "**/build.gradle", - "**%2Fbuild.gradle", - "**/gradle.lockfile", - "**%2Fgradle.lockfile", - "**/build.sbt", - "**%2Fbuild.sbt", - "**/.snyk", - "**%2F.snyk", - "**/packages.config", - "**%2Fpackages.config", - "**/*.csproj", - "**%2F*.csproj", - "**/*.vbproj", - "**%2F*.vbproj", - "**/*.fsproj", - "**%2F*.fsproj", - "**/project.json", - "**%2Fproject.json", - "**/Gopkg.toml", - "**%2FGopkg.toml", - "**/Gopkg.lock", - "**%2FGopkg.lock", - "**/vendor.json", - "**%2Fvendor.json", - "**/composer.lock", - "**%2Fcomposer.lock", - "**/composer.json", - "**%2Fcomposer.json", - "**/project.assets.json", - "**%2Fproject.assets.json", - "**/Podfile", - "**%2FPodfile", - "**/Podfile.lock", - "**%2FPodfile.lock", - "**/go.mod", - "**%2Fgo.mod", - "**/go.sum", - "**%2Fgo.sum", - ], - }, - ], + "//": "get pull request file names", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/pulls/:pull_number/files", }, Object { - "//": "allow webhooks to be added, to allow commits to be checked by Snyk. Rules for what is sent to Snyk are controlled in the \`public\` accept filters", + "//": "add commit data for new PR", "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/hooks", - }, - Object { - "//": "allow webhooks to be deleted, used to cleanup when a user deactivates or deletes a project", - "method": "DELETE", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/hooks/:id", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/git/refs", }, Object { - "//": "used to create commit status messages", + "//": "create the pull request", "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/statuses/:sha", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/pulls", }, Object { - "//": "used to create branch for fix merge request", + "//": "add pull request assignees", "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/branches", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/issues/:pull_number/assignees", }, Object { - "//": "used to create merge request for fix merge request", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/merge_requests", + "//": "update ref", + "method": "PATCH", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/git/refs/:sha", }, Object { - "//": "used to fetch fix merge request information", - "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/merge_requests", + "//": "update ref head", + "method": "PATCH", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/git/refs/heads/:ref", }, Object { - "//": "list the user's groups", + "//": "get list of all files in a repo", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/groups", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/git/trees/:ref", }, Object { - "//": "list of projects in a group", + "//": "used to get repo's contributors list", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/groups/:id/projects", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:owner/:repo/commits", }, Object { - "//": "get current user. so we'll be able to fetch it's projects", - "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/user", + "//": "used to redirect requests to snyk git client", + "method": "any", + "origin": "\${GIT_CLIENT_URL}", + "path": "/snykgit/*", }, Object { - "//": "get user's projects", - "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/users/:user/projects", + "//": "query graphql", + "method": "POST", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_GRAPHQL}", + "path": "/graphql", }, Object { - "//": "get all users. so we'll be able to fetch projects that admin can access", + "//": "used to get repo's teams list", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/users", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:owner/:repo/teams", }, Object { - "//": "used to get repo's contributors list", + "//": "used to get teams's repo list", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/commits", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/orgs/:owner/teams/:team/repos", }, Object { - "//": "get a specific commit identified by the commit hash or name of a branch or tag.", + "//": "used to get orgs's teams list", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/commits/:sha", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/orgs/:username/teams", }, Object { - "//": "get merge base of two commits for given project.", + "//": "used to get team's members list", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/merge_base", - }, - Object { - "//": "used to redirect requests to snyk git client", - "method": "any", - "origin": "\${GIT_CLIENT_URL}", - "path": "/snykgit/*", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/orgs/:username/teams/:team_slug/members", }, - ], - "public": Array [ Object { - "//": "used for pushing up webhooks from gitlab", - "method": "POST", - "path": "/webhook/gitlab/:webhookId", + "//": "used to get org's members list", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/orgs/:username/members", }, - ], -} -`; - -exports[`filter Rules Loading Injection of valid CODE rules - Testing azure-repos 1`] = ` -Object { - "private": Array [ Object { - "//": "get list of projects for given organisation", - "auth": Object { - "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", - }, + "//": "used to get repo's contributors list", "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/_apis/projects", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:owner/:repo/contributors", }, Object { - "//": "get specific repository for given organisation", - "auth": Object { - "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", - }, + "//": "used to get repo's languages", "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:owner/:repo/languages", }, Object { - "//": "get list of repositories for given organisation", - "auth": Object { - "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", - }, + "//": "used to get repo's topics list", "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:owner/:repo/topics", }, Object { - "//": "get list of refs", - "auth": Object { - "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", - }, + "//": "used to get user", "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/refs", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/:user/:repo", }, Object { - "//": "search through repositories of given organisation", - "auth": Object { - "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", - }, + "//": "used to get user's orgs", "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "_apis/git/repositories", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/users/:username/orgs", }, + ], + "public": Array [ Object { - "//": "create hook", - "auth": Object { - "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", - }, + "//": "used for pushing up webhooks from github", "method": "POST", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/_apis/hooks/subscriptions", - }, - Object { - "//": "delete hook", - "auth": Object { - "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", - }, - "method": "DELETE", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/_apis/hooks/subscriptions/:subscriptionId", - }, - Object { - "//": "get file content. restrict by file types", - "auth": Object { - "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", - }, - "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/items", + "path": "/webhook/github", "valid": Array [ Object { - "queryParam": "path", - "values": Array [ - "**/package.json", - "**%2Fpackage.json", - "**/yarn.lock", - "**%2Fyarn.lock", - "**/package-lock.json", - "**%2Fpackage-lock.json", - "**/Gemfile", - "**%2FGemfile", - "**/Gemfile.lock", - "**%2FGemfile.lock", - "**/pom.xml", - "**%2Fpom.xml", - "**/*req*.txt", - "**%2F*req*.txt", - "**/requirements/*.txt", - "**%2Frequirements%2F*.txt", - "**/pyproject.toml", - "**%2Fpyproject.toml", - "**/poetry.lock", - "**%2Fpoetry.lock", - "**/Pipfile", - "**%2FPipfile", - "**/Pipfile.lock", - "**%2FPipfile.lock", - "**/build.gradle", - "**%2Fbuild.gradle", - "**/gradle.lockfile", - "**%2Fgradle.lockfile", - "**/build.sbt", - "**%2Fbuild.sbt", - "**/.snyk", - "**%2F.snyk", - "**/packages.config", - "**%2Fpackages.config", - "**/*.csproj", - "**%2F*.csproj", - "**/*.vbproj", - "**%2F*.vbproj", - "**/*.fsproj", - "**%2F*.fsproj", - "**/project.json", - "**%2Fproject.json", - "**/Gopkg.toml", - "**%2FGopkg.toml", - "**/Gopkg.lock", - "**%2FGopkg.lock", - "**/vendor.json", - "**%2Fvendor.json", - "**/composer.lock", - "**%2Fcomposer.lock", - "**/composer.json", - "**%2Fcomposer.json", - "**/project.assets.json", - "**%2Fproject.assets.json", - "**/Podfile", - "**%2FPodfile", - "**/Podfile.lock", - "**%2FPodfile.lock", - "**/go.mod", - "**%2Fgo.mod", - "**/go.sum", - "**%2Fgo.sum", - "**/*Dockerfile*", - "**%2F*Dockerfile*", - ], + "//": "accept all pull request state changes (these don't have files in them)", + "path": "pull_request.state", + "value": "open", }, Object { - "queryParam": "recursionLevel", - "values": Array [ - "none", - ], + "path": "commits.*.added.*", + "value": "package.json", }, Object { - "queryParam": "download", - "values": Array [ - "true", - ], + "path": "commits.*.modified.*", + "value": "package.json", }, Object { - "queryParam": "includeContent", - "values": Array [ - "true", - ], + "path": "commits.*.added.*", + "value": "package-lock.json", }, - ], - }, - Object { - "//": "check file existence. restrict by file types", - "auth": Object { - "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", - }, - "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/items", - "valid": Array [ Object { - "queryParam": "path", - "values": Array [ - "**/package.json", - "**%2Fpackage.json", - "**/yarn.lock", - "**%2Fyarn.lock", - "**/package-lock.json", - "**%2Fpackage-lock.json", - "**/Gemfile", - "**%2FGemfile", - "**/Gemfile.lock", - "**%2FGemfile.lock", - "**/pom.xml", - "**%2Fpom.xml", - "**/*req*.txt", - "**%2F*req*.txt", - "**/requirements/*.txt", - "**%2Frequirements%2F*.txt", - "**/pyproject.toml", - "**%2Fpyproject.toml", - "**/poetry.lock", - "**%2Fpoetry.lock", - "**/Pipfile", - "**%2FPipfile", - "**/Pipfile.lock", - "**%2FPipfile.lock", - "**/build.gradle", - "**%2Fbuild.gradle", - "**/gradle.lockfile", - "**%2Fgradle.lockfile", - "**/build.sbt", - "**%2Fbuild.sbt", - "**/.snyk", - "**%2F.snyk", - "**/packages.config", - "**%2Fpackages.config", - "**/*.csproj", - "**%2F*.csproj", - "**/*.vbproj", - "**%2F*.vbproj", - "**/*.fsproj", - "**%2F*.fsproj", - "**/project.json", - "**%2Fproject.json", - "**/Gopkg.toml", - "**%2FGopkg.toml", - "**/Gopkg.lock", - "**%2FGopkg.lock", - "**/vendor.json", - "**%2Fvendor.json", - "**/composer.lock", - "**%2Fcomposer.lock", - "**/composer.json", - "**%2Fcomposer.json", - "**/project.assets.json", - "**%2Fproject.assets.json", - "**/Podfile", - "**%2FPodfile", - "**/Podfile.lock", - "**%2FPodfile.lock", - "**/go.mod", - "**%2Fgo.mod", - "**/go.sum", - "**%2Fgo.sum", - "**/*Dockerfile*", - "**%2F*Dockerfile*", - ], + "path": "commits.*.modified.*", + "value": "package-lock.json", }, Object { - "queryParam": "versionDescriptor.versionType", - "values": Array [ - "branch", - ], + "path": "commits.*.added.*", + "value": "Gemfile.lock", }, Object { - "queryParam": "includeContentMetadata", - "values": Array [ - "true", - ], + "path": "commits.*.modified.*", + "value": "Gemfile.lock", }, - ], - }, - Object { - "//": "get list of files for given repository", - "auth": Object { - "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", - }, - "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/items", - "valid": Array [ Object { - "queryParam": "recursionLevel", - "values": Array [ - "full", - ], + "path": "commits.*.added.*", + "value": "*req*.txt", }, Object { - "queryParam": "download", - "values": Array [ - "false", - ], + "path": "commits.*.modified.*", + "value": "*req*.txt", }, Object { - "queryParam": "includeContent", - "values": Array [ - "false", - ], + "path": "commits.*.added.*", + "value": "requirements%2F*.txt", + }, + Object { + "path": "commits.*.modified.*", + "value": "requirements%2F*.txt", + }, + Object { + "path": "commits.*.added.*", + "value": "requirements/*.txt", + }, + Object { + "path": "commits.*.modified.*", + "value": "requirements/*.txt", + }, + Object { + "path": "commits.*.added.*", + "value": "pyproject.toml", + }, + Object { + "path": "commits.*.modified.*", + "value": "pyproject.toml", + }, + Object { + "path": "commits.*.added.*", + "value": "poetry.lock", + }, + Object { + "path": "commits.*.modified.*", + "value": "poetry.lock", + }, + Object { + "path": "commits.*.added.*", + "value": "Pipfile", + }, + Object { + "path": "commits.*.modified.*", + "value": "Pipfile", + }, + Object { + "path": "commits.*.added.*", + "value": "Pipfile.lock", + }, + Object { + "path": "commits.*.modified.*", + "value": "Pipfile.lock", + }, + Object { + "path": "commits.*.added.*", + "value": "pom.xml", + }, + Object { + "path": "commits.*.modified.*", + "value": "pom.xml", + }, + Object { + "path": "commits.*.added.*", + "value": "build.gradle", + }, + Object { + "path": "commits.*.modified.*", + "value": "build.gradle", + }, + Object { + "path": "commits.*.added.*", + "value": "gradle.lockfile", + }, + Object { + "path": "commits.*.modified.*", + "value": "gradle.lockfile", + }, + Object { + "path": "commits.*.added.*", + "value": "gradle.properties", + }, + Object { + "path": "commits.*.modified.*", + "value": "gradle.properties", + }, + Object { + "path": "commits.*.added.*", + "value": "Directory.Build.targets", + }, + Object { + "path": "commits.*.modified.*", + "value": "Directory.Build.targets", + }, + Object { + "path": "commits.*.added.*", + "value": "Packages.props", + }, + Object { + "path": "commits.*.modified.*", + "value": "Packages.props", + }, + Object { + "path": "commits.*.added.*", + "value": "Directory.Build.props", + }, + Object { + "path": "commits.*.modified.*", + "value": "Directory.Build.props", + }, + Object { + "path": "commits.*.added.*", + "value": "build.sbt", + }, + Object { + "path": "commits.*.modified.*", + "value": "build.sbt", + }, + Object { + "path": "commits.*.added.*", + "value": "yarn.lock", + }, + Object { + "path": "commits.*.modified.*", + "value": "yarn.lock", + }, + Object { + "path": "commits.*.added.*", + "value": ".snyk", + }, + Object { + "path": "commits.*.modified.*", + "value": ".snyk", + }, + Object { + "path": "commits.*.added.*", + "value": "packages.config", + }, + Object { + "path": "commits.*.modified.*", + "value": "packages.config", + }, + Object { + "path": "commits.*.added.*", + "value": "*.csproj", + }, + Object { + "path": "commits.*.modified.*", + "value": "*.csproj", + }, + Object { + "path": "commits.*.added.*", + "value": "*.vbproj", + }, + Object { + "path": "commits.*.modified.*", + "value": "*.vbproj", + }, + Object { + "path": "commits.*.added.*", + "value": "*.fsproj", + }, + Object { + "path": "commits.*.modified.*", + "value": "*.fsproj", + }, + Object { + "path": "commits.*.added.*", + "value": "project.json", + }, + Object { + "path": "commits.*.modified.*", + "value": "project.json", + }, + Object { + "path": "commits.*.added.*", + "value": "Gopkg.toml", + }, + Object { + "path": "commits.*.modified.*", + "value": "Gopkg.toml", + }, + Object { + "path": "commits.*.added.*", + "value": "Gopkg.lock", + }, + Object { + "path": "commits.*.modified.*", + "value": "Gopkg.lock", + }, + Object { + "path": "commits.*.added.*", + "value": "vendor.json", + }, + Object { + "path": "commits.*.modified.*", + "value": "vendor.json", + }, + Object { + "path": "commits.*.added.*", + "value": "composer.lock", + }, + Object { + "path": "commits.*.modified.*", + "value": "composer.lock", + }, + Object { + "path": "commits.*.added.*", + "value": "composer.json", + }, + Object { + "path": "commits.*.modified.*", + "value": "composer.json", + }, + Object { + "path": "commits.*.added.*", + "value": "project.assets.json", + }, + Object { + "path": "commits.*.modified.*", + "value": "project.assets.json", + }, + Object { + "path": "commits.*.added.*", + "value": "Podfile", + }, + Object { + "path": "commits.*.modified.*", + "value": "Podfile", + }, + Object { + "path": "commits.*.added.*", + "value": "Podfile.lock", + }, + Object { + "path": "commits.*.modified.*", + "value": "Podfile.lock", + }, + Object { + "path": "commits.*.added.*", + "value": "go.mod", + }, + Object { + "path": "commits.*.modified.*", + "value": "go.mod", + }, + Object { + "path": "commits.*.added.*", + "value": "go.sum", + }, + Object { + "path": "commits.*.modified.*", + "value": "go.sum", }, ], }, Object { - "//": "get list of commits for given repository", - "auth": Object { - "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", - }, - "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/commits", + "//": "used for pushing up webhooks from github", + "method": "POST", + "path": "/webhook/github/:webhookId", }, + ], +} +`; + +exports[`filter Rules Loading Injection of valid AppRisk rules - Testing gitlab 1`] = ` +Object { + "private": Array [ Object { - "//": "get merge base of two commits for given repository", - "auth": Object { - "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", - }, + "//": "identify user", "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/commits/:commitId/mergebases", + "origin": "https://\${GITLAB}", + "path": "/api/v4/user", }, Object { - "//": "update status of given commit", - "auth": Object { - "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", - }, - "method": "POST", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/commits/:commitId/statuses", + "//": "list the user's projects", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects", }, Object { - "//": "update status of given pull request", - "auth": Object { - "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", - }, - "method": "POST", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/pullRequests/:pullRef/statuses", + "//": "list the user's projects", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v3/projects", }, Object { - "//": "find PR for given repository", - "auth": Object { - "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", - }, + "//": "list the user's visible projects", "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/pullrequests", + "origin": "https://\${GITLAB}", + "path": "/api/v3/projects/visible", }, Object { - "//": "create new PR in given repository", - "auth": Object { - "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", - }, - "method": "POST", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/pullrequests", + "//": "get a user's project", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v3/projects/:project", }, Object { - "//": "update existing PR in given repository", - "auth": Object { - "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", - }, - "method": "PATCH", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/pullrequests/:pullRef", + "//": "get a user's project", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project", }, Object { - "//": "push new commit in given repository", - "auth": Object { - "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", - }, - "method": "POST", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/pushes", + "//": "used to search all manifest files", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/tree", }, Object { - "//": "used to redirect requests to snyk git client", - "method": "any", - "origin": "\${GIT_CLIENT_URL}", - "path": "/snykgit/*", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/package.json", }, Object { - "//": "allow info refs (for git clone)", - "auth": Object { - "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", - }, + "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "*/info/refs*", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpackage.json", }, Object { - "//": "allow git-upload-pack (for git clone)", - "auth": Object { - "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", - }, - "method": "POST", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "*/git-upload-pack", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/package-lock.json", }, Object { - "//": "needed to load code snippets", - "auth": Object { - "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", - }, + "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/items", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpackage-lock.json", }, - ], - "public": Array [ Object { - "//": "used for pushing up webhooks from Azure", - "method": "POST", - "path": "/webhook/azure-repos/:webhookId", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Gemfile.lock", }, - ], -} -`; - -exports[`filter Rules Loading Injection of valid CODE rules - Testing bitbucket-server 1`] = ` -Object { - "private": Array [ Object { - "//": "list the user's projects", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, + "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FGemfile.lock", }, Object { - "//": "list the project's repos", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, + "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:projectKey/repos", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Gemfile", }, Object { - "//": "list the user's repos", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, + "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/repos", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FGemfile", }, Object { - "//": "fetch a given repo", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, + "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/pom.xml", }, Object { - "//": "read all file names to find manifests", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, + "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${BITBUCKET}", - "path": "/rest/api/1.0/projects/:project/repos/:repo/files/:searchPath?", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpom.xml", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/package.json", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*req*.txt", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2Fpackage.json", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*req*.txt", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/package-lock.json", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/requirements/*.txt", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2Fpackage-lock.json", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Frequirements%2F*.txt", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/Gemfile.lock", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/pyproject.toml", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2FGemfile.lock", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpyproject.toml", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/Gemfile", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/poetry.lock", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2FGemfile", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpoetry.lock", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/pom.xml", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Pipfile", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2Fpom.xml", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FPipfile", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/*req*.txt", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Pipfile.lock", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2F*req*.txt", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FPipfile.lock", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/requirements/*.txt", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/yarn.lock", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2Frequirements%2F*.txt", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fyarn.lock", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/pyproject.toml", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/build.gradle", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2Fpyproject.toml", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fbuild.gradle", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/poetry.lock", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/gradle.lockfile", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2Fpoetry.lock", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fgradle.lockfile", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/Pipfile", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/gradle.properties", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2FPipfile", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fgradle.properties", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/Pipfile.lock", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Directory.Build.targets", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2FPipfile.lock", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FDirectory.Build.targets", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/yarn.lock", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Directory.Build.props", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2Fyarn.lock", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FDirectory.Build.props", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/build.gradle", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Packages.props", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2Fbuild.gradle", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FPackages.props", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/gradle.lockfile", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/build.sbt", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2Fgradle.lockfile", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fbuild.sbt", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/gradle.properties", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/packages.config", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2Fgradle.properties", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpackages.config", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/Packages.props", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*.csproj", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2FPackages.props", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*.csproj", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/Directory.Build.props", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*.vbproj", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2FDirectory.Build.props", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*.vbproj", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/Directory.Build.targets", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*.fsproj", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2FDirectory.Build.targets", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*.fsproj", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/build.sbt", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/project.json", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2Fbuild.sbt", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fproject.json", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/packages.config", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Gopkg.toml", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2Fpackages.config", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FGopkg.toml", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/*.csproj", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Gopkg.lock", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2F*.csproj", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FGopkg.lock", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/*.vbproj", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/vendor.json", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2F*.vbproj", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fvendor.json", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/*.fsproj", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/composer.lock", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2F*.fsproj", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fcomposer.lock", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/project.json", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/composer.json", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2Fproject.json", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fcomposer.json", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/Gopkg.toml", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/project.assets.json", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2FGopkg.toml", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fproject.assets.json", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/Gopkg.lock", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Podfile", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2FGopkg.lock", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FPodfile", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/vendor.json", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Podfile.lock", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2Fvendor.json", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FPodfile.lock", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/composer.lock", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/go.mod", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2Fcomposer.lock", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fgo.mod", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/composer.json", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/go.sum", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2Fcomposer.json", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fgo.sum", }, Object { - "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, + "//": "used to scan Dockerfile", "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/project.assets.json", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*Dockerfile*", }, Object { - "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, + "//": "used to scan Dockerfile", "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2Fproject.assets.json", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*Dockerfile*", }, Object { - "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, + "//": "used to check if there's any ignore rules or existing patches", "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/Podfile", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/.snyk", }, Object { - "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, + "//": "used to check if there's any ignore rules or existing patches", "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2FPodfile", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F.snyk", }, Object { - "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, + "//": "used to determine the full dependency tree for v3 protocol", "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/Podfile.lock", + "origin": "https://\${GITLAB}", + "path": "/api/v3/projects/:project/repository/files", + "valid": Array [ + Object { + "queryParam": "file_path", + "values": Array [ + "**/package.json", + "**%2Fpackage.json", + "**/yarn.lock", + "**%2Fyarn.lock", + "**/package-lock.json", + "**%2Fpackage-lock.json", + "**/Gemfile", + "**%2FGemfile", + "**/Gemfile.lock", + "**%2FGemfile.lock", + "**/pom.xml", + "**%2Fpom.xml", + "**/*req*.txt", + "**%2F*req*.txt", + "**/requirements/*.txt", + "**%2Frequirements%2F*.txt", + "**/pyproject.toml", + "**%2Fpyproject.toml", + "**/poetry.lock", + "**%2Fpoetry.lock", + "**/build.gradle", + "**%2Fbuild.gradle", + "**/gradle.lockfile", + "**%2Fgradle.lockfile", + "**/build.sbt", + "**%2Fbuild.sbt", + "**/.snyk", + "**%2F.snyk", + "**/packages.config", + "**%2Fpackages.config", + "**/*.csproj", + "**%2F*.csproj", + "**/*.vbproj", + "**%2F*.vbproj", + "**/*.fsproj", + "**%2F*.fsproj", + "**/project.json", + "**%2Fproject.json", + "**/Gopkg.toml", + "**%2FGopkg.toml", + "**/Gopkg.lock", + "**%2FGopkg.lock", + "**/vendor.json", + "**%2Fvendor.json", + "**/composer.lock", + "**%2Fcomposer.lock", + "**/composer.json", + "**%2Fcomposer.json", + "**/project.assets.json", + "**%2Fproject.assets.json", + "**/Podfile", + "**%2FPodfile", + "**/Podfile.lock", + "**%2FPodfile.lock", + "**/go.mod", + "**%2Fgo.mod", + "**/go.sum", + "**%2Fgo.sum", + ], + }, + ], }, Object { - "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2FPodfile.lock", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/package.json", }, Object { - "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/go.mod", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpackage.json", }, Object { - "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2Fgo.mod", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/package-lock.json", }, Object { - "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/go.sum", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpackage-lock.json", }, Object { - "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2Fgo.sum", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Gemfile.lock", }, Object { - "//": "used to scan Dockerfile", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/*Dockerfile*", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FGemfile.lock", }, Object { - "//": "used to scan Dockerfile", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2F*Dockerfile*", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Gemfile", }, Object { - "//": "used to check if there's any ignore rules or existing patches", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/.snyk", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FGemfile", }, Object { - "//": "used to check if there's any ignore rules or existing patches", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2F.snyk", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/pom.xml", }, Object { - "//": "get list of API capabilities", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET}", - "path": "/rest/capabilities", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpom.xml", }, Object { - "//": "allow webhooks to be added, to allow commits to be checked by Snyk. Rules for what is sent to Snyk are controlled in the \`public\` accept filters", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, + "//": "used to create manifest file", "method": "POST", - "origin": "https://\${BITBUCKET}", - "path": "/rest/api/1.0/projects/:project/repos/:repo/webhooks", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*req*.txt", }, Object { - "//": "allow webhooks to be deleted, used to cleanup when a user deactivates or deletes a project", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "DELETE", - "origin": "https://\${BITBUCKET}", - "path": "/rest/api/1.0/projects/:project/repos/:repo/webhooks/:webhookId", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*req*.txt", }, Object { - "//": "used to create commit status messages", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, + "//": "used to create manifest file", "method": "POST", - "origin": "https://\${BITBUCKET}", - "path": "/rest/build-status/1.0/commits/:sha", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/pyproject.toml", }, Object { - "//": "used to create a new branch for fix PRs", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, + "//": "used to create manifest file", "method": "POST", - "origin": "https://\${BITBUCKET}", - "path": "/rest/api/1.0/projects/:project/repos/:repo/branches", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpyproject.toml", }, Object { - "//": "used to create or update a file for fix PRs", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "PUT", - "origin": "https://\${BITBUCKET}", - "path": "/rest/api/1.0/projects/:project/repos/:repo/browse/*", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/poetry.lock", }, Object { - "//": "used to create a pull request for fix PRs", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, + "//": "used to create manifest file", "method": "POST", - "origin": "https://\${BITBUCKET}", - "path": "/rest/api/1.0/projects/:project/repos/:repo/pull-requests", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpoetry.lock", }, Object { - "//": "used to query for open pull requests by branch", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET}", - "path": "/rest/api/1.0/projects/:project/repos/:repo/pull-requests", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/yarn.lock", }, Object { - "//": "used to query for a merge-base for a pull request", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET}", - "path": "/rest/api/1.0/projects/:project/repos/:repo/pull-requests/:pullRequestId/changes", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fyarn.lock", }, Object { - "//": "used to check for a repo's default branch", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET}", - "path": "/rest/api/1.0/projects/:project/repos/:repo/branches/default", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/build.gradle", }, Object { - "//": "Used to get a branch specified by query string", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET}", - "path": "/rest/api/1.0/projects/:project/repos/:repo/branches:filterText?", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fbuild.gradle", }, Object { - "//": "get a specific commit identified by the commit hash or name of a branch", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET}", - "path": "/rest/api/1.0/projects/:project/repos/:repo/commits/:sha", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/gradle.lockfile", }, Object { - "//": "used to create a Code Insights report", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "PUT", - "origin": "https://\${BITBUCKET}", - "path": "/rest/insights/:apiVersion/projects/:project/repos/:repo/commits/:sha/reports/:report", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fgradle.lockfile", }, Object { - "//": "used to remove a Code Insights report", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "DELETE", - "origin": "https://\${BITBUCKET}", - "path": "/rest/insights/:apiVersion/projects/:project/repos/:repo/commits/:sha/reports/:report", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/gradle.properties", }, Object { - "//": "used to add Code Insights annotations to a report", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, + "//": "used to create manifest file", "method": "POST", - "origin": "https://\${BITBUCKET}", - "path": "/rest/insights/:apiVersion/projects/:project/repos/:repo/commits/:sha/reports/:report/annotations", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fgradle.properties", }, Object { - "//": "get list of API capabilities for Code Insights", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET}", - "path": "/rest/insights/:apiVersion/capabilities", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Directory.Build.targets", }, Object { - "//": "used to remove Code Insights annotations for a report", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "DELETE", - "origin": "https://\${BITBUCKET}", - "path": "/rest/insights/:apiVersion/projects/:project/repos/:repo/commits/:sha/reports/:report/annotations", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FDirectory.Build.targets", }, Object { - "//": "used to get current user. so we'll be able to fetch current user's repos, that are not part of any project.", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET}", - "path": "/rest/api/1.0/application-properties", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Directory.Build.props", }, Object { - "//": "used to get current user. so we'll be able to fetch current user's repos, that are not part of any project - this is using atlassian's SDK api.", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET}", - "path": "/plugins/servlet/applinks/whoami", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FDirectory.Build.props", }, Object { - "//": "used to get the current user's project-like structure. So we'll be able to bind all user's private repos (that are not included in different project)", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:projectKey", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Packages.props", }, Object { - "//": "used to check if the user has admin or higher permissions", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/admin/permissions/users", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FPackages.props", }, Object { - "//": "used to get all the users. it's called only for admin permissioned user. to retrieve all the repos they can access", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/users", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/build.sbt", }, Object { - "//": "used to redirect requests to snyk git client", - "method": "any", - "origin": "\${GIT_CLIENT_URL}", - "path": "/snykgit/*", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fbuild.sbt", }, Object { - "//": "used to fetch a given repo from API", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET}", - "path": "/rest/api/1.0/projects/:project/repos/:repo", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/packages.config", }, Object { - "//": "used to get default reviewers for a pull request", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET}", - "path": "/rest/default-reviewers/1.0/projects/:projectKey/repos/:repo/reviewers", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpackages.config", }, Object { - "//": "allow info refs (for git clone)", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET}", - "path": "*/info/refs*", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*.csproj", }, Object { - "//": "allow git-upload-pack (for git clone)", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, + "//": "used to create manifest file", "method": "POST", - "origin": "https://\${BITBUCKET}", - "path": "*/git-upload-pack", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*.csproj", }, Object { - "//": "needed to load code snippets", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/:file", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*.vbproj", }, - ], - "public": Array [ Object { - "//": "used for pushing up webhooks from bitbucket-server", + "//": "used to create manifest file", "method": "POST", - "path": "/webhook/bitbucket-server/:webhookId", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*.vbproj", }, - ], -} -`; - -exports[`filter Rules Loading Injection of valid CODE rules - Testing github 1`] = ` -Object { - "private": Array [ Object { - "//": "search for user's repos", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/search/repositories", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*.fsproj", }, Object { - "//": "list the user's info, and validate their credentials", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/user", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*.fsproj", }, Object { - "//": "list the user's orgs", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/user/orgs", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/project.json", }, Object { - "//": "list the logged in user's repos", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/user/repos", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fproject.json", }, Object { - "//": "list a user's repos", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/users/:username/repos", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Gopkg.toml", }, Object { - "//": "list an orgs's repos", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/orgs/:username/repos", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FGopkg.toml", }, Object { - "//": "get a user's repo", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:user/:repo", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Gopkg.lock", }, Object { - "//": "rate limit check", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/rate_limit", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FGopkg.lock", }, Object { - "//": "allow meta lookup on the api version", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/vendor.json", }, Object { - "//": "allow webhooks to be added, to allow commits to be checked by Snyk. Rules for what is sent to Snyk are controlled in the \`public\` accept filters", + "//": "used to create manifest file", "method": "POST", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:user/:repo/hooks", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fvendor.json", }, Object { - "//": "allow webhooks to be deleted, used to cleanup when a user deactivates or deletes a project", - "method": "DELETE", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:owner/:repo/hooks/:id", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/composer.lock", }, Object { - "//": "used to create commit status messages", + "//": "used to create manifest file", "method": "POST", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:user/:repo/statuses/:sha", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fcomposer.lock", }, Object { - "//": "used to list branches on a repo", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:user/:repo/branches", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/composer.json", }, Object { - "//": "used to get branch info", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:user/:repo/branches/:branch", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fcomposer.json", }, Object { - "//": "used to get status checks on a branch", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:user/:repo/branches/:branch/protection/required_status_checks/contexts", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/project.assets.json", }, Object { - "//": "used to create status checks on a branch", + "//": "used to create manifest file", "method": "POST", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:user/:repo/branches/:branch/protection/required_status_checks/contexts", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fproject.assets.json", }, Object { - "//": "used to delete status checks on a branch", - "method": "DELETE", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:user/:repo/branches/:branch/protection/required_status_checks/contexts", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Podfile", }, Object { - "//": "check if repo is public", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB}", - "path": "/:user/:repo", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FPodfile", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/package.json", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Podfile.lock", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fpackage.json", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FPodfile.lock", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/package.json", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/go.mod", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fpackage.json", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fgo.mod", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/package-lock.json", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/go.sum", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fpackage-lock.json", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fgo.sum", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/package-lock.json", + "//": "used to create Dockerfile", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*Dockerfile*", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fpackage-lock.json", + "//": "used to create Dockerfile", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*Dockerfile*", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Gemfile.lock", + "//": "used to create ignore rules or patches", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/.snyk", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FGemfile.lock", + "//": "used to create ignore rules or patches", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F.snyk", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/Gemfile.lock", + "//": "used to create manifest file for v3 protocol", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v3/projects/:project/repository/files", + "valid": Array [ + Object { + "queryParam": "file_path", + "values": Array [ + "**/package.json", + "**%2Fpackage.json", + "**/yarn.lock", + "**%2Fyarn.lock", + "**/package-lock.json", + "**%2Fpackage-lock.json", + "**/Gemfile", + "**%2FGemfile", + "**/Gemfile.lock", + "**%2FGemfile.lock", + "**/pom.xml", + "**%2Fpom.xml", + "**/*req*.txt", + "**%2F*req*.txt", + "**/pyproject.toml", + "**%2Fpyproject.toml", + "**/poetry.lock", + "**%2Fpoetry.lock", + "**/build.gradle", + "**%2Fbuild.gradle", + "**/gradle.lockfile", + "**%2Fgradle.lockfile", + "**/build.sbt", + "**%2Fbuild.sbt", + "**/.snyk", + "**%2F.snyk", + "**/packages.config", + "**%2Fpackages.config", + "**/*.csproj", + "**%2F*.csproj", + "**/*.vbproj", + "**%2F*.vbproj", + "**/*.fsproj", + "**%2F*.fsproj", + "**/project.json", + "**%2Fproject.json", + "**/Gopkg.toml", + "**%2FGopkg.toml", + "**/Gopkg.lock", + "**%2FGopkg.lock", + "**/vendor.json", + "**%2Fvendor.json", + "**/composer.lock", + "**%2Fcomposer.lock", + "**/composer.json", + "**%2Fcomposer.json", + "**/project.assets.json", + "**%2Fproject.assets.json", + "**/Podfile", + "**%2FPodfile", + "**/Podfile.lock", + "**%2FPodfile.lock", + "**/go.mod", + "**%2Fgo.mod", + "**/go.sum", + "**%2Fgo.sum", + ], + }, + ], }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2FGemfile.lock", + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/package.json", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Gemfile", + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpackage.json", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FGemfile", + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/package-lock.json", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/Gemfile", + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpackage-lock.json", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2FGemfile", + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Gemfile.lock", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/pom.xml", + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FGemfile.lock", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fpom.xml", + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Gemfile", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/pom.xml", + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FGemfile", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fpom.xml", + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/pom.xml", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/*req*.txt", + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpom.xml", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2F*req*.txt", + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*req*.txt", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/*req*.txt", + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*req*.txt", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2F*req*.txt", + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/pyproject.toml", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/requirements/*.txt", + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpyproject.toml", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Frequirements%2F*.txt", + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/poetry.lock", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/requirements/*.txt", + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpoetry.lock", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Frequirements%2F*.txt", + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/yarn.lock", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/pyproject.toml", + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fyarn.lock", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fpyproject.toml", + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/build.gradle", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/pyproject.toml", + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fbuild.gradle", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fpyproject.toml", + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/gradle.lockfile", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/poetry.lock", + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fgradle.lockfile", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fpoetry.lock", + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/gradle.properties", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/poetry.lock", + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fgradle.properties", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fpoetry.lock", + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Directory.Build.targets", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/yarn.lock", + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FDirectory.Build.targets", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fyarn.lock", + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Directory.Build.props", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/yarn.lock", + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FDirectory.Build.props", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fyarn.lock", + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Packages.props", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/build.gradle", + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FPackages.props", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fbuild.gradle", + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/build.sbt", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/build.gradle", + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fbuild.sbt", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fbuild.gradle", + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/packages.config", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/gradle.lockfile", + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpackages.config", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fgradle.lockfile", + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*.csproj", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/gradle.lockfile", + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*.csproj", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fgradle.lockfile", + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*.vbproj", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/gradle.properties", + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*.vbproj", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fgradle.properties", + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*.fsproj", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/gradle.properties", + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*.fsproj", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fgradle.properties", + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/project.json", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Packages.props", + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fproject.json", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FPackages.props", + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Gopkg.toml", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/Packages.props", + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FGopkg.toml", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2FPackages.props", + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Gopkg.lock", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Directory.Build.props", + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FGopkg.lock", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FDirectory.Build.props", + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/vendor.json", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/Directory.Build.props", + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fvendor.json", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2FDirectory.Build.props", + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/composer.lock", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Directory.Build.targets", + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fcomposer.lock", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FDirectory.Build.targets", + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/composer.json", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/Directory.Build.targets", + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fcomposer.json", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2FDirectory.Build.targets", + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/project.assets.json", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/build.sbt", + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fproject.assets.json", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fbuild.sbt", + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Podfile", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/build.sbt", + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FPodfile", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fbuild.sbt", + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Podfile.lock", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/packages.config", + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FPodfile.lock", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fpackages.config", + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/go.mod", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/packages.config", + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fgo.mod", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fpackages.config", + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/go.sum", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/*.csproj", + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fgo.sum", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2F*.csproj", + "//": "used to update Dockerfile", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*Dockerfile*", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/*.csproj", + "//": "used to update Dockerfile", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*Dockerfile*", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2F*.csproj", + "//": "used to update ignore rules or existing patches", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/.snyk", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/*.fsproj", + "//": "used to update ignore rules or existing patches", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F.snyk", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2F*.fsproj", + "//": "used to update manifest file for v3 protocol", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v3/projects/:project/repository/files", + "valid": Array [ + Object { + "queryParam": "file_path", + "values": Array [ + "**/package.json", + "**%2Fpackage.json", + "**/yarn.lock", + "**%2Fyarn.lock", + "**/package-lock.json", + "**%2Fpackage-lock.json", + "**/Gemfile", + "**%2FGemfile", + "**/Gemfile.lock", + "**%2FGemfile.lock", + "**/pom.xml", + "**%2Fpom.xml", + "**/*req*.txt", + "**%2F*req*.txt", + "**/pyproject.toml", + "**%2Fpyproject.toml", + "**/poetry.lock", + "**%2Fpoetry.lock", + "**/build.gradle", + "**%2Fbuild.gradle", + "**/gradle.lockfile", + "**%2Fgradle.lockfile", + "**/build.sbt", + "**%2Fbuild.sbt", + "**/.snyk", + "**%2F.snyk", + "**/packages.config", + "**%2Fpackages.config", + "**/*.csproj", + "**%2F*.csproj", + "**/*.vbproj", + "**%2F*.vbproj", + "**/*.fsproj", + "**%2F*.fsproj", + "**/project.json", + "**%2Fproject.json", + "**/Gopkg.toml", + "**%2FGopkg.toml", + "**/Gopkg.lock", + "**%2FGopkg.lock", + "**/vendor.json", + "**%2Fvendor.json", + "**/composer.lock", + "**%2Fcomposer.lock", + "**/composer.json", + "**%2Fcomposer.json", + "**/project.assets.json", + "**%2Fproject.assets.json", + "**/Podfile", + "**%2FPodfile", + "**/Podfile.lock", + "**%2FPodfile.lock", + "**/go.mod", + "**%2Fgo.mod", + "**/go.sum", + "**%2Fgo.sum", + ], + }, + ], }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/*.fsproj", + "//": "allow webhooks to be added, to allow commits to be checked by Snyk. Rules for what is sent to Snyk are controlled in the \`public\` accept filters", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/hooks", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2F*.fsproj", + "//": "allow webhooks to be deleted, used to cleanup when a user deactivates or deletes a project", + "method": "DELETE", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/hooks/:id", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/*.vbproj", + "//": "used to create commit status messages", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/statuses/:sha", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2F*.vbproj", + "//": "used to create branch for fix merge request", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/branches", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/*.vbproj", + "//": "used to create merge request for fix merge request", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/merge_requests", }, Object { - "//": "used to determine the full dependency tree", + "//": "used to fetch fix merge request information", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2F*.vbproj", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/merge_requests", }, Object { - "//": "used to determine the full dependency tree", + "//": "list the user's groups", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/project.json", + "origin": "https://\${GITLAB}", + "path": "/api/v4/groups", }, Object { - "//": "used to determine the full dependency tree", + "//": "list of projects in a group", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fproject.json", + "origin": "https://\${GITLAB}", + "path": "/api/v4/groups/:id/projects", }, Object { - "//": "used to determine the full dependency tree", + "//": "get current user. so we'll be able to fetch it's projects", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/project.json", + "origin": "https://\${GITLAB}", + "path": "/api/v4/user", }, Object { - "//": "used to determine the full dependency tree", + "//": "get user's projects", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fproject.json", + "origin": "https://\${GITLAB}", + "path": "/api/v4/users/:user/projects", }, Object { - "//": "used to determine the full dependency tree", + "//": "get all users. so we'll be able to fetch projects that admin can access", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Gopkg.toml", + "origin": "https://\${GITLAB}", + "path": "/api/v4/users", }, Object { - "//": "used to determine the full dependency tree", + "//": "used to get repo's contributors list", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FGopkg.toml", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/commits", }, Object { - "//": "used to determine the full dependency tree", + "//": "get a specific commit identified by the commit hash or name of a branch or tag.", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/Gopkg.toml", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/commits/:sha", }, Object { - "//": "used to determine the full dependency tree", + "//": "get merge base of two commits for given project.", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2FGopkg.toml", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/merge_base", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Gopkg.lock", + "//": "used to redirect requests to snyk git client", + "method": "any", + "origin": "\${GIT_CLIENT_URL}", + "path": "/snykgit/*", }, Object { - "//": "used to determine the full dependency tree", + "//": "list the group's members", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FGopkg.lock", + "origin": "https://\${GITLAB}", + "path": "/api/v4/groups/:id/members", }, Object { - "//": "used to determine the full dependency tree", + "//": "list of languages in a project", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/Gopkg.lock", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/languages", }, Object { - "//": "used to determine the full dependency tree", + "//": "list of groups in a project", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2FGopkg.lock", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/groups", }, Object { - "//": "used to determine the full dependency tree", + "//": "used to retrieve organization context from catalog-info.yaml", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/vendor.json", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files/catalog-info.yaml/raw", }, Object { - "//": "used to determine the full dependency tree", + "//": "get metadata", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fvendor.json", + "origin": "https://\${GITLAB}", + "path": "/api/v4/metadata", }, + ], + "public": Array [ Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/vendor.json", + "//": "used for pushing up webhooks from gitlab", + "method": "POST", + "path": "/webhook/gitlab/:webhookId", }, + ], +} +`; + +exports[`filter Rules Loading Injection of valid CODE GH rules - Testing azure-repos 1`] = ` +Object { + "private": Array [ Object { - "//": "used to determine the full dependency tree", + "//": "get list of projects for given organisation", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fvendor.json", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/_apis/projects", }, Object { - "//": "used to determine the full dependency tree", + "//": "get specific repository for given organisation", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/composer.lock", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo", }, Object { - "//": "used to determine the full dependency tree", + "//": "get list of repositories for given organisation", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fcomposer.lock", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories", }, Object { - "//": "used to determine the full dependency tree", + "//": "get list of refs", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/composer.lock", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/refs", }, Object { - "//": "used to determine the full dependency tree", + "//": "search through repositories of given organisation", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fcomposer.lock", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "_apis/git/repositories", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/composer.json", + "//": "create hook", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "POST", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/_apis/hooks/subscriptions", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fcomposer.json", + "//": "delete hook", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "DELETE", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/_apis/hooks/subscriptions/:subscriptionId", }, Object { - "//": "used to determine the full dependency tree", + "//": "get file content. restrict by file types", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/composer.json", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/items", + "valid": Array [ + Object { + "queryParam": "path", + "values": Array [ + "**/package.json", + "**%2Fpackage.json", + "**/yarn.lock", + "**%2Fyarn.lock", + "**/package-lock.json", + "**%2Fpackage-lock.json", + "**/Gemfile", + "**%2FGemfile", + "**/Gemfile.lock", + "**%2FGemfile.lock", + "**/pom.xml", + "**%2Fpom.xml", + "**/*req*.txt", + "**%2F*req*.txt", + "**/requirements/*.txt", + "**%2Frequirements%2F*.txt", + "**/pyproject.toml", + "**%2Fpyproject.toml", + "**/poetry.lock", + "**%2Fpoetry.lock", + "**/Pipfile", + "**%2FPipfile", + "**/Pipfile.lock", + "**%2FPipfile.lock", + "**/build.gradle", + "**%2Fbuild.gradle", + "**/gradle.lockfile", + "**%2Fgradle.lockfile", + "**/build.sbt", + "**%2Fbuild.sbt", + "**/.snyk", + "**%2F.snyk", + "**/packages.config", + "**%2Fpackages.config", + "**/*.csproj", + "**%2F*.csproj", + "**/*.vbproj", + "**%2F*.vbproj", + "**/*.fsproj", + "**%2F*.fsproj", + "**/project.json", + "**%2Fproject.json", + "**/Gopkg.toml", + "**%2FGopkg.toml", + "**/Gopkg.lock", + "**%2FGopkg.lock", + "**/vendor.json", + "**%2Fvendor.json", + "**/composer.lock", + "**%2Fcomposer.lock", + "**/composer.json", + "**%2Fcomposer.json", + "**/project.assets.json", + "**%2Fproject.assets.json", + "**/Podfile", + "**%2FPodfile", + "**/Podfile.lock", + "**%2FPodfile.lock", + "**/go.mod", + "**%2Fgo.mod", + "**/go.sum", + "**%2Fgo.sum", + "**/*Dockerfile*", + "**%2F*Dockerfile*", + ], + }, + Object { + "queryParam": "recursionLevel", + "values": Array [ + "none", + ], + }, + Object { + "queryParam": "download", + "values": Array [ + "true", + ], + }, + Object { + "queryParam": "includeContent", + "values": Array [ + "true", + ], + }, + ], }, Object { - "//": "used to determine the full dependency tree", + "//": "check file existence. restrict by file types", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fcomposer.json", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/items", + "valid": Array [ + Object { + "queryParam": "path", + "values": Array [ + "**/package.json", + "**%2Fpackage.json", + "**/yarn.lock", + "**%2Fyarn.lock", + "**/package-lock.json", + "**%2Fpackage-lock.json", + "**/Gemfile", + "**%2FGemfile", + "**/Gemfile.lock", + "**%2FGemfile.lock", + "**/pom.xml", + "**%2Fpom.xml", + "**/*req*.txt", + "**%2F*req*.txt", + "**/requirements/*.txt", + "**%2Frequirements%2F*.txt", + "**/pyproject.toml", + "**%2Fpyproject.toml", + "**/poetry.lock", + "**%2Fpoetry.lock", + "**/Pipfile", + "**%2FPipfile", + "**/Pipfile.lock", + "**%2FPipfile.lock", + "**/build.gradle", + "**%2Fbuild.gradle", + "**/gradle.lockfile", + "**%2Fgradle.lockfile", + "**/build.sbt", + "**%2Fbuild.sbt", + "**/.snyk", + "**%2F.snyk", + "**/packages.config", + "**%2Fpackages.config", + "**/*.csproj", + "**%2F*.csproj", + "**/*.vbproj", + "**%2F*.vbproj", + "**/*.fsproj", + "**%2F*.fsproj", + "**/project.json", + "**%2Fproject.json", + "**/Gopkg.toml", + "**%2FGopkg.toml", + "**/Gopkg.lock", + "**%2FGopkg.lock", + "**/vendor.json", + "**%2Fvendor.json", + "**/composer.lock", + "**%2Fcomposer.lock", + "**/composer.json", + "**%2Fcomposer.json", + "**/project.assets.json", + "**%2Fproject.assets.json", + "**/Podfile", + "**%2FPodfile", + "**/Podfile.lock", + "**%2FPodfile.lock", + "**/go.mod", + "**%2Fgo.mod", + "**/go.sum", + "**%2Fgo.sum", + "**/*Dockerfile*", + "**%2F*Dockerfile*", + ], + }, + Object { + "queryParam": "versionDescriptor.versionType", + "values": Array [ + "branch", + ], + }, + Object { + "queryParam": "includeContentMetadata", + "values": Array [ + "true", + ], + }, + ], }, Object { - "//": "used to determine the full dependency tree", + "//": "get list of files for given repository", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/project.assets.json", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/items", + "valid": Array [ + Object { + "queryParam": "recursionLevel", + "values": Array [ + "full", + ], + }, + Object { + "queryParam": "download", + "values": Array [ + "false", + ], + }, + Object { + "queryParam": "includeContent", + "values": Array [ + "false", + ], + }, + ], }, Object { - "//": "used to determine the full dependency tree", + "//": "get list of commits for given repository", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fproject.assets.json", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/commits", }, Object { - "//": "used to determine the full dependency tree", + "//": "get merge base of two commits for given repository", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/project.assets.json", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/commits/:commitId/mergebases", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fproject.assets.json", + "//": "update status of given commit", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "POST", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/commits/:commitId/statuses", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Podfile", + "//": "update status of given pull request", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "POST", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/pullRequests/:pullRef/statuses", }, Object { - "//": "used to determine the full dependency tree", + "//": "find PR for given repository", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FPodfile", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/pullrequests", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Podfile.lock", + "//": "create new PR in given repository", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "POST", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/pullrequests", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FPodfile.lock", - }, + "//": "update existing PR in given repository", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "PATCH", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/pullrequests/:pullRef", + }, Object { - "//": "used to determine the full dependency tree", + "//": "push new commit in given repository", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "POST", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/pushes", + }, + Object { + "//": "used to redirect requests to snyk git client", + "method": "any", + "origin": "\${GIT_CLIENT_URL}", + "path": "/snykgit/*", + }, + ], + "public": Array [ + Object { + "//": "used for pushing up webhooks from Azure", + "method": "POST", + "path": "/webhook/azure-repos/:webhookId", + }, + ], +} +`; + +exports[`filter Rules Loading Injection of valid CODE GH rules - Testing bitbucket-server 1`] = ` +Object { + "private": Array [ + Object { + "//": "list the user's projects", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/Podfile", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects", }, Object { - "//": "used to determine the full dependency tree", + "//": "list the project's repos", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2FPodfile", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:projectKey/repos", }, Object { - "//": "used to determine the full dependency tree", + "//": "list the user's repos", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/Podfile.lock", + "origin": "https://\${BITBUCKET_API}", + "path": "/repos", }, Object { - "//": "used to determine the full dependency tree", + "//": "fetch a given repo", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2FPodfile.lock", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo", + }, + Object { + "//": "read all file names to find manifests", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/files/:searchPath?", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/go.mod", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/package.json", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fgo.mod", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fpackage.json", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/go.mod", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/package-lock.json", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fgo.mod", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fpackage-lock.json", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/go.sum", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Gemfile.lock", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fgo.sum", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FGemfile.lock", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/go.sum", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Gemfile", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fgo.sum", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FGemfile", }, Object { - "//": "used to scan Dockerfile", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/*Dockerfile*", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/pom.xml", }, Object { - "//": "used to scan Dockerfile", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2F*Dockerfile*", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fpom.xml", }, Object { - "//": "used to scan Dockerfile", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/*Dockerfile*", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/*req*.txt", }, Object { - "//": "used to scan Dockerfile", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2F*Dockerfile*", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F*req*.txt", }, Object { - "//": "used to check if there's any ignore rules or existing patches", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/.snyk", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/requirements/*.txt", }, Object { - "//": "used to check if there's any ignore rules or existing patches", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2F.snyk", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Frequirements%2F*.txt", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/.snyk", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/pyproject.toml", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2F.snyk", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fpyproject.toml", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/package.json", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/poetry.lock", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fpackage.json", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fpoetry.lock", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/package.json", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Pipfile", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fpackage.json", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FPipfile", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/package-lock.json", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Pipfile.lock", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fpackage-lock.json", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FPipfile.lock", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/package-lock.json", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/yarn.lock", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fpackage-lock.json", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fyarn.lock", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Gemfile.lock", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/build.gradle", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FGemfile.lock", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fbuild.gradle", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/Gemfile.lock", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/gradle.lockfile", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2FGemfile.lock", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fgradle.lockfile", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Gemfile", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/gradle.properties", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FGemfile", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fgradle.properties", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/Gemfile", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Packages.props", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2FGemfile", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FPackages.props", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/pom.xml", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Directory.Build.props", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fpom.xml", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FDirectory.Build.props", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/pom.xml", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Directory.Build.targets", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fpom.xml", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FDirectory.Build.targets", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/*req*.txt", - }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2F*req*.txt", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/build.sbt", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/*req*.txt", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fbuild.sbt", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2F*req*.txt", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/packages.config", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/pyproject.toml", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fpackages.config", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fpyproject.toml", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/*.csproj", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/pyproject.toml", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F*.csproj", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fpyproject.toml", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/*.vbproj", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/poetry.lock", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F*.vbproj", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fpoetry.lock", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/*.fsproj", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/poetry.lock", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F*.fsproj", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fpoetry.lock", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/project.json", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/yarn.lock", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fproject.json", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fyarn.lock", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Gopkg.toml", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/yarn.lock", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FGopkg.toml", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fyarn.lock", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Gopkg.lock", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/build.gradle", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FGopkg.lock", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fbuild.gradle", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/vendor.json", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/build.gradle", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fvendor.json", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fbuild.gradle", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/composer.lock", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/gradle.lockfile", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fcomposer.lock", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fgradle.lockfile", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/composer.json", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/gradle.lockfile", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fcomposer.json", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fgradle.lockfile", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/project.assets.json", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/gradle.properties", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fproject.assets.json", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fgradle.properties", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Podfile", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/gradle.properties", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FPodfile", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fgradle.properties", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Podfile.lock", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Packages.props", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FPodfile.lock", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FPackages.props", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/go.mod", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/Packages.props", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fgo.mod", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2FPackages.props", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/go.sum", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Directory.Build.props", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fgo.sum", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FDirectory.Build.props", + "//": "used to scan Dockerfile", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/*Dockerfile*", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/Directory.Build.props", + "//": "used to scan Dockerfile", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F*Dockerfile*", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2FDirectory.Build.props", + "//": "used to check if there's any ignore rules or existing patches", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/.snyk", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Directory.Build.targets", + "//": "used to check if there's any ignore rules or existing patches", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F.snyk", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FDirectory.Build.targets", + "//": "get list of API capabilities", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/capabilities", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/Directory.Build.targets", + "//": "allow webhooks to be added, to allow commits to be checked by Snyk. Rules for what is sent to Snyk are controlled in the \`public\` accept filters", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "POST", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/webhooks", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2FDirectory.Build.targets", + "//": "allow webhooks to be deleted, used to cleanup when a user deactivates or deletes a project", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "DELETE", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/webhooks/:webhookId", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/build.sbt", + "//": "used to create commit status messages", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "POST", + "origin": "https://\${BITBUCKET}", + "path": "/rest/build-status/1.0/commits/:sha", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fbuild.sbt", + "//": "used to create a new branch for fix PRs", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "POST", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/branches", }, Object { - "//": "used to update manifest or lock", + "//": "used to create or update a file for fix PRs", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/build.sbt", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/browse/*", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fbuild.sbt", + "//": "used to create a pull request for fix PRs", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "POST", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/pull-requests", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/packages.config", + "//": "used to query for open pull requests by branch", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/pull-requests", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fpackages.config", + "//": "used to query for a merge-base for a pull request", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/pull-requests/:pullRequestId/changes", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/packages.config", + "//": "used to check for a repo's default branch", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/branches/default", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fpackages.config", + "//": "Used to get a branch specified by query string", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/branches:filterText?", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/*.csproj", + "//": "get a specific commit identified by the commit hash or name of a branch", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/commits/:sha", }, Object { - "//": "used to update manifest or lock", + "//": "used to create a Code Insights report", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2F*.csproj", + "origin": "https://\${BITBUCKET}", + "path": "/rest/insights/:apiVersion/projects/:project/repos/:repo/commits/:sha/reports/:report", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/*.csproj", + "//": "used to remove a Code Insights report", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "DELETE", + "origin": "https://\${BITBUCKET}", + "path": "/rest/insights/:apiVersion/projects/:project/repos/:repo/commits/:sha/reports/:report", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2F*.csproj", + "//": "used to add Code Insights annotations to a report", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "POST", + "origin": "https://\${BITBUCKET}", + "path": "/rest/insights/:apiVersion/projects/:project/repos/:repo/commits/:sha/reports/:report/annotations", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/*.fsproj", + "//": "get list of API capabilities for Code Insights", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/insights/:apiVersion/capabilities", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2F*.fsproj", + "//": "used to remove Code Insights annotations for a report", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "DELETE", + "origin": "https://\${BITBUCKET}", + "path": "/rest/insights/:apiVersion/projects/:project/repos/:repo/commits/:sha/reports/:report/annotations", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/*.fsproj", + "//": "used to get current user. so we'll be able to fetch current user's repos, that are not part of any project.", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/application-properties", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2F*.fsproj", + "//": "used to get current user. so we'll be able to fetch current user's repos, that are not part of any project - this is using atlassian's SDK api.", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/plugins/servlet/applinks/whoami", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/*.vbproj", + "//": "used to get the current user's project-like structure. So we'll be able to bind all user's private repos (that are not included in different project)", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:projectKey", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2F*.vbproj", + "//": "used to check if the user has admin or higher permissions", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/admin/permissions/users", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/*.vbproj", + "//": "used to get all the users. it's called only for admin permissioned user. to retrieve all the repos they can access", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/users", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2F*.vbproj", + "//": "used to redirect requests to snyk git client", + "method": "any", + "origin": "\${GIT_CLIENT_URL}", + "path": "/snykgit/*", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/project.json", + "//": "used to fetch a given repo from API", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fproject.json", + "//": "used to get default reviewers for a pull request", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/default-reviewers/1.0/projects/:projectKey/repos/:repo/reviewers", }, + ], + "public": Array [ Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/project.json", + "//": "used for pushing up webhooks from bitbucket-server", + "method": "POST", + "path": "/webhook/bitbucket-server/:webhookId", }, + ], +} +`; + +exports[`filter Rules Loading Injection of valid CODE GH rules - Testing bitbucket-server-bearer-auth 1`] = ` +Object { + "private": Array [ Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fproject.json", + "//": "list the user's projects", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Gopkg.toml", + "//": "list the project's repos", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:projectKey/repos", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FGopkg.toml", + "//": "list the user's repos", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/repos", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/Gopkg.toml", + "//": "fetch a given repo", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2FGopkg.toml", + "//": "read all file names to find manifests", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/files/:searchPath?", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Gopkg.lock", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/package.json", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FGopkg.lock", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fpackage.json", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/Gopkg.lock", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/package-lock.json", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2FGopkg.lock", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fpackage-lock.json", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/vendor.json", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Gemfile.lock", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fvendor.json", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FGemfile.lock", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/vendor.json", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Gemfile", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fvendor.json", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FGemfile", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/composer.lock", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/pom.xml", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fcomposer.lock", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fpom.xml", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/composer.lock", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/*req*.txt", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fcomposer.lock", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F*req*.txt", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/composer.json", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/requirements/*.txt", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fcomposer.json", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Frequirements%2F*.txt", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/composer.json", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/pyproject.toml", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fcomposer.json", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fpyproject.toml", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/project.assets.json", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/poetry.lock", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fproject.assets.json", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fpoetry.lock", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/project.assets.json", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Pipfile", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fproject.assets.json", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FPipfile", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Podfile", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Pipfile.lock", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FPodfile", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FPipfile.lock", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Podfile.lock", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/yarn.lock", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FPodfile.lock", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fyarn.lock", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/Podfile", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/build.gradle", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2FPodfile", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fbuild.gradle", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/Podfile.lock", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/gradle.lockfile", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2FPodfile.lock", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fgradle.lockfile", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/go.mod", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/gradle.properties", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fgo.mod", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fgradle.properties", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/go.mod", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Packages.props", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fgo.mod", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FPackages.props", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/go.sum", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Directory.Build.props", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fgo.sum", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FDirectory.Build.props", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/go.sum", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Directory.Build.targets", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fgo.sum", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FDirectory.Build.targets", }, Object { - "//": "used to update Dockerfile", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/*Dockerfile*", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/build.sbt", }, Object { - "//": "used to update Dockerfile", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2F*Dockerfile*", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fbuild.sbt", }, Object { - "//": "used to update Dockerfile", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/*Dockerfile*", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/packages.config", }, Object { - "//": "used to update Dockerfile", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2F*Dockerfile*", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fpackages.config", }, Object { - "//": "used to write or update ignore rules or existing patches", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/.snyk", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/*.csproj", }, Object { - "//": "used to write or update ignore rules or existing patches", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2F.snyk", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F*.csproj", }, Object { - "//": "get details of the repo", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/*.vbproj", }, Object { - "//": "get the details of the commit to determine its SHA", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/commits/:ref", - "valid": Array [ - Object { - "header": "accept", - "values": Array [ - "application/vnd.github.v4.sha", - ], - }, - ], + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F*.vbproj", }, Object { - "//": "get a list of all the refs to match find whether an existing PR is open", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/git/refs", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/*.fsproj", }, Object { - "//": "get the head commit of an individual ref", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/git/refs/heads/:ref", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F*.fsproj", }, Object { - "//": "get the details of an individual ref", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/git/refs/:ref", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/project.json", }, Object { - "//": "compares two commits against each other", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/compare/:base...:head", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fproject.json", }, Object { - "//": "search for open snyk pull requests", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/pulls", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Gopkg.toml", }, Object { - "//": "get pull request data for getting merge sha and tracking PR processing state", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/pulls/:pull_number", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FGopkg.toml", }, Object { - "//": "get pull request file names", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/pulls/:pull_number/files", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Gopkg.lock", }, Object { - "//": "create branches for new commits", - "method": "POST", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/git/refs", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FGopkg.lock", }, Object { - "//": "create the pull request", - "method": "POST", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/pulls", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/vendor.json", }, Object { - "//": "add pull request assignees", - "method": "POST", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/issues/:pull_number/assignees", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fvendor.json", }, Object { - "//": "update ref", - "method": "PATCH", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/git/refs/:sha", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/composer.lock", }, Object { - "//": "update ref head", - "method": "PATCH", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/git/refs/heads/:ref", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fcomposer.lock", }, Object { - "//": "get list of all files in a repo", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/git/trees/:ref", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/composer.json", }, Object { - "//": "used to get repo's contributors list", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:owner/:repo/commits", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fcomposer.json", }, Object { - "//": "used to redirect requests to snyk git client", - "method": "any", - "origin": "\${GIT_CLIENT_URL}", - "path": "/snykgit/*", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/project.assets.json", }, Object { - "//": "query graphql", - "method": "POST", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_GRAPHQL}", - "path": "/graphql", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fproject.assets.json", }, Object { - "//": "allow info refs (for git clone)", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://pat:\${GITHUB_TOKEN}@\${GITHUB}", - "path": "*/info/refs*", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Podfile", }, Object { - "//": "allow git-upload-pack (for git clone)", - "method": "POST", - "origin": "https://pat:\${GITHUB_TOKEN}@\${GITHUB}", - "path": "*/git-upload-pack", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FPodfile", }, Object { - "//": "needed to load code snippets", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Podfile.lock", }, - ], - "public": Array [ Object { - "//": "used for pushing up webhooks from github", - "method": "POST", - "path": "/webhook/github", - "valid": Array [ - Object { - "//": "accept all pull request state changes (these don't have files in them)", - "path": "pull_request.state", - "value": "open", - }, - Object { - "path": "commits.*.added.*", - "value": "package.json", - }, - Object { - "path": "commits.*.modified.*", - "value": "package.json", - }, - Object { - "path": "commits.*.added.*", - "value": "package-lock.json", - }, - Object { - "path": "commits.*.modified.*", - "value": "package-lock.json", - }, - Object { - "path": "commits.*.added.*", - "value": "Gemfile.lock", - }, - Object { - "path": "commits.*.modified.*", - "value": "Gemfile.lock", - }, - Object { - "path": "commits.*.added.*", - "value": "*req*.txt", - }, - Object { - "path": "commits.*.modified.*", - "value": "*req*.txt", - }, - Object { - "path": "commits.*.added.*", - "value": "requirements%2F*.txt", - }, - Object { - "path": "commits.*.modified.*", - "value": "requirements%2F*.txt", - }, - Object { - "path": "commits.*.added.*", - "value": "requirements/*.txt", - }, - Object { - "path": "commits.*.modified.*", - "value": "requirements/*.txt", - }, - Object { - "path": "commits.*.added.*", - "value": "pyproject.toml", - }, - Object { - "path": "commits.*.modified.*", - "value": "pyproject.toml", - }, - Object { - "path": "commits.*.added.*", - "value": "poetry.lock", - }, - Object { - "path": "commits.*.modified.*", - "value": "poetry.lock", - }, - Object { - "path": "commits.*.added.*", - "value": "Pipfile", - }, - Object { - "path": "commits.*.modified.*", - "value": "Pipfile", - }, - Object { - "path": "commits.*.added.*", - "value": "Pipfile.lock", - }, - Object { - "path": "commits.*.modified.*", - "value": "Pipfile.lock", - }, - Object { - "path": "commits.*.added.*", - "value": "pom.xml", - }, - Object { - "path": "commits.*.modified.*", - "value": "pom.xml", - }, - Object { - "path": "commits.*.added.*", - "value": "build.gradle", - }, - Object { - "path": "commits.*.modified.*", - "value": "build.gradle", - }, - Object { - "path": "commits.*.added.*", - "value": "gradle.lockfile", - }, - Object { - "path": "commits.*.modified.*", - "value": "gradle.lockfile", - }, - Object { - "path": "commits.*.added.*", - "value": "gradle.properties", - }, - Object { - "path": "commits.*.modified.*", - "value": "gradle.properties", - }, - Object { - "path": "commits.*.added.*", - "value": "Packages.props", - }, - Object { - "path": "commits.*.modified.*", - "value": "Packages.props", - }, - Object { - "path": "commits.*.added.*", - "value": "Directory.Build.props", - }, - Object { - "path": "commits.*.modified.*", - "value": "Directory.Build.props", - }, - Object { - "path": "commits.*.added.*", - "value": "Directory.Build.targets", - }, - Object { - "path": "commits.*.modified.*", - "value": "Directory.Build.targets", - }, - Object { - "path": "commits.*.added.*", - "value": "build.sbt", - }, - Object { - "path": "commits.*.modified.*", - "value": "build.sbt", - }, - Object { - "path": "commits.*.added.*", - "value": "yarn.lock", - }, - Object { - "path": "commits.*.modified.*", - "value": "yarn.lock", - }, - Object { - "path": "commits.*.added.*", - "value": ".snyk", - }, - Object { - "path": "commits.*.modified.*", - "value": ".snyk", - }, - Object { - "path": "commits.*.added.*", - "value": "packages.config", - }, - Object { - "path": "commits.*.modified.*", - "value": "packages.config", - }, - Object { - "path": "commits.*.added.*", - "value": "*.csproj", - }, - Object { - "path": "commits.*.modified.*", - "value": "*.csproj", - }, - Object { - "path": "commits.*.added.*", - "value": "*.vbproj", - }, - Object { - "path": "commits.*.modified.*", - "value": "*.vbproj", - }, - Object { - "path": "commits.*.added.*", - "value": "*.fsproj", - }, - Object { - "path": "commits.*.modified.*", - "value": "*.fsproj", - }, - Object { - "path": "commits.*.added.*", - "value": "project.json", - }, - Object { - "path": "commits.*.modified.*", - "value": "project.json", - }, - Object { - "path": "commits.*.added.*", - "value": "Gopkg.toml", - }, - Object { - "path": "commits.*.modified.*", - "value": "Gopkg.toml", - }, - Object { - "path": "commits.*.added.*", - "value": "Gopkg.lock", - }, - Object { - "path": "commits.*.modified.*", - "value": "Gopkg.lock", - }, - Object { - "path": "commits.*.added.*", - "value": "vendor.json", - }, - Object { - "path": "commits.*.modified.*", - "value": "vendor.json", - }, - Object { - "path": "commits.*.added.*", - "value": "composer.lock", - }, - Object { - "path": "commits.*.modified.*", - "value": "composer.lock", - }, - Object { - "path": "commits.*.added.*", - "value": "composer.json", - }, - Object { - "path": "commits.*.modified.*", - "value": "composer.json", - }, - Object { - "path": "commits.*.added.*", - "value": "project.assets.json", - }, - Object { - "path": "commits.*.modified.*", - "value": "project.assets.json", - }, - Object { - "path": "commits.*.added.*", - "value": "Podfile", - }, - Object { - "path": "commits.*.modified.*", - "value": "Podfile", - }, - Object { - "path": "commits.*.added.*", - "value": "Podfile.lock", - }, - Object { - "path": "commits.*.modified.*", - "value": "Podfile.lock", - }, - Object { - "path": "commits.*.added.*", - "value": "go.mod", - }, - Object { - "path": "commits.*.modified.*", - "value": "go.mod", - }, - Object { - "path": "commits.*.added.*", - "value": "go.sum", - }, - Object { - "path": "commits.*.modified.*", - "value": "go.sum", - }, - ], + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FPodfile.lock", }, Object { - "//": "used for pushing up webhooks from github", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/go.mod", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fgo.mod", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/go.sum", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fgo.sum", + }, + Object { + "//": "used to scan Dockerfile", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/*Dockerfile*", + }, + Object { + "//": "used to scan Dockerfile", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F*Dockerfile*", + }, + Object { + "//": "used to check if there's any ignore rules or existing patches", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/.snyk", + }, + Object { + "//": "used to check if there's any ignore rules or existing patches", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F.snyk", + }, + Object { + "//": "get list of API capabilities", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/capabilities", + }, + Object { + "//": "allow webhooks to be added, to allow commits to be checked by Snyk. Rules for what is sent to Snyk are controlled in the \`public\` accept filters", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "POST", - "path": "/webhook/github/:webhookId", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/webhooks", + }, + Object { + "//": "allow webhooks to be deleted, used to cleanup when a user deactivates or deletes a project", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "DELETE", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/webhooks/:webhookId", + }, + Object { + "//": "used to create commit status messages", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "POST", + "origin": "https://\${BITBUCKET}", + "path": "/rest/build-status/1.0/commits/:sha", + }, + Object { + "//": "used to create a new branch for fix PRs", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "POST", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/branches", + }, + Object { + "//": "used to create or update a file for fix PRs", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "PUT", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/browse/*", + }, + Object { + "//": "used to create a pull request for fix PRs", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "POST", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/pull-requests", + }, + Object { + "//": "used to query for open pull requests by branch", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/pull-requests", + }, + Object { + "//": "used to query for a merge-base for a pull request", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/pull-requests/:pullRequestId/changes", + }, + Object { + "//": "used to check for a repo's default branch", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/branches/default", + }, + Object { + "//": "Used to get a branch specified by query string", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/branches:filterText?", + }, + Object { + "//": "get a specific commit identified by the commit hash or name of a branch", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/commits/:sha", + }, + Object { + "//": "used to create a Code Insights report", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "PUT", + "origin": "https://\${BITBUCKET}", + "path": "/rest/insights/:apiVersion/projects/:project/repos/:repo/commits/:sha/reports/:report", + }, + Object { + "//": "used to remove a Code Insights report", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "DELETE", + "origin": "https://\${BITBUCKET}", + "path": "/rest/insights/:apiVersion/projects/:project/repos/:repo/commits/:sha/reports/:report", + }, + Object { + "//": "used to add Code Insights annotations to a report", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "POST", + "origin": "https://\${BITBUCKET}", + "path": "/rest/insights/:apiVersion/projects/:project/repos/:repo/commits/:sha/reports/:report/annotations", + }, + Object { + "//": "get list of API capabilities for Code Insights", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/insights/:apiVersion/capabilities", + }, + Object { + "//": "used to remove Code Insights annotations for a report", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "DELETE", + "origin": "https://\${BITBUCKET}", + "path": "/rest/insights/:apiVersion/projects/:project/repos/:repo/commits/:sha/reports/:report/annotations", + }, + Object { + "//": "used to get current user. so we'll be able to fetch current user's repos, that are not part of any project.", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/application-properties", + }, + Object { + "//": "used to get current user. so we'll be able to fetch current user's repos, that are not part of any project - this is using atlassian's SDK api.", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/plugins/servlet/applinks/whoami", + }, + Object { + "//": "used to get the current user's project-like structure. So we'll be able to bind all user's private repos (that are not included in different project)", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:projectKey", + }, + Object { + "//": "used to check if the user has admin or higher permissions", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/admin/permissions/users", + }, + Object { + "//": "used to get all the users. it's called only for admin permissioned user. to retrieve all the repos they can access", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/users", + }, + Object { + "//": "used to redirect requests to snyk git client", + "method": "any", + "origin": "\${GIT_CLIENT_URL}", + "path": "/snykgit/*", + }, + Object { + "//": "used to fetch a given repo from API", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo", + }, + Object { + "//": "used to get default reviewers for a pull request", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/default-reviewers/1.0/projects/:projectKey/repos/:repo/reviewers", + }, + ], + "public": Array [ + Object { + "//": "used for pushing up webhooks from bitbucket-server", + "method": "POST", + "path": "/webhook/bitbucket-server/:webhookId", }, ], } `; -exports[`filter Rules Loading Injection of valid CODE rules - Testing github-enterprise 1`] = ` +exports[`filter Rules Loading Injection of valid CODE GH rules - Testing github 1`] = ` Object { "private": Array [ Object { @@ -17621,39 +18299,87 @@ Object { Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/package-lock.json", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/package.json", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fpackage-lock.json", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fpackage.json", }, Object { "//": "used to determine the full dependency tree", "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Gemfile.lock", + "path": "/repos/:name/:repo/contents/:path*/package-lock.json", }, Object { "//": "used to determine the full dependency tree", "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FGemfile.lock", + "path": "/repos/:name/:repo/contents/:path*%2Fpackage-lock.json", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Gemfile", - }, + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/package-lock.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fpackage-lock.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Gemfile.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FGemfile.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Gemfile.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FGemfile.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Gemfile", + }, Object { "//": "used to determine the full dependency tree", "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2FGemfile", }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Gemfile", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FGemfile", + }, Object { "//": "used to determine the full dependency tree", "method": "GET", @@ -17666,6 +18392,18 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2Fpom.xml", }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/pom.xml", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fpom.xml", + }, Object { "//": "used to determine the full dependency tree", "method": "GET", @@ -17678,6 +18416,18 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2F*req*.txt", }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/*req*.txt", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2F*req*.txt", + }, Object { "//": "used to determine the full dependency tree", "method": "GET", @@ -17690,6 +18440,18 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2Frequirements%2F*.txt", }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/requirements/*.txt", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Frequirements%2F*.txt", + }, Object { "//": "used to determine the full dependency tree", "method": "GET", @@ -17702,6 +18464,18 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2Fpyproject.toml", }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/pyproject.toml", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fpyproject.toml", + }, Object { "//": "used to determine the full dependency tree", "method": "GET", @@ -17714,6 +18488,18 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2Fpoetry.lock", }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/poetry.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fpoetry.lock", + }, Object { "//": "used to determine the full dependency tree", "method": "GET", @@ -17726,6 +18512,18 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2Fyarn.lock", }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/yarn.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fyarn.lock", + }, Object { "//": "used to determine the full dependency tree", "method": "GET", @@ -17738,6 +18536,18 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2Fbuild.gradle", }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/build.gradle", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fbuild.gradle", + }, Object { "//": "used to determine the full dependency tree", "method": "GET", @@ -17750,6 +18560,18 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2Fgradle.lockfile", }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/gradle.lockfile", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fgradle.lockfile", + }, Object { "//": "used to determine the full dependency tree", "method": "GET", @@ -17762,6 +18584,18 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2Fgradle.properties", }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/gradle.properties", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fgradle.properties", + }, Object { "//": "used to determine the full dependency tree", "method": "GET", @@ -17774,6 +18608,18 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2FPackages.props", }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Packages.props", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FPackages.props", + }, Object { "//": "used to determine the full dependency tree", "method": "GET", @@ -17786,6 +18632,18 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2FDirectory.Build.props", }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Directory.Build.props", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FDirectory.Build.props", + }, Object { "//": "used to determine the full dependency tree", "method": "GET", @@ -17798,6 +18656,18 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2FDirectory.Build.targets", }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Directory.Build.targets", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FDirectory.Build.targets", + }, Object { "//": "used to determine the full dependency tree", "method": "GET", @@ -17810,6 +18680,18 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2Fbuild.sbt", }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/build.sbt", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fbuild.sbt", + }, Object { "//": "used to determine the full dependency tree", "method": "GET", @@ -17822,6 +18704,18 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2Fpackages.config", }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/packages.config", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fpackages.config", + }, Object { "//": "used to determine the full dependency tree", "method": "GET", @@ -17834,6 +18728,18 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2F*.csproj", }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/*.csproj", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2F*.csproj", + }, Object { "//": "used to determine the full dependency tree", "method": "GET", @@ -17846,6 +18752,18 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2F*.fsproj", }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/*.fsproj", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2F*.fsproj", + }, Object { "//": "used to determine the full dependency tree", "method": "GET", @@ -17858,6 +18776,18 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2F*.vbproj", }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/*.vbproj", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2F*.vbproj", + }, Object { "//": "used to determine the full dependency tree", "method": "GET", @@ -17870,6 +18800,18 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2Fproject.json", }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/project.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fproject.json", + }, Object { "//": "used to determine the full dependency tree", "method": "GET", @@ -17882,6 +18824,18 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2FGopkg.toml", }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Gopkg.toml", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FGopkg.toml", + }, Object { "//": "used to determine the full dependency tree", "method": "GET", @@ -17894,6 +18848,18 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2FGopkg.lock", }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Gopkg.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FGopkg.lock", + }, Object { "//": "used to determine the full dependency tree", "method": "GET", @@ -17906,6 +18872,18 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2Fvendor.json", }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/vendor.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fvendor.json", + }, Object { "//": "used to determine the full dependency tree", "method": "GET", @@ -17918,6 +18896,18 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2Fcomposer.lock", }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/composer.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fcomposer.lock", + }, Object { "//": "used to determine the full dependency tree", "method": "GET", @@ -17930,6 +18920,18 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2Fcomposer.json", }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/composer.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fcomposer.json", + }, Object { "//": "used to determine the full dependency tree", "method": "GET", @@ -17942,6 +18944,18 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2Fproject.assets.json", }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/project.assets.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fproject.assets.json", + }, Object { "//": "used to determine the full dependency tree", "method": "GET", @@ -17966,6 +18980,30 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2FPodfile.lock", }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Podfile", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FPodfile", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Podfile.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FPodfile.lock", + }, Object { "//": "used to determine the full dependency tree", "method": "GET", @@ -18039,273 +19077,561 @@ Object { "path": "/:name/:repo/:path*%2F*Dockerfile*", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to check if there's any ignore rules or existing patches", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/package.json", + "path": "/repos/:name/:repo/contents/:path*/.snyk", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", + "//": "used to check if there's any ignore rules or existing patches", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fpackage.json", + "path": "/repos/:name/:repo/contents/:path*%2F.snyk", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/.snyk", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2F.snyk", }, Object { "//": "used to update manifest or lock", "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/package-lock.json", + "path": "/repos/:name/:repo/contents/:path*/package.json", }, Object { "//": "used to update manifest or lock", "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fpackage-lock.json", + "path": "/repos/:name/:repo/contents/:path*%2Fpackage.json", }, Object { "//": "used to update manifest or lock", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Gemfile.lock", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/package.json", }, Object { "//": "used to update manifest or lock", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FGemfile.lock", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fpackage.json", }, Object { "//": "used to update manifest or lock", "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Gemfile", + "path": "/repos/:name/:repo/contents/:path*/package-lock.json", }, Object { "//": "used to update manifest or lock", "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FGemfile", + "path": "/repos/:name/:repo/contents/:path*%2Fpackage-lock.json", }, Object { "//": "used to update manifest or lock", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/pom.xml", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/package-lock.json", }, Object { "//": "used to update manifest or lock", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fpom.xml", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fpackage-lock.json", }, Object { "//": "used to update manifest or lock", "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/*req*.txt", + "path": "/repos/:name/:repo/contents/:path*/Gemfile.lock", }, Object { "//": "used to update manifest or lock", "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2F*req*.txt", + "path": "/repos/:name/:repo/contents/:path*%2FGemfile.lock", }, Object { "//": "used to update manifest or lock", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/pyproject.toml", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Gemfile.lock", }, Object { "//": "used to update manifest or lock", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fpyproject.toml", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FGemfile.lock", }, Object { "//": "used to update manifest or lock", "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/poetry.lock", + "path": "/repos/:name/:repo/contents/:path*/Gemfile", }, Object { "//": "used to update manifest or lock", "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fpoetry.lock", + "path": "/repos/:name/:repo/contents/:path*%2FGemfile", }, Object { "//": "used to update manifest or lock", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/yarn.lock", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Gemfile", }, Object { "//": "used to update manifest or lock", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fyarn.lock", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FGemfile", }, Object { "//": "used to update manifest or lock", "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/build.gradle", + "path": "/repos/:name/:repo/contents/:path*/pom.xml", }, Object { "//": "used to update manifest or lock", "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fbuild.gradle", + "path": "/repos/:name/:repo/contents/:path*%2Fpom.xml", }, Object { "//": "used to update manifest or lock", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/gradle.lockfile", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/pom.xml", }, Object { "//": "used to update manifest or lock", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fgradle.lockfile", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fpom.xml", }, Object { "//": "used to update manifest or lock", "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/gradle.properties", + "path": "/repos/:name/:repo/contents/:path*/*req*.txt", }, Object { "//": "used to update manifest or lock", "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fgradle.properties", + "path": "/repos/:name/:repo/contents/:path*%2F*req*.txt", }, Object { "//": "used to update manifest or lock", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Packages.props", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/*req*.txt", }, Object { "//": "used to update manifest or lock", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FPackages.props", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2F*req*.txt", }, Object { "//": "used to update manifest or lock", "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Directory.Build.props", + "path": "/repos/:name/:repo/contents/:path*/pyproject.toml", }, Object { "//": "used to update manifest or lock", "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FDirectory.Build.props", + "path": "/repos/:name/:repo/contents/:path*%2Fpyproject.toml", }, Object { "//": "used to update manifest or lock", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Directory.Build.targets", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/pyproject.toml", }, Object { "//": "used to update manifest or lock", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FDirectory.Build.targets", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fpyproject.toml", }, Object { "//": "used to update manifest or lock", "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/build.sbt", + "path": "/repos/:name/:repo/contents/:path*/poetry.lock", }, Object { "//": "used to update manifest or lock", "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fbuild.sbt", + "path": "/repos/:name/:repo/contents/:path*%2Fpoetry.lock", }, Object { "//": "used to update manifest or lock", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/packages.config", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/poetry.lock", }, Object { "//": "used to update manifest or lock", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fpackages.config", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fpoetry.lock", }, Object { "//": "used to update manifest or lock", "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/*.csproj", + "path": "/repos/:name/:repo/contents/:path*/yarn.lock", }, Object { "//": "used to update manifest or lock", "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2F*.csproj", + "path": "/repos/:name/:repo/contents/:path*%2Fyarn.lock", }, Object { "//": "used to update manifest or lock", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/*.fsproj", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/yarn.lock", }, Object { "//": "used to update manifest or lock", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2F*.fsproj", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fyarn.lock", }, Object { "//": "used to update manifest or lock", "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/*.vbproj", + "path": "/repos/:name/:repo/contents/:path*/build.gradle", }, Object { "//": "used to update manifest or lock", "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2F*.vbproj", + "path": "/repos/:name/:repo/contents/:path*%2Fbuild.gradle", }, Object { "//": "used to update manifest or lock", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/project.json", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/build.gradle", }, Object { "//": "used to update manifest or lock", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fproject.json", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fbuild.gradle", }, Object { "//": "used to update manifest or lock", "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Gopkg.toml", + "path": "/repos/:name/:repo/contents/:path*/gradle.lockfile", }, Object { "//": "used to update manifest or lock", "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FGopkg.toml", + "path": "/repos/:name/:repo/contents/:path*%2Fgradle.lockfile", }, Object { "//": "used to update manifest or lock", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/gradle.lockfile", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fgradle.lockfile", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/gradle.properties", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fgradle.properties", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/gradle.properties", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fgradle.properties", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Packages.props", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FPackages.props", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Packages.props", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FPackages.props", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Directory.Build.props", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FDirectory.Build.props", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Directory.Build.props", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FDirectory.Build.props", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Directory.Build.targets", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FDirectory.Build.targets", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Directory.Build.targets", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FDirectory.Build.targets", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/build.sbt", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fbuild.sbt", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/build.sbt", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fbuild.sbt", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/packages.config", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpackages.config", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/packages.config", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fpackages.config", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*.csproj", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*.csproj", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/*.csproj", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2F*.csproj", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*.fsproj", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*.fsproj", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/*.fsproj", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2F*.fsproj", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*.vbproj", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*.vbproj", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/*.vbproj", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2F*.vbproj", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/project.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fproject.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/project.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fproject.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Gopkg.toml", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FGopkg.toml", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Gopkg.toml", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FGopkg.toml", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*/Gopkg.lock", }, Object { @@ -18314,6 +19640,18 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2FGopkg.lock", }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Gopkg.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FGopkg.lock", + }, Object { "//": "used to update manifest or lock", "method": "PUT", @@ -18326,6 +19664,18 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2Fvendor.json", }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/vendor.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fvendor.json", + }, Object { "//": "used to update manifest or lock", "method": "PUT", @@ -18338,6 +19688,18 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2Fcomposer.lock", }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/composer.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fcomposer.lock", + }, Object { "//": "used to update manifest or lock", "method": "PUT", @@ -18350,6 +19712,18 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2Fcomposer.json", }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/composer.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fcomposer.json", + }, Object { "//": "used to update manifest or lock", "method": "PUT", @@ -18362,6 +19736,18 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2Fproject.assets.json", }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/project.assets.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fproject.assets.json", + }, Object { "//": "used to update manifest or lock", "method": "PUT", @@ -18386,6 +19772,30 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2FPodfile.lock", }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Podfile", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FPodfile", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Podfile.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FPodfile.lock", + }, Object { "//": "used to update manifest or lock", "method": "PUT", @@ -18434,18 +19844,6 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", "path": "/:name/:repo/:path*%2Fgo.sum", }, - Object { - "//": "used to write or update ignore rules or existing patches", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/.snyk", - }, - Object { - "//": "used to write or update ignore rules or existing patches", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2F.snyk", - }, Object { "//": "used to update Dockerfile", "method": "PUT", @@ -18471,14 +19869,14 @@ Object { "path": "/:name/:repo/:path*%2F*Dockerfile*", }, Object { - "//": "used to check if there's any ignore rules or existing patches", - "method": "GET", + "//": "used to write or update ignore rules or existing patches", + "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*/.snyk", }, Object { - "//": "used to check if there's any ignore rules or existing patches", - "method": "GET", + "//": "used to write or update ignore rules or existing patches", + "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2F.snyk", }, @@ -18545,7 +19943,7 @@ Object { "path": "/repos/:name/:repo/pulls/:pull_number/files", }, Object { - "//": "add commit data for new PR", + "//": "create branches for new commits", "method": "POST", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/git/refs", @@ -18599,22 +19997,10 @@ Object { "path": "/graphql", }, Object { - "//": "allow info refs (for git clone)", - "method": "GET", - "origin": "https://pat:\${GITHUB_TOKEN}@\${GITHUB}", - "path": "*/info/refs*", - }, - Object { - "//": "allow git-upload-pack (for git clone)", - "method": "POST", - "origin": "https://pat:\${GITHUB_TOKEN}@\${GITHUB}", - "path": "*/git-upload-pack", - }, - Object { - "//": "needed to load code snippets", + "//": "used to get given manifest file", "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path", + "path": "/repos/:owner/:repo/git/blobs/:sha", }, ], "public": Array [ @@ -18742,27 +20128,27 @@ Object { }, Object { "path": "commits.*.added.*", - "value": "Directory.Build.targets", + "value": "Packages.props", }, Object { "path": "commits.*.modified.*", - "value": "Directory.Build.targets", + "value": "Packages.props", }, Object { "path": "commits.*.added.*", - "value": "Packages.props", + "value": "Directory.Build.props", }, Object { "path": "commits.*.modified.*", - "value": "Packages.props", + "value": "Directory.Build.props", }, Object { "path": "commits.*.added.*", - "value": "Directory.Build.props", + "value": "Directory.Build.targets", }, Object { "path": "commits.*.modified.*", - "value": "Directory.Build.props", + "value": "Directory.Build.targets", }, Object { "path": "commits.*.added.*", @@ -18919,1567 +20305,1096 @@ Object { } `; -exports[`filter Rules Loading Injection of valid CODE rules - Testing gitlab 1`] = ` +exports[`filter Rules Loading Injection of valid CODE GH rules - Testing github-enterprise 1`] = ` Object { "private": Array [ Object { - "//": "identify user", + "//": "search for user's repos", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/user", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/search/repositories", }, Object { - "//": "list the user's projects", + "//": "list the user's info, and validate their credentials", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/user", }, Object { - "//": "list the user's projects", + "//": "list the user's orgs", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v3/projects", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/user/orgs", }, Object { - "//": "list the user's visible projects", + "//": "list the logged in user's repos", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v3/projects/visible", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/user/repos", }, Object { - "//": "get a user's project", + "//": "list a user's repos", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v3/projects/:project", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/users/:username/repos", }, Object { - "//": "get a user's project", + "//": "list an orgs's repos", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/orgs/:username/repos", }, Object { - "//": "used to search all manifest files", + "//": "get a user's repo", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/tree", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:user/:repo", }, Object { - "//": "used to determine the full dependency tree", + "//": "rate limit check", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/package.json", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/rate_limit", }, Object { - "//": "used to determine the full dependency tree", + "//": "allow meta lookup on the api version", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fpackage.json", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/package-lock.json", + "//": "allow webhooks to be added, to allow commits to be checked by Snyk. Rules for what is sent to Snyk are controlled in the \`public\` accept filters", + "method": "POST", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:user/:repo/hooks", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fpackage-lock.json", + "//": "allow webhooks to be deleted, used to cleanup when a user deactivates or deletes a project", + "method": "DELETE", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:owner/:repo/hooks/:id", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Gemfile.lock", + "//": "used to create commit status messages", + "method": "POST", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:user/:repo/statuses/:sha", }, Object { - "//": "used to determine the full dependency tree", + "//": "used to list branches on a repo", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FGemfile.lock", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:user/:repo/branches", }, Object { - "//": "used to determine the full dependency tree", + "//": "used to get branch info", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Gemfile", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:user/:repo/branches/:branch", }, Object { - "//": "used to determine the full dependency tree", + "//": "used to get status checks on a branch", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FGemfile", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:user/:repo/branches/:branch/protection/required_status_checks/contexts", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/pom.xml", + "//": "used to create status checks on a branch", + "method": "POST", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:user/:repo/branches/:branch/protection/required_status_checks/contexts", }, Object { - "//": "used to determine the full dependency tree", + "//": "used to delete status checks on a branch", + "method": "DELETE", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:user/:repo/branches/:branch/protection/required_status_checks/contexts", + }, + Object { + "//": "check if repo is public", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fpom.xml", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB}", + "path": "/:user/:repo", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/*req*.txt", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/package.json", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2F*req*.txt", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpackage.json", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/requirements/*.txt", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/package-lock.json", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Frequirements%2F*.txt", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpackage-lock.json", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/pyproject.toml", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Gemfile.lock", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fpyproject.toml", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FGemfile.lock", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/poetry.lock", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Gemfile", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fpoetry.lock", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FGemfile", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Pipfile", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/pom.xml", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FPipfile", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpom.xml", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Pipfile.lock", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*req*.txt", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FPipfile.lock", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*req*.txt", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/yarn.lock", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/requirements/*.txt", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fyarn.lock", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Frequirements%2F*.txt", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/build.gradle", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/pyproject.toml", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fbuild.gradle", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpyproject.toml", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/gradle.lockfile", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/poetry.lock", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fgradle.lockfile", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpoetry.lock", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/gradle.properties", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/yarn.lock", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fgradle.properties", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fyarn.lock", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Directory.Build.targets", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/build.gradle", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FDirectory.Build.targets", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fbuild.gradle", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Directory.Build.props", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/gradle.lockfile", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FDirectory.Build.props", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fgradle.lockfile", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Packages.props", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/gradle.properties", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FPackages.props", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fgradle.properties", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/build.sbt", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Packages.props", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fbuild.sbt", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FPackages.props", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/packages.config", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Directory.Build.props", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fpackages.config", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FDirectory.Build.props", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/*.csproj", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Directory.Build.targets", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2F*.csproj", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FDirectory.Build.targets", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/*.vbproj", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/build.sbt", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2F*.vbproj", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fbuild.sbt", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/*.fsproj", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/packages.config", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2F*.fsproj", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpackages.config", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/project.json", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*.csproj", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fproject.json", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*.csproj", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Gopkg.toml", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*.fsproj", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FGopkg.toml", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*.fsproj", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Gopkg.lock", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*.vbproj", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FGopkg.lock", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*.vbproj", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/vendor.json", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/project.json", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fvendor.json", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fproject.json", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/composer.lock", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Gopkg.toml", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fcomposer.lock", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FGopkg.toml", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/composer.json", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Gopkg.lock", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fcomposer.json", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FGopkg.lock", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/project.assets.json", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/vendor.json", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fproject.assets.json", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fvendor.json", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Podfile", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/composer.lock", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FPodfile", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fcomposer.lock", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Podfile.lock", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/composer.json", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FPodfile.lock", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fcomposer.json", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/go.mod", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/project.assets.json", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fgo.mod", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fproject.assets.json", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/go.sum", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Podfile", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fgo.sum", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FPodfile", }, Object { - "//": "used to scan Dockerfile", + "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/*Dockerfile*", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Podfile.lock", }, Object { - "//": "used to scan Dockerfile", + "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2F*Dockerfile*", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FPodfile.lock", }, Object { - "//": "used to check if there's any ignore rules or existing patches", + "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/.snyk", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/go.mod", }, Object { - "//": "used to check if there's any ignore rules or existing patches", + "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2F.snyk", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fgo.mod", }, Object { - "//": "used to determine the full dependency tree for v3 protocol", + "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v3/projects/:project/repository/files", - "valid": Array [ - Object { - "queryParam": "file_path", - "values": Array [ - "**/package.json", - "**%2Fpackage.json", - "**/yarn.lock", - "**%2Fyarn.lock", - "**/package-lock.json", - "**%2Fpackage-lock.json", - "**/Gemfile", - "**%2FGemfile", - "**/Gemfile.lock", - "**%2FGemfile.lock", - "**/pom.xml", - "**%2Fpom.xml", - "**/*req*.txt", - "**%2F*req*.txt", - "**/requirements/*.txt", - "**%2Frequirements%2F*.txt", - "**/pyproject.toml", - "**%2Fpyproject.toml", - "**/poetry.lock", - "**%2Fpoetry.lock", - "**/build.gradle", - "**%2Fbuild.gradle", - "**/gradle.lockfile", - "**%2Fgradle.lockfile", - "**/build.sbt", - "**%2Fbuild.sbt", - "**/.snyk", - "**%2F.snyk", - "**/packages.config", - "**%2Fpackages.config", - "**/*.csproj", - "**%2F*.csproj", - "**/*.vbproj", - "**%2F*.vbproj", - "**/*.fsproj", - "**%2F*.fsproj", - "**/project.json", - "**%2Fproject.json", - "**/Gopkg.toml", - "**%2FGopkg.toml", - "**/Gopkg.lock", - "**%2FGopkg.lock", - "**/vendor.json", - "**%2Fvendor.json", - "**/composer.lock", - "**%2Fcomposer.lock", - "**/composer.json", - "**%2Fcomposer.json", - "**/project.assets.json", - "**%2Fproject.assets.json", - "**/Podfile", - "**%2FPodfile", - "**/Podfile.lock", - "**%2FPodfile.lock", - "**/go.mod", - "**%2Fgo.mod", - "**/go.sum", - "**%2Fgo.sum", - ], - }, - ], + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/go.mod", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/package.json", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fgo.mod", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fpackage.json", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/go.sum", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/package-lock.json", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fgo.sum", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fpackage-lock.json", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/go.sum", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Gemfile.lock", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fgo.sum", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FGemfile.lock", + "//": "used to scan Dockerfile", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*Dockerfile*", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Gemfile", + "//": "used to scan Dockerfile", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*Dockerfile*", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FGemfile", + "//": "used to scan Dockerfile", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/*Dockerfile*", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/pom.xml", + "//": "used to scan Dockerfile", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2F*Dockerfile*", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fpom.xml", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/package.json", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/*req*.txt", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpackage.json", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2F*req*.txt", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/package-lock.json", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/pyproject.toml", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpackage-lock.json", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fpyproject.toml", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Gemfile.lock", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/poetry.lock", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FGemfile.lock", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fpoetry.lock", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Gemfile", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/yarn.lock", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FGemfile", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fyarn.lock", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/pom.xml", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/build.gradle", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpom.xml", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fbuild.gradle", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*req*.txt", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/gradle.lockfile", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*req*.txt", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fgradle.lockfile", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/pyproject.toml", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/gradle.properties", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpyproject.toml", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fgradle.properties", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/poetry.lock", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Directory.Build.targets", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpoetry.lock", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FDirectory.Build.targets", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/yarn.lock", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Directory.Build.props", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fyarn.lock", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FDirectory.Build.props", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/build.gradle", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Packages.props", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fbuild.gradle", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FPackages.props", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/gradle.lockfile", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/build.sbt", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fgradle.lockfile", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fbuild.sbt", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/gradle.properties", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/packages.config", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fgradle.properties", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fpackages.config", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Packages.props", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/*.csproj", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FPackages.props", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2F*.csproj", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Directory.Build.props", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/*.vbproj", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FDirectory.Build.props", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2F*.vbproj", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Directory.Build.targets", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/*.fsproj", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FDirectory.Build.targets", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2F*.fsproj", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/build.sbt", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/project.json", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fbuild.sbt", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fproject.json", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/packages.config", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Gopkg.toml", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpackages.config", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FGopkg.toml", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*.csproj", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Gopkg.lock", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*.csproj", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FGopkg.lock", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*.fsproj", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/vendor.json", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*.fsproj", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fvendor.json", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*.vbproj", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/composer.lock", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*.vbproj", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fcomposer.lock", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/project.json", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/composer.json", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fproject.json", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fcomposer.json", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Gopkg.toml", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/project.assets.json", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FGopkg.toml", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fproject.assets.json", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Gopkg.lock", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Podfile", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FGopkg.lock", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FPodfile", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/vendor.json", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Podfile.lock", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fvendor.json", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FPodfile.lock", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/composer.lock", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/go.mod", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fcomposer.lock", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fgo.mod", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/composer.json", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/go.sum", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fcomposer.json", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fgo.sum", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/project.assets.json", }, Object { - "//": "used to create Dockerfile", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/*Dockerfile*", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fproject.assets.json", }, Object { - "//": "used to create Dockerfile", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2F*Dockerfile*", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Podfile", }, Object { - "//": "used to create ignore rules or patches", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/.snyk", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FPodfile", }, Object { - "//": "used to create ignore rules or patches", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2F.snyk", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Podfile.lock", }, Object { - "//": "used to create manifest file for v3 protocol", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v3/projects/:project/repository/files", - "valid": Array [ - Object { - "queryParam": "file_path", - "values": Array [ - "**/package.json", - "**%2Fpackage.json", - "**/yarn.lock", - "**%2Fyarn.lock", - "**/package-lock.json", - "**%2Fpackage-lock.json", - "**/Gemfile", - "**%2FGemfile", - "**/Gemfile.lock", - "**%2FGemfile.lock", - "**/pom.xml", - "**%2Fpom.xml", - "**/*req*.txt", - "**%2F*req*.txt", - "**/pyproject.toml", - "**%2Fpyproject.toml", - "**/poetry.lock", - "**%2Fpoetry.lock", - "**/build.gradle", - "**%2Fbuild.gradle", - "**/gradle.lockfile", - "**%2Fgradle.lockfile", - "**/build.sbt", - "**%2Fbuild.sbt", - "**/.snyk", - "**%2F.snyk", - "**/packages.config", - "**%2Fpackages.config", - "**/*.csproj", - "**%2F*.csproj", - "**/*.vbproj", - "**%2F*.vbproj", - "**/*.fsproj", - "**%2F*.fsproj", - "**/project.json", - "**%2Fproject.json", - "**/Gopkg.toml", - "**%2FGopkg.toml", - "**/Gopkg.lock", - "**%2FGopkg.lock", - "**/vendor.json", - "**%2Fvendor.json", - "**/composer.lock", - "**%2Fcomposer.lock", - "**/composer.json", - "**%2Fcomposer.json", - "**/project.assets.json", - "**%2Fproject.assets.json", - "**/Podfile", - "**%2FPodfile", - "**/Podfile.lock", - "**%2FPodfile.lock", - "**/go.mod", - "**%2Fgo.mod", - "**/go.sum", - "**%2Fgo.sum", - ], - }, - ], + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FPodfile.lock", }, Object { - "//": "used to update manifest file", + "//": "used to update manifest or lock", "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/package.json", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/go.mod", }, Object { - "//": "used to update manifest file", + "//": "used to update manifest or lock", "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fpackage.json", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fgo.mod", }, Object { - "//": "used to update manifest file", + "//": "used to update manifest or lock", "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/package-lock.json", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/go.mod", }, Object { - "//": "used to update manifest file", + "//": "used to update manifest or lock", "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fpackage-lock.json", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fgo.mod", }, Object { - "//": "used to update manifest file", + "//": "used to update manifest or lock", "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Gemfile.lock", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/go.sum", }, Object { - "//": "used to update manifest file", + "//": "used to update manifest or lock", "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FGemfile.lock", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fgo.sum", }, Object { - "//": "used to update manifest file", + "//": "used to update manifest or lock", "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Gemfile", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/go.sum", }, Object { - "//": "used to update manifest file", + "//": "used to update manifest or lock", "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FGemfile", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fgo.sum", }, Object { - "//": "used to update manifest file", + "//": "used to write or update ignore rules or existing patches", "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/pom.xml", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/.snyk", }, Object { - "//": "used to update manifest file", + "//": "used to write or update ignore rules or existing patches", "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fpom.xml", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F.snyk", }, Object { - "//": "used to update manifest file", + "//": "used to update Dockerfile", "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/*req*.txt", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*Dockerfile*", }, Object { - "//": "used to update manifest file", + "//": "used to update Dockerfile", "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2F*req*.txt", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*Dockerfile*", }, Object { - "//": "used to update manifest file", + "//": "used to update Dockerfile", "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/pyproject.toml", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/*Dockerfile*", }, Object { - "//": "used to update manifest file", + "//": "used to update Dockerfile", "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fpyproject.toml", - }, - Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/poetry.lock", - }, - Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fpoetry.lock", - }, - Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/yarn.lock", - }, - Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fyarn.lock", - }, - Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/build.gradle", - }, - Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fbuild.gradle", - }, - Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/gradle.lockfile", - }, - Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fgradle.lockfile", - }, - Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/gradle.properties", - }, - Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fgradle.properties", - }, - Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Directory.Build.targets", - }, - Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FDirectory.Build.targets", - }, - Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Directory.Build.props", - }, - Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FDirectory.Build.props", - }, - Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Packages.props", - }, - Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FPackages.props", - }, - Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/build.sbt", - }, - Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fbuild.sbt", - }, - Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/packages.config", - }, - Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fpackages.config", - }, - Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/*.csproj", - }, - Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2F*.csproj", - }, - Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/*.vbproj", - }, - Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2F*.vbproj", - }, - Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/*.fsproj", - }, - Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2F*.fsproj", - }, - Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/project.json", - }, - Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fproject.json", - }, - Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Gopkg.toml", - }, - Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FGopkg.toml", - }, - Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Gopkg.lock", - }, - Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FGopkg.lock", - }, - Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/vendor.json", - }, - Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fvendor.json", - }, - Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/composer.lock", - }, - Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fcomposer.lock", - }, - Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/composer.json", - }, - Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fcomposer.json", - }, - Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/project.assets.json", - }, - Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fproject.assets.json", - }, - Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Podfile", - }, - Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FPodfile", - }, - Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Podfile.lock", - }, - Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FPodfile.lock", - }, - Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/go.mod", - }, - Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fgo.mod", - }, - Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/go.sum", - }, - Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fgo.sum", - }, - Object { - "//": "used to update Dockerfile", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/*Dockerfile*", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2F*Dockerfile*", }, Object { - "//": "used to update Dockerfile", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2F*Dockerfile*", + "//": "used to check if there's any ignore rules or existing patches", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/.snyk", }, Object { - "//": "used to update ignore rules or existing patches", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/.snyk", + "//": "used to check if there's any ignore rules or existing patches", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F.snyk", }, Object { - "//": "used to update ignore rules or existing patches", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2F.snyk", + "//": "get details of the repo", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo", }, Object { - "//": "used to update manifest file for v3 protocol", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v3/projects/:project/repository/files", + "//": "get the details of the commit to determine its SHA", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/commits/:ref", "valid": Array [ Object { - "queryParam": "file_path", + "header": "accept", "values": Array [ - "**/package.json", - "**%2Fpackage.json", - "**/yarn.lock", - "**%2Fyarn.lock", - "**/package-lock.json", - "**%2Fpackage-lock.json", - "**/Gemfile", - "**%2FGemfile", - "**/Gemfile.lock", - "**%2FGemfile.lock", - "**/pom.xml", - "**%2Fpom.xml", - "**/*req*.txt", - "**%2F*req*.txt", - "**/pyproject.toml", - "**%2Fpyproject.toml", - "**/poetry.lock", - "**%2Fpoetry.lock", - "**/build.gradle", - "**%2Fbuild.gradle", - "**/gradle.lockfile", - "**%2Fgradle.lockfile", - "**/build.sbt", - "**%2Fbuild.sbt", - "**/.snyk", - "**%2F.snyk", - "**/packages.config", - "**%2Fpackages.config", - "**/*.csproj", - "**%2F*.csproj", - "**/*.vbproj", - "**%2F*.vbproj", - "**/*.fsproj", - "**%2F*.fsproj", - "**/project.json", - "**%2Fproject.json", - "**/Gopkg.toml", - "**%2FGopkg.toml", - "**/Gopkg.lock", - "**%2FGopkg.lock", - "**/vendor.json", - "**%2Fvendor.json", - "**/composer.lock", - "**%2Fcomposer.lock", - "**/composer.json", - "**%2Fcomposer.json", - "**/project.assets.json", - "**%2Fproject.assets.json", - "**/Podfile", - "**%2FPodfile", - "**/Podfile.lock", - "**%2FPodfile.lock", - "**/go.mod", - "**%2Fgo.mod", - "**/go.sum", - "**%2Fgo.sum", + "application/vnd.github.v4.sha", ], }, ], }, Object { - "//": "allow webhooks to be added, to allow commits to be checked by Snyk. Rules for what is sent to Snyk are controlled in the \`public\` accept filters", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/hooks", + "//": "get a list of all the refs to match find whether an existing PR is open", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/git/refs", }, Object { - "//": "allow webhooks to be deleted, used to cleanup when a user deactivates or deletes a project", - "method": "DELETE", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/hooks/:id", + "//": "get the head commit of an individual ref", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/git/refs/heads/:ref", }, Object { - "//": "used to create commit status messages", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/statuses/:sha", + "//": "get the details of an individual ref", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/git/refs/:ref", }, Object { - "//": "used to create branch for fix merge request", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/branches", + "//": "compares two commits against each other", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/compare/:base...:head", }, Object { - "//": "used to create merge request for fix merge request", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/merge_requests", + "//": "search for open snyk pull requests", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/pulls", }, Object { - "//": "used to fetch fix merge request information", + "//": "get pull request data for getting merge sha and tracking PR processing state", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/merge_requests", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/pulls/:pull_number", }, Object { - "//": "list the user's groups", + "//": "get pull request file names", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/groups", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/pulls/:pull_number/files", }, Object { - "//": "list of projects in a group", - "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/groups/:id/projects", + "//": "add commit data for new PR", + "method": "POST", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/git/refs", }, Object { - "//": "get current user. so we'll be able to fetch it's projects", - "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/user", + "//": "create the pull request", + "method": "POST", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/pulls", }, Object { - "//": "get user's projects", - "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/users/:user/projects", + "//": "add pull request assignees", + "method": "POST", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/issues/:pull_number/assignees", }, Object { - "//": "get all users. so we'll be able to fetch projects that admin can access", - "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/users", + "//": "update ref", + "method": "PATCH", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/git/refs/:sha", }, Object { - "//": "used to get repo's contributors list", - "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/commits", + "//": "update ref head", + "method": "PATCH", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/git/refs/heads/:ref", }, Object { - "//": "get a specific commit identified by the commit hash or name of a branch or tag.", + "//": "get list of all files in a repo", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/commits/:sha", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/git/trees/:ref", }, Object { - "//": "get merge base of two commits for given project.", + "//": "used to get repo's contributors list", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/merge_base", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:owner/:repo/commits", }, Object { "//": "used to redirect requests to snyk git client", @@ -20488,250 +21403,831 @@ Object { "path": "/snykgit/*", }, Object { - "//": "allow info refs (for git clone)", - "method": "GET", - "origin": "https://oauth2:\${GITLAB_TOKEN}@\${GITLAB}", - "path": "*/info/refs*", - }, - Object { - "//": "allow git-upload-pack (for git clone)", + "//": "query graphql", "method": "POST", - "origin": "https://oauth2:\${GITLAB_TOKEN}@\${GITLAB}", - "path": "*/git-upload-pack", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_GRAPHQL}", + "path": "/graphql", }, Object { - "//": "needed to load code snippets", + "//": "used to get given manifest file", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files/:path", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:owner/:repo/git/blobs/:sha", }, ], "public": Array [ Object { - "//": "used for pushing up webhooks from gitlab", + "//": "used for pushing up webhooks from github", "method": "POST", - "path": "/webhook/gitlab/:webhookId", + "path": "/webhook/github", + "valid": Array [ + Object { + "//": "accept all pull request state changes (these don't have files in them)", + "path": "pull_request.state", + "value": "open", + }, + Object { + "path": "commits.*.added.*", + "value": "package.json", + }, + Object { + "path": "commits.*.modified.*", + "value": "package.json", + }, + Object { + "path": "commits.*.added.*", + "value": "package-lock.json", + }, + Object { + "path": "commits.*.modified.*", + "value": "package-lock.json", + }, + Object { + "path": "commits.*.added.*", + "value": "Gemfile.lock", + }, + Object { + "path": "commits.*.modified.*", + "value": "Gemfile.lock", + }, + Object { + "path": "commits.*.added.*", + "value": "*req*.txt", + }, + Object { + "path": "commits.*.modified.*", + "value": "*req*.txt", + }, + Object { + "path": "commits.*.added.*", + "value": "requirements%2F*.txt", + }, + Object { + "path": "commits.*.modified.*", + "value": "requirements%2F*.txt", + }, + Object { + "path": "commits.*.added.*", + "value": "requirements/*.txt", + }, + Object { + "path": "commits.*.modified.*", + "value": "requirements/*.txt", + }, + Object { + "path": "commits.*.added.*", + "value": "pyproject.toml", + }, + Object { + "path": "commits.*.modified.*", + "value": "pyproject.toml", + }, + Object { + "path": "commits.*.added.*", + "value": "poetry.lock", + }, + Object { + "path": "commits.*.modified.*", + "value": "poetry.lock", + }, + Object { + "path": "commits.*.added.*", + "value": "Pipfile", + }, + Object { + "path": "commits.*.modified.*", + "value": "Pipfile", + }, + Object { + "path": "commits.*.added.*", + "value": "Pipfile.lock", + }, + Object { + "path": "commits.*.modified.*", + "value": "Pipfile.lock", + }, + Object { + "path": "commits.*.added.*", + "value": "pom.xml", + }, + Object { + "path": "commits.*.modified.*", + "value": "pom.xml", + }, + Object { + "path": "commits.*.added.*", + "value": "build.gradle", + }, + Object { + "path": "commits.*.modified.*", + "value": "build.gradle", + }, + Object { + "path": "commits.*.added.*", + "value": "gradle.lockfile", + }, + Object { + "path": "commits.*.modified.*", + "value": "gradle.lockfile", + }, + Object { + "path": "commits.*.added.*", + "value": "gradle.properties", + }, + Object { + "path": "commits.*.modified.*", + "value": "gradle.properties", + }, + Object { + "path": "commits.*.added.*", + "value": "Directory.Build.targets", + }, + Object { + "path": "commits.*.modified.*", + "value": "Directory.Build.targets", + }, + Object { + "path": "commits.*.added.*", + "value": "Packages.props", + }, + Object { + "path": "commits.*.modified.*", + "value": "Packages.props", + }, + Object { + "path": "commits.*.added.*", + "value": "Directory.Build.props", + }, + Object { + "path": "commits.*.modified.*", + "value": "Directory.Build.props", + }, + Object { + "path": "commits.*.added.*", + "value": "build.sbt", + }, + Object { + "path": "commits.*.modified.*", + "value": "build.sbt", + }, + Object { + "path": "commits.*.added.*", + "value": "yarn.lock", + }, + Object { + "path": "commits.*.modified.*", + "value": "yarn.lock", + }, + Object { + "path": "commits.*.added.*", + "value": ".snyk", + }, + Object { + "path": "commits.*.modified.*", + "value": ".snyk", + }, + Object { + "path": "commits.*.added.*", + "value": "packages.config", + }, + Object { + "path": "commits.*.modified.*", + "value": "packages.config", + }, + Object { + "path": "commits.*.added.*", + "value": "*.csproj", + }, + Object { + "path": "commits.*.modified.*", + "value": "*.csproj", + }, + Object { + "path": "commits.*.added.*", + "value": "*.vbproj", + }, + Object { + "path": "commits.*.modified.*", + "value": "*.vbproj", + }, + Object { + "path": "commits.*.added.*", + "value": "*.fsproj", + }, + Object { + "path": "commits.*.modified.*", + "value": "*.fsproj", + }, + Object { + "path": "commits.*.added.*", + "value": "project.json", + }, + Object { + "path": "commits.*.modified.*", + "value": "project.json", + }, + Object { + "path": "commits.*.added.*", + "value": "Gopkg.toml", + }, + Object { + "path": "commits.*.modified.*", + "value": "Gopkg.toml", + }, + Object { + "path": "commits.*.added.*", + "value": "Gopkg.lock", + }, + Object { + "path": "commits.*.modified.*", + "value": "Gopkg.lock", + }, + Object { + "path": "commits.*.added.*", + "value": "vendor.json", + }, + Object { + "path": "commits.*.modified.*", + "value": "vendor.json", + }, + Object { + "path": "commits.*.added.*", + "value": "composer.lock", + }, + Object { + "path": "commits.*.modified.*", + "value": "composer.lock", + }, + Object { + "path": "commits.*.added.*", + "value": "composer.json", + }, + Object { + "path": "commits.*.modified.*", + "value": "composer.json", + }, + Object { + "path": "commits.*.added.*", + "value": "project.assets.json", + }, + Object { + "path": "commits.*.modified.*", + "value": "project.assets.json", + }, + Object { + "path": "commits.*.added.*", + "value": "Podfile", + }, + Object { + "path": "commits.*.modified.*", + "value": "Podfile", + }, + Object { + "path": "commits.*.added.*", + "value": "Podfile.lock", + }, + Object { + "path": "commits.*.modified.*", + "value": "Podfile.lock", + }, + Object { + "path": "commits.*.added.*", + "value": "go.mod", + }, + Object { + "path": "commits.*.modified.*", + "value": "go.mod", + }, + Object { + "path": "commits.*.added.*", + "value": "go.sum", + }, + Object { + "path": "commits.*.modified.*", + "value": "go.sum", + }, + ], + }, + Object { + "//": "used for pushing up webhooks from github", + "method": "POST", + "path": "/webhook/github/:webhookId", }, ], } `; -exports[`filter Rules Loading Injection of valid CODE rules and IAC extensions (yaml only) - Testing azure-repos 1`] = ` +exports[`filter Rules Loading Injection of valid CODE GH rules - Testing gitlab 1`] = ` Object { "private": Array [ Object { - "//": "get list of projects for given organisation", - "auth": Object { - "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", - }, + "//": "identify user", "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/_apis/projects", + "origin": "https://\${GITLAB}", + "path": "/api/v4/user", }, Object { - "//": "get specific repository for given organisation", - "auth": Object { - "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", - }, + "//": "list the user's projects", "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects", }, Object { - "//": "get list of repositories for given organisation", - "auth": Object { - "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", - }, + "//": "list the user's projects", "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories", + "origin": "https://\${GITLAB}", + "path": "/api/v3/projects", }, Object { - "//": "get list of refs", - "auth": Object { - "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", - }, + "//": "list the user's visible projects", "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/refs", + "origin": "https://\${GITLAB}", + "path": "/api/v3/projects/visible", }, Object { - "//": "search through repositories of given organisation", - "auth": Object { - "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", - }, + "//": "get a user's project", "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "_apis/git/repositories", + "origin": "https://\${GITLAB}", + "path": "/api/v3/projects/:project", }, Object { - "//": "create hook", - "auth": Object { - "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", - }, - "method": "POST", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/_apis/hooks/subscriptions", + "//": "get a user's project", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project", }, Object { - "//": "delete hook", - "auth": Object { - "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", - }, - "method": "DELETE", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/_apis/hooks/subscriptions/:subscriptionId", + "//": "used to search all manifest files", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/tree", }, Object { - "//": "get file content. restrict by file types", - "auth": Object { - "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", - }, + "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/items", - "valid": Array [ - Object { - "queryParam": "path", - "values": Array [ - "**/package.json", - "**%2Fpackage.json", - "**/yarn.lock", - "**%2Fyarn.lock", - "**/package-lock.json", - "**%2Fpackage-lock.json", - "**/Gemfile", - "**%2FGemfile", - "**/Gemfile.lock", - "**%2FGemfile.lock", - "**/pom.xml", - "**%2Fpom.xml", - "**/*req*.txt", - "**%2F*req*.txt", - "**/requirements/*.txt", - "**%2Frequirements%2F*.txt", - "**/pyproject.toml", - "**%2Fpyproject.toml", - "**/poetry.lock", - "**%2Fpoetry.lock", - "**/Pipfile", - "**%2FPipfile", - "**/Pipfile.lock", - "**%2FPipfile.lock", - "**/build.gradle", - "**%2Fbuild.gradle", - "**/gradle.lockfile", - "**%2Fgradle.lockfile", - "**/build.sbt", - "**%2Fbuild.sbt", - "**/.snyk", - "**%2F.snyk", - "**/packages.config", - "**%2Fpackages.config", - "**/*.csproj", - "**%2F*.csproj", - "**/*.vbproj", - "**%2F*.vbproj", - "**/*.fsproj", - "**%2F*.fsproj", - "**/project.json", - "**%2Fproject.json", - "**/Gopkg.toml", - "**%2FGopkg.toml", - "**/Gopkg.lock", - "**%2FGopkg.lock", - "**/vendor.json", - "**%2Fvendor.json", - "**/composer.lock", - "**%2Fcomposer.lock", - "**/composer.json", - "**%2Fcomposer.json", - "**/project.assets.json", - "**%2Fproject.assets.json", - "**/Podfile", - "**%2FPodfile", - "**/Podfile.lock", - "**%2FPodfile.lock", - "**/go.mod", - "**%2Fgo.mod", - "**/go.sum", - "**%2Fgo.sum", - "**/*Dockerfile*", - "**%2F*Dockerfile*", - "**/*.yaml", - "**%2F*.yaml", - ], - }, - Object { - "queryParam": "recursionLevel", - "values": Array [ - "none", - ], - }, - Object { - "queryParam": "download", - "values": Array [ - "true", - ], - }, - Object { - "queryParam": "includeContent", - "values": Array [ - "true", - ], - }, - ], + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/package.json", }, Object { - "//": "check file existence. restrict by file types", - "auth": Object { - "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", - }, + "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/items", - "valid": Array [ - Object { - "queryParam": "path", - "values": Array [ - "**/package.json", - "**%2Fpackage.json", - "**/yarn.lock", - "**%2Fyarn.lock", - "**/package-lock.json", - "**%2Fpackage-lock.json", - "**/Gemfile", - "**%2FGemfile", - "**/Gemfile.lock", - "**%2FGemfile.lock", - "**/pom.xml", - "**%2Fpom.xml", - "**/*req*.txt", - "**%2F*req*.txt", - "**/requirements/*.txt", - "**%2Frequirements%2F*.txt", - "**/pyproject.toml", - "**%2Fpyproject.toml", - "**/poetry.lock", - "**%2Fpoetry.lock", - "**/Pipfile", - "**%2FPipfile", - "**/Pipfile.lock", - "**%2FPipfile.lock", - "**/build.gradle", - "**%2Fbuild.gradle", - "**/gradle.lockfile", - "**%2Fgradle.lockfile", - "**/build.sbt", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpackage.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/package-lock.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpackage-lock.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Gemfile.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FGemfile.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Gemfile", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FGemfile", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/pom.xml", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpom.xml", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*req*.txt", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*req*.txt", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/requirements/*.txt", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Frequirements%2F*.txt", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/pyproject.toml", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpyproject.toml", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/poetry.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpoetry.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Pipfile", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FPipfile", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Pipfile.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FPipfile.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/yarn.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fyarn.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/build.gradle", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fbuild.gradle", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/gradle.lockfile", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fgradle.lockfile", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/gradle.properties", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fgradle.properties", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Directory.Build.targets", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FDirectory.Build.targets", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Directory.Build.props", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FDirectory.Build.props", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Packages.props", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FPackages.props", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/build.sbt", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fbuild.sbt", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/packages.config", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpackages.config", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*.csproj", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*.csproj", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*.vbproj", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*.vbproj", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*.fsproj", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*.fsproj", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/project.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fproject.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Gopkg.toml", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FGopkg.toml", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Gopkg.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FGopkg.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/vendor.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fvendor.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/composer.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fcomposer.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/composer.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fcomposer.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/project.assets.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fproject.assets.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Podfile", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FPodfile", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Podfile.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FPodfile.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/go.mod", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fgo.mod", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/go.sum", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fgo.sum", + }, + Object { + "//": "used to scan Dockerfile", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*Dockerfile*", + }, + Object { + "//": "used to scan Dockerfile", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*Dockerfile*", + }, + Object { + "//": "used to check if there's any ignore rules or existing patches", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/.snyk", + }, + Object { + "//": "used to check if there's any ignore rules or existing patches", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F.snyk", + }, + Object { + "//": "used to determine the full dependency tree for v3 protocol", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v3/projects/:project/repository/files", + "valid": Array [ + Object { + "queryParam": "file_path", + "values": Array [ + "**/package.json", + "**%2Fpackage.json", + "**/yarn.lock", + "**%2Fyarn.lock", + "**/package-lock.json", + "**%2Fpackage-lock.json", + "**/Gemfile", + "**%2FGemfile", + "**/Gemfile.lock", + "**%2FGemfile.lock", + "**/pom.xml", + "**%2Fpom.xml", + "**/*req*.txt", + "**%2F*req*.txt", + "**/requirements/*.txt", + "**%2Frequirements%2F*.txt", + "**/pyproject.toml", + "**%2Fpyproject.toml", + "**/poetry.lock", + "**%2Fpoetry.lock", + "**/build.gradle", + "**%2Fbuild.gradle", + "**/gradle.lockfile", + "**%2Fgradle.lockfile", + "**/build.sbt", "**%2Fbuild.sbt", "**/.snyk", "**%2F.snyk", @@ -20765,135 +22261,13354 @@ Object { "**%2Fgo.mod", "**/go.sum", "**%2Fgo.sum", - "**/*Dockerfile*", - "**%2F*Dockerfile*", - "**/*.yaml", - "**%2F*.yaml", - ], - }, - Object { - "queryParam": "versionDescriptor.versionType", - "values": Array [ - "branch", - ], - }, - Object { - "queryParam": "includeContentMetadata", - "values": Array [ - "true", ], }, ], }, Object { - "//": "get list of files for given repository", - "auth": Object { - "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", - }, + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/package.json", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpackage.json", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/package-lock.json", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpackage-lock.json", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Gemfile.lock", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FGemfile.lock", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Gemfile", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FGemfile", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/pom.xml", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpom.xml", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*req*.txt", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*req*.txt", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/pyproject.toml", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpyproject.toml", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/poetry.lock", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpoetry.lock", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/yarn.lock", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fyarn.lock", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/build.gradle", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fbuild.gradle", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/gradle.lockfile", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fgradle.lockfile", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/gradle.properties", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fgradle.properties", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Directory.Build.targets", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FDirectory.Build.targets", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Directory.Build.props", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FDirectory.Build.props", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Packages.props", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FPackages.props", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/build.sbt", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fbuild.sbt", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/packages.config", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpackages.config", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*.csproj", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*.csproj", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*.vbproj", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*.vbproj", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*.fsproj", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*.fsproj", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/project.json", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fproject.json", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Gopkg.toml", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FGopkg.toml", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Gopkg.lock", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FGopkg.lock", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/vendor.json", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fvendor.json", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/composer.lock", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fcomposer.lock", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/composer.json", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fcomposer.json", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/project.assets.json", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fproject.assets.json", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Podfile", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FPodfile", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Podfile.lock", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FPodfile.lock", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/go.mod", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fgo.mod", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/go.sum", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fgo.sum", + }, + Object { + "//": "used to create Dockerfile", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*Dockerfile*", + }, + Object { + "//": "used to create Dockerfile", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*Dockerfile*", + }, + Object { + "//": "used to create ignore rules or patches", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/.snyk", + }, + Object { + "//": "used to create ignore rules or patches", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F.snyk", + }, + Object { + "//": "used to create manifest file for v3 protocol", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v3/projects/:project/repository/files", + "valid": Array [ + Object { + "queryParam": "file_path", + "values": Array [ + "**/package.json", + "**%2Fpackage.json", + "**/yarn.lock", + "**%2Fyarn.lock", + "**/package-lock.json", + "**%2Fpackage-lock.json", + "**/Gemfile", + "**%2FGemfile", + "**/Gemfile.lock", + "**%2FGemfile.lock", + "**/pom.xml", + "**%2Fpom.xml", + "**/*req*.txt", + "**%2F*req*.txt", + "**/pyproject.toml", + "**%2Fpyproject.toml", + "**/poetry.lock", + "**%2Fpoetry.lock", + "**/build.gradle", + "**%2Fbuild.gradle", + "**/gradle.lockfile", + "**%2Fgradle.lockfile", + "**/build.sbt", + "**%2Fbuild.sbt", + "**/.snyk", + "**%2F.snyk", + "**/packages.config", + "**%2Fpackages.config", + "**/*.csproj", + "**%2F*.csproj", + "**/*.vbproj", + "**%2F*.vbproj", + "**/*.fsproj", + "**%2F*.fsproj", + "**/project.json", + "**%2Fproject.json", + "**/Gopkg.toml", + "**%2FGopkg.toml", + "**/Gopkg.lock", + "**%2FGopkg.lock", + "**/vendor.json", + "**%2Fvendor.json", + "**/composer.lock", + "**%2Fcomposer.lock", + "**/composer.json", + "**%2Fcomposer.json", + "**/project.assets.json", + "**%2Fproject.assets.json", + "**/Podfile", + "**%2FPodfile", + "**/Podfile.lock", + "**%2FPodfile.lock", + "**/go.mod", + "**%2Fgo.mod", + "**/go.sum", + "**%2Fgo.sum", + ], + }, + ], + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/package.json", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpackage.json", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/package-lock.json", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpackage-lock.json", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Gemfile.lock", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FGemfile.lock", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Gemfile", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FGemfile", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/pom.xml", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpom.xml", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*req*.txt", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*req*.txt", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/pyproject.toml", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpyproject.toml", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/poetry.lock", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpoetry.lock", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/yarn.lock", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fyarn.lock", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/build.gradle", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fbuild.gradle", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/gradle.lockfile", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fgradle.lockfile", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/gradle.properties", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fgradle.properties", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Directory.Build.targets", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FDirectory.Build.targets", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Directory.Build.props", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FDirectory.Build.props", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Packages.props", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FPackages.props", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/build.sbt", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fbuild.sbt", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/packages.config", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpackages.config", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*.csproj", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*.csproj", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*.vbproj", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*.vbproj", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*.fsproj", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*.fsproj", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/project.json", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fproject.json", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Gopkg.toml", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FGopkg.toml", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Gopkg.lock", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FGopkg.lock", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/vendor.json", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fvendor.json", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/composer.lock", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fcomposer.lock", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/composer.json", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fcomposer.json", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/project.assets.json", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fproject.assets.json", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Podfile", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FPodfile", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Podfile.lock", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FPodfile.lock", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/go.mod", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fgo.mod", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/go.sum", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fgo.sum", + }, + Object { + "//": "used to update Dockerfile", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*Dockerfile*", + }, + Object { + "//": "used to update Dockerfile", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*Dockerfile*", + }, + Object { + "//": "used to update ignore rules or existing patches", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/.snyk", + }, + Object { + "//": "used to update ignore rules or existing patches", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F.snyk", + }, + Object { + "//": "used to update manifest file for v3 protocol", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v3/projects/:project/repository/files", + "valid": Array [ + Object { + "queryParam": "file_path", + "values": Array [ + "**/package.json", + "**%2Fpackage.json", + "**/yarn.lock", + "**%2Fyarn.lock", + "**/package-lock.json", + "**%2Fpackage-lock.json", + "**/Gemfile", + "**%2FGemfile", + "**/Gemfile.lock", + "**%2FGemfile.lock", + "**/pom.xml", + "**%2Fpom.xml", + "**/*req*.txt", + "**%2F*req*.txt", + "**/pyproject.toml", + "**%2Fpyproject.toml", + "**/poetry.lock", + "**%2Fpoetry.lock", + "**/build.gradle", + "**%2Fbuild.gradle", + "**/gradle.lockfile", + "**%2Fgradle.lockfile", + "**/build.sbt", + "**%2Fbuild.sbt", + "**/.snyk", + "**%2F.snyk", + "**/packages.config", + "**%2Fpackages.config", + "**/*.csproj", + "**%2F*.csproj", + "**/*.vbproj", + "**%2F*.vbproj", + "**/*.fsproj", + "**%2F*.fsproj", + "**/project.json", + "**%2Fproject.json", + "**/Gopkg.toml", + "**%2FGopkg.toml", + "**/Gopkg.lock", + "**%2FGopkg.lock", + "**/vendor.json", + "**%2Fvendor.json", + "**/composer.lock", + "**%2Fcomposer.lock", + "**/composer.json", + "**%2Fcomposer.json", + "**/project.assets.json", + "**%2Fproject.assets.json", + "**/Podfile", + "**%2FPodfile", + "**/Podfile.lock", + "**%2FPodfile.lock", + "**/go.mod", + "**%2Fgo.mod", + "**/go.sum", + "**%2Fgo.sum", + ], + }, + ], + }, + Object { + "//": "allow webhooks to be added, to allow commits to be checked by Snyk. Rules for what is sent to Snyk are controlled in the \`public\` accept filters", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/hooks", + }, + Object { + "//": "allow webhooks to be deleted, used to cleanup when a user deactivates or deletes a project", + "method": "DELETE", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/hooks/:id", + }, + Object { + "//": "used to create commit status messages", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/statuses/:sha", + }, + Object { + "//": "used to create branch for fix merge request", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/branches", + }, + Object { + "//": "used to create merge request for fix merge request", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/merge_requests", + }, + Object { + "//": "used to fetch fix merge request information", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/merge_requests", + }, + Object { + "//": "list the user's groups", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/groups", + }, + Object { + "//": "list of projects in a group", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/groups/:id/projects", + }, + Object { + "//": "get current user. so we'll be able to fetch it's projects", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/user", + }, + Object { + "//": "get user's projects", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/users/:user/projects", + }, + Object { + "//": "get all users. so we'll be able to fetch projects that admin can access", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/users", + }, + Object { + "//": "used to get repo's contributors list", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/commits", + }, + Object { + "//": "get a specific commit identified by the commit hash or name of a branch or tag.", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/commits/:sha", + }, + Object { + "//": "get merge base of two commits for given project.", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/merge_base", + }, + Object { + "//": "used to redirect requests to snyk git client", + "method": "any", + "origin": "\${GIT_CLIENT_URL}", + "path": "/snykgit/*", + }, + ], + "public": Array [ + Object { + "//": "used for pushing up webhooks from gitlab", + "method": "POST", + "path": "/webhook/gitlab/:webhookId", + }, + ], +} +`; + +exports[`filter Rules Loading Injection of valid CODE rules - Testing azure-repos 1`] = ` +Object { + "private": Array [ + Object { + "//": "get list of projects for given organisation", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/_apis/projects", + }, + Object { + "//": "get specific repository for given organisation", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo", + }, + Object { + "//": "get list of repositories for given organisation", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories", + }, + Object { + "//": "get list of refs", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/refs", + }, + Object { + "//": "search through repositories of given organisation", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "_apis/git/repositories", + }, + Object { + "//": "create hook", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "POST", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/_apis/hooks/subscriptions", + }, + Object { + "//": "delete hook", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "DELETE", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/_apis/hooks/subscriptions/:subscriptionId", + }, + Object { + "//": "get file content. restrict by file types", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/items", + "valid": Array [ + Object { + "queryParam": "path", + "values": Array [ + "**/package.json", + "**%2Fpackage.json", + "**/yarn.lock", + "**%2Fyarn.lock", + "**/package-lock.json", + "**%2Fpackage-lock.json", + "**/Gemfile", + "**%2FGemfile", + "**/Gemfile.lock", + "**%2FGemfile.lock", + "**/pom.xml", + "**%2Fpom.xml", + "**/*req*.txt", + "**%2F*req*.txt", + "**/requirements/*.txt", + "**%2Frequirements%2F*.txt", + "**/pyproject.toml", + "**%2Fpyproject.toml", + "**/poetry.lock", + "**%2Fpoetry.lock", + "**/Pipfile", + "**%2FPipfile", + "**/Pipfile.lock", + "**%2FPipfile.lock", + "**/build.gradle", + "**%2Fbuild.gradle", + "**/gradle.lockfile", + "**%2Fgradle.lockfile", + "**/build.sbt", + "**%2Fbuild.sbt", + "**/.snyk", + "**%2F.snyk", + "**/packages.config", + "**%2Fpackages.config", + "**/*.csproj", + "**%2F*.csproj", + "**/*.vbproj", + "**%2F*.vbproj", + "**/*.fsproj", + "**%2F*.fsproj", + "**/project.json", + "**%2Fproject.json", + "**/Gopkg.toml", + "**%2FGopkg.toml", + "**/Gopkg.lock", + "**%2FGopkg.lock", + "**/vendor.json", + "**%2Fvendor.json", + "**/composer.lock", + "**%2Fcomposer.lock", + "**/composer.json", + "**%2Fcomposer.json", + "**/project.assets.json", + "**%2Fproject.assets.json", + "**/Podfile", + "**%2FPodfile", + "**/Podfile.lock", + "**%2FPodfile.lock", + "**/go.mod", + "**%2Fgo.mod", + "**/go.sum", + "**%2Fgo.sum", + "**/*Dockerfile*", + "**%2F*Dockerfile*", + ], + }, + Object { + "queryParam": "recursionLevel", + "values": Array [ + "none", + ], + }, + Object { + "queryParam": "download", + "values": Array [ + "true", + ], + }, + Object { + "queryParam": "includeContent", + "values": Array [ + "true", + ], + }, + ], + }, + Object { + "//": "check file existence. restrict by file types", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/items", + "valid": Array [ + Object { + "queryParam": "path", + "values": Array [ + "**/package.json", + "**%2Fpackage.json", + "**/yarn.lock", + "**%2Fyarn.lock", + "**/package-lock.json", + "**%2Fpackage-lock.json", + "**/Gemfile", + "**%2FGemfile", + "**/Gemfile.lock", + "**%2FGemfile.lock", + "**/pom.xml", + "**%2Fpom.xml", + "**/*req*.txt", + "**%2F*req*.txt", + "**/requirements/*.txt", + "**%2Frequirements%2F*.txt", + "**/pyproject.toml", + "**%2Fpyproject.toml", + "**/poetry.lock", + "**%2Fpoetry.lock", + "**/Pipfile", + "**%2FPipfile", + "**/Pipfile.lock", + "**%2FPipfile.lock", + "**/build.gradle", + "**%2Fbuild.gradle", + "**/gradle.lockfile", + "**%2Fgradle.lockfile", + "**/build.sbt", + "**%2Fbuild.sbt", + "**/.snyk", + "**%2F.snyk", + "**/packages.config", + "**%2Fpackages.config", + "**/*.csproj", + "**%2F*.csproj", + "**/*.vbproj", + "**%2F*.vbproj", + "**/*.fsproj", + "**%2F*.fsproj", + "**/project.json", + "**%2Fproject.json", + "**/Gopkg.toml", + "**%2FGopkg.toml", + "**/Gopkg.lock", + "**%2FGopkg.lock", + "**/vendor.json", + "**%2Fvendor.json", + "**/composer.lock", + "**%2Fcomposer.lock", + "**/composer.json", + "**%2Fcomposer.json", + "**/project.assets.json", + "**%2Fproject.assets.json", + "**/Podfile", + "**%2FPodfile", + "**/Podfile.lock", + "**%2FPodfile.lock", + "**/go.mod", + "**%2Fgo.mod", + "**/go.sum", + "**%2Fgo.sum", + "**/*Dockerfile*", + "**%2F*Dockerfile*", + ], + }, + Object { + "queryParam": "versionDescriptor.versionType", + "values": Array [ + "branch", + ], + }, + Object { + "queryParam": "includeContentMetadata", + "values": Array [ + "true", + ], + }, + ], + }, + Object { + "//": "get list of files for given repository", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/items", + "valid": Array [ + Object { + "queryParam": "recursionLevel", + "values": Array [ + "full", + ], + }, + Object { + "queryParam": "download", + "values": Array [ + "false", + ], + }, + Object { + "queryParam": "includeContent", + "values": Array [ + "false", + ], + }, + ], + }, + Object { + "//": "get list of commits for given repository", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/commits", + }, + Object { + "//": "get merge base of two commits for given repository", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/commits/:commitId/mergebases", + }, + Object { + "//": "update status of given commit", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "POST", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/commits/:commitId/statuses", + }, + Object { + "//": "update status of given pull request", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "POST", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/pullRequests/:pullRef/statuses", + }, + Object { + "//": "find PR for given repository", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/pullrequests", + }, + Object { + "//": "create new PR in given repository", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "POST", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/pullrequests", + }, + Object { + "//": "update existing PR in given repository", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "PATCH", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/pullrequests/:pullRef", + }, + Object { + "//": "push new commit in given repository", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "POST", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/pushes", + }, + Object { + "//": "used to redirect requests to snyk git client", + "method": "any", + "origin": "\${GIT_CLIENT_URL}", + "path": "/snykgit/*", + }, + Object { + "//": "allow info refs (for git clone)", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "*/info/refs*", + }, + Object { + "//": "allow git-upload-pack (for git clone)", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "POST", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "*/git-upload-pack", + }, + Object { + "//": "needed to load code snippets", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/items", + }, + ], + "public": Array [ + Object { + "//": "used for pushing up webhooks from Azure", + "method": "POST", + "path": "/webhook/azure-repos/:webhookId", + }, + ], +} +`; + +exports[`filter Rules Loading Injection of valid CODE rules - Testing bitbucket-server 1`] = ` +Object { + "private": Array [ + Object { + "//": "list the user's projects", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects", + }, + Object { + "//": "list the project's repos", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:projectKey/repos", + }, + Object { + "//": "list the user's repos", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/repos", + }, + Object { + "//": "fetch a given repo", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo", + }, + Object { + "//": "read all file names to find manifests", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/files/:searchPath?", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/package.json", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fpackage.json", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/package-lock.json", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fpackage-lock.json", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Gemfile.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FGemfile.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Gemfile", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FGemfile", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/pom.xml", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fpom.xml", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/*req*.txt", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F*req*.txt", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/requirements/*.txt", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Frequirements%2F*.txt", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/pyproject.toml", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fpyproject.toml", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/poetry.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fpoetry.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Pipfile", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FPipfile", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Pipfile.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FPipfile.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/yarn.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fyarn.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/build.gradle", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fbuild.gradle", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/gradle.lockfile", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fgradle.lockfile", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/gradle.properties", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fgradle.properties", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Packages.props", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FPackages.props", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Directory.Build.props", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FDirectory.Build.props", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Directory.Build.targets", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FDirectory.Build.targets", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/build.sbt", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fbuild.sbt", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/packages.config", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fpackages.config", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/*.csproj", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F*.csproj", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/*.vbproj", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F*.vbproj", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/*.fsproj", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F*.fsproj", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/project.json", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fproject.json", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Gopkg.toml", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FGopkg.toml", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Gopkg.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FGopkg.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/vendor.json", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fvendor.json", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/composer.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fcomposer.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/composer.json", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fcomposer.json", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/project.assets.json", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fproject.assets.json", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Podfile", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FPodfile", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Podfile.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FPodfile.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/go.mod", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fgo.mod", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/go.sum", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fgo.sum", + }, + Object { + "//": "used to scan Dockerfile", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/*Dockerfile*", + }, + Object { + "//": "used to scan Dockerfile", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F*Dockerfile*", + }, + Object { + "//": "used to check if there's any ignore rules or existing patches", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/.snyk", + }, + Object { + "//": "used to check if there's any ignore rules or existing patches", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F.snyk", + }, + Object { + "//": "get list of API capabilities", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/capabilities", + }, + Object { + "//": "allow webhooks to be added, to allow commits to be checked by Snyk. Rules for what is sent to Snyk are controlled in the \`public\` accept filters", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "POST", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/webhooks", + }, + Object { + "//": "allow webhooks to be deleted, used to cleanup when a user deactivates or deletes a project", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "DELETE", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/webhooks/:webhookId", + }, + Object { + "//": "used to create commit status messages", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "POST", + "origin": "https://\${BITBUCKET}", + "path": "/rest/build-status/1.0/commits/:sha", + }, + Object { + "//": "used to create a new branch for fix PRs", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "POST", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/branches", + }, + Object { + "//": "used to create or update a file for fix PRs", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "PUT", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/browse/*", + }, + Object { + "//": "used to create a pull request for fix PRs", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "POST", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/pull-requests", + }, + Object { + "//": "used to query for open pull requests by branch", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/pull-requests", + }, + Object { + "//": "used to query for a merge-base for a pull request", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/pull-requests/:pullRequestId/changes", + }, + Object { + "//": "used to check for a repo's default branch", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/branches/default", + }, + Object { + "//": "Used to get a branch specified by query string", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/branches:filterText?", + }, + Object { + "//": "get a specific commit identified by the commit hash or name of a branch", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/commits/:sha", + }, + Object { + "//": "used to create a Code Insights report", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "PUT", + "origin": "https://\${BITBUCKET}", + "path": "/rest/insights/:apiVersion/projects/:project/repos/:repo/commits/:sha/reports/:report", + }, + Object { + "//": "used to remove a Code Insights report", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "DELETE", + "origin": "https://\${BITBUCKET}", + "path": "/rest/insights/:apiVersion/projects/:project/repos/:repo/commits/:sha/reports/:report", + }, + Object { + "//": "used to add Code Insights annotations to a report", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "POST", + "origin": "https://\${BITBUCKET}", + "path": "/rest/insights/:apiVersion/projects/:project/repos/:repo/commits/:sha/reports/:report/annotations", + }, + Object { + "//": "get list of API capabilities for Code Insights", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/insights/:apiVersion/capabilities", + }, + Object { + "//": "used to remove Code Insights annotations for a report", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "DELETE", + "origin": "https://\${BITBUCKET}", + "path": "/rest/insights/:apiVersion/projects/:project/repos/:repo/commits/:sha/reports/:report/annotations", + }, + Object { + "//": "used to get current user. so we'll be able to fetch current user's repos, that are not part of any project.", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/application-properties", + }, + Object { + "//": "used to get current user. so we'll be able to fetch current user's repos, that are not part of any project - this is using atlassian's SDK api.", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/plugins/servlet/applinks/whoami", + }, + Object { + "//": "used to get the current user's project-like structure. So we'll be able to bind all user's private repos (that are not included in different project)", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:projectKey", + }, + Object { + "//": "used to check if the user has admin or higher permissions", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/admin/permissions/users", + }, + Object { + "//": "used to get all the users. it's called only for admin permissioned user. to retrieve all the repos they can access", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/users", + }, + Object { + "//": "used to redirect requests to snyk git client", + "method": "any", + "origin": "\${GIT_CLIENT_URL}", + "path": "/snykgit/*", + }, + Object { + "//": "used to fetch a given repo from API", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo", + }, + Object { + "//": "used to get default reviewers for a pull request", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/default-reviewers/1.0/projects/:projectKey/repos/:repo/reviewers", + }, + Object { + "//": "allow info refs (for git clone)", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "*/info/refs*", + }, + Object { + "//": "allow git-upload-pack (for git clone)", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "POST", + "origin": "https://\${BITBUCKET}", + "path": "*/git-upload-pack", + }, + Object { + "//": "needed to load code snippets", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/:file", + }, + ], + "public": Array [ + Object { + "//": "used for pushing up webhooks from bitbucket-server", + "method": "POST", + "path": "/webhook/bitbucket-server/:webhookId", + }, + ], +} +`; + +exports[`filter Rules Loading Injection of valid CODE rules - Testing bitbucket-server-bearer-auth 1`] = ` +Object { + "private": Array [ + Object { + "//": "list the user's projects", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects", + }, + Object { + "//": "list the project's repos", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:projectKey/repos", + }, + Object { + "//": "list the user's repos", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/repos", + }, + Object { + "//": "fetch a given repo", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo", + }, + Object { + "//": "read all file names to find manifests", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/files/:searchPath?", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/package.json", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fpackage.json", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/package-lock.json", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fpackage-lock.json", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Gemfile.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FGemfile.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Gemfile", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FGemfile", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/pom.xml", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fpom.xml", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/*req*.txt", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F*req*.txt", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/requirements/*.txt", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Frequirements%2F*.txt", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/pyproject.toml", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fpyproject.toml", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/poetry.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fpoetry.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Pipfile", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FPipfile", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Pipfile.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FPipfile.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/yarn.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fyarn.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/build.gradle", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fbuild.gradle", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/gradle.lockfile", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fgradle.lockfile", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/gradle.properties", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fgradle.properties", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Packages.props", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FPackages.props", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Directory.Build.props", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FDirectory.Build.props", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Directory.Build.targets", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FDirectory.Build.targets", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/build.sbt", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fbuild.sbt", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/packages.config", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fpackages.config", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/*.csproj", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F*.csproj", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/*.vbproj", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F*.vbproj", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/*.fsproj", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F*.fsproj", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/project.json", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fproject.json", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Gopkg.toml", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FGopkg.toml", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Gopkg.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FGopkg.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/vendor.json", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fvendor.json", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/composer.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fcomposer.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/composer.json", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fcomposer.json", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/project.assets.json", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fproject.assets.json", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Podfile", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FPodfile", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Podfile.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FPodfile.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/go.mod", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fgo.mod", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/go.sum", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fgo.sum", + }, + Object { + "//": "used to scan Dockerfile", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/*Dockerfile*", + }, + Object { + "//": "used to scan Dockerfile", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F*Dockerfile*", + }, + Object { + "//": "used to check if there's any ignore rules or existing patches", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/.snyk", + }, + Object { + "//": "used to check if there's any ignore rules or existing patches", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F.snyk", + }, + Object { + "//": "get list of API capabilities", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/capabilities", + }, + Object { + "//": "allow webhooks to be added, to allow commits to be checked by Snyk. Rules for what is sent to Snyk are controlled in the \`public\` accept filters", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "POST", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/webhooks", + }, + Object { + "//": "allow webhooks to be deleted, used to cleanup when a user deactivates or deletes a project", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "DELETE", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/webhooks/:webhookId", + }, + Object { + "//": "used to create commit status messages", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "POST", + "origin": "https://\${BITBUCKET}", + "path": "/rest/build-status/1.0/commits/:sha", + }, + Object { + "//": "used to create a new branch for fix PRs", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "POST", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/branches", + }, + Object { + "//": "used to create or update a file for fix PRs", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "PUT", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/browse/*", + }, + Object { + "//": "used to create a pull request for fix PRs", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "POST", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/pull-requests", + }, + Object { + "//": "used to query for open pull requests by branch", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/pull-requests", + }, + Object { + "//": "used to query for a merge-base for a pull request", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/pull-requests/:pullRequestId/changes", + }, + Object { + "//": "used to check for a repo's default branch", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/branches/default", + }, + Object { + "//": "Used to get a branch specified by query string", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/branches:filterText?", + }, + Object { + "//": "get a specific commit identified by the commit hash or name of a branch", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/commits/:sha", + }, + Object { + "//": "used to create a Code Insights report", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "PUT", + "origin": "https://\${BITBUCKET}", + "path": "/rest/insights/:apiVersion/projects/:project/repos/:repo/commits/:sha/reports/:report", + }, + Object { + "//": "used to remove a Code Insights report", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "DELETE", + "origin": "https://\${BITBUCKET}", + "path": "/rest/insights/:apiVersion/projects/:project/repos/:repo/commits/:sha/reports/:report", + }, + Object { + "//": "used to add Code Insights annotations to a report", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "POST", + "origin": "https://\${BITBUCKET}", + "path": "/rest/insights/:apiVersion/projects/:project/repos/:repo/commits/:sha/reports/:report/annotations", + }, + Object { + "//": "get list of API capabilities for Code Insights", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/insights/:apiVersion/capabilities", + }, + Object { + "//": "used to remove Code Insights annotations for a report", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "DELETE", + "origin": "https://\${BITBUCKET}", + "path": "/rest/insights/:apiVersion/projects/:project/repos/:repo/commits/:sha/reports/:report/annotations", + }, + Object { + "//": "used to get current user. so we'll be able to fetch current user's repos, that are not part of any project.", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/application-properties", + }, + Object { + "//": "used to get current user. so we'll be able to fetch current user's repos, that are not part of any project - this is using atlassian's SDK api.", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/plugins/servlet/applinks/whoami", + }, + Object { + "//": "used to get the current user's project-like structure. So we'll be able to bind all user's private repos (that are not included in different project)", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:projectKey", + }, + Object { + "//": "used to check if the user has admin or higher permissions", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/admin/permissions/users", + }, + Object { + "//": "used to get all the users. it's called only for admin permissioned user. to retrieve all the repos they can access", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/users", + }, + Object { + "//": "used to redirect requests to snyk git client", + "method": "any", + "origin": "\${GIT_CLIENT_URL}", + "path": "/snykgit/*", + }, + Object { + "//": "used to fetch a given repo from API", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo", + }, + Object { + "//": "used to get default reviewers for a pull request", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/default-reviewers/1.0/projects/:projectKey/repos/:repo/reviewers", + }, + Object { + "//": "allow info refs (for git clone)", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "*/info/refs*", + }, + Object { + "//": "allow git-upload-pack (for git clone)", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "POST", + "origin": "https://\${BITBUCKET}", + "path": "*/git-upload-pack", + }, + Object { + "//": "needed to load code snippets", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/:file", + }, + ], + "public": Array [ + Object { + "//": "used for pushing up webhooks from bitbucket-server", + "method": "POST", + "path": "/webhook/bitbucket-server/:webhookId", + }, + ], +} +`; + +exports[`filter Rules Loading Injection of valid CODE rules - Testing github 1`] = ` +Object { + "private": Array [ + Object { + "//": "search for user's repos", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/search/repositories", + }, + Object { + "//": "list the user's info, and validate their credentials", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/user", + }, + Object { + "//": "list the user's orgs", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/user/orgs", + }, + Object { + "//": "list the logged in user's repos", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/user/repos", + }, + Object { + "//": "list a user's repos", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/users/:username/repos", + }, + Object { + "//": "list an orgs's repos", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/orgs/:username/repos", + }, + Object { + "//": "get a user's repo", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:user/:repo", + }, + Object { + "//": "rate limit check", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/rate_limit", + }, + Object { + "//": "allow meta lookup on the api version", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/", + }, + Object { + "//": "allow webhooks to be added, to allow commits to be checked by Snyk. Rules for what is sent to Snyk are controlled in the \`public\` accept filters", + "method": "POST", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:user/:repo/hooks", + }, + Object { + "//": "allow webhooks to be deleted, used to cleanup when a user deactivates or deletes a project", + "method": "DELETE", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:owner/:repo/hooks/:id", + }, + Object { + "//": "used to create commit status messages", + "method": "POST", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:user/:repo/statuses/:sha", + }, + Object { + "//": "used to list branches on a repo", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:user/:repo/branches", + }, + Object { + "//": "used to get branch info", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:user/:repo/branches/:branch", + }, + Object { + "//": "used to get status checks on a branch", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:user/:repo/branches/:branch/protection/required_status_checks/contexts", + }, + Object { + "//": "used to create status checks on a branch", + "method": "POST", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:user/:repo/branches/:branch/protection/required_status_checks/contexts", + }, + Object { + "//": "used to delete status checks on a branch", + "method": "DELETE", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:user/:repo/branches/:branch/protection/required_status_checks/contexts", + }, + Object { + "//": "check if repo is public", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB}", + "path": "/:user/:repo", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/package.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpackage.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/package.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fpackage.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/package-lock.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpackage-lock.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/package-lock.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fpackage-lock.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Gemfile.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FGemfile.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Gemfile.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FGemfile.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Gemfile", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FGemfile", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Gemfile", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FGemfile", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/pom.xml", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpom.xml", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/pom.xml", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fpom.xml", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*req*.txt", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*req*.txt", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/*req*.txt", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2F*req*.txt", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/requirements/*.txt", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Frequirements%2F*.txt", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/requirements/*.txt", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Frequirements%2F*.txt", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/pyproject.toml", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpyproject.toml", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/pyproject.toml", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fpyproject.toml", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/poetry.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpoetry.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/poetry.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fpoetry.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/yarn.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fyarn.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/yarn.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fyarn.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/build.gradle", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fbuild.gradle", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/build.gradle", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fbuild.gradle", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/gradle.lockfile", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fgradle.lockfile", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/gradle.lockfile", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fgradle.lockfile", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/gradle.properties", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fgradle.properties", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/gradle.properties", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fgradle.properties", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Packages.props", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FPackages.props", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Packages.props", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FPackages.props", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Directory.Build.props", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FDirectory.Build.props", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Directory.Build.props", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FDirectory.Build.props", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Directory.Build.targets", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FDirectory.Build.targets", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Directory.Build.targets", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FDirectory.Build.targets", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/build.sbt", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fbuild.sbt", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/build.sbt", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fbuild.sbt", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/packages.config", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpackages.config", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/packages.config", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fpackages.config", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*.csproj", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*.csproj", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/*.csproj", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2F*.csproj", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*.fsproj", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*.fsproj", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/*.fsproj", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2F*.fsproj", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*.vbproj", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*.vbproj", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/*.vbproj", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2F*.vbproj", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/project.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fproject.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/project.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fproject.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Gopkg.toml", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FGopkg.toml", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Gopkg.toml", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FGopkg.toml", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Gopkg.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FGopkg.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Gopkg.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FGopkg.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/vendor.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fvendor.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/vendor.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fvendor.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/composer.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fcomposer.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/composer.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fcomposer.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/composer.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fcomposer.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/composer.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fcomposer.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/project.assets.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fproject.assets.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/project.assets.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fproject.assets.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Podfile", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FPodfile", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Podfile.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FPodfile.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Podfile", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FPodfile", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Podfile.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FPodfile.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/go.mod", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fgo.mod", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/go.mod", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fgo.mod", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/go.sum", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fgo.sum", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/go.sum", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fgo.sum", + }, + Object { + "//": "used to scan Dockerfile", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*Dockerfile*", + }, + Object { + "//": "used to scan Dockerfile", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*Dockerfile*", + }, + Object { + "//": "used to scan Dockerfile", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/*Dockerfile*", + }, + Object { + "//": "used to scan Dockerfile", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2F*Dockerfile*", + }, + Object { + "//": "used to check if there's any ignore rules or existing patches", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/.snyk", + }, + Object { + "//": "used to check if there's any ignore rules or existing patches", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F.snyk", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/.snyk", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2F.snyk", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/package.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpackage.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/package.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fpackage.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/package-lock.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpackage-lock.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/package-lock.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fpackage-lock.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Gemfile.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FGemfile.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Gemfile.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FGemfile.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Gemfile", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FGemfile", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Gemfile", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FGemfile", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/pom.xml", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpom.xml", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/pom.xml", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fpom.xml", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*req*.txt", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*req*.txt", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/*req*.txt", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2F*req*.txt", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/pyproject.toml", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpyproject.toml", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/pyproject.toml", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fpyproject.toml", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/poetry.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpoetry.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/poetry.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fpoetry.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/yarn.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fyarn.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/yarn.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fyarn.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/build.gradle", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fbuild.gradle", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/build.gradle", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fbuild.gradle", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/gradle.lockfile", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fgradle.lockfile", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/gradle.lockfile", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fgradle.lockfile", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/gradle.properties", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fgradle.properties", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/gradle.properties", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fgradle.properties", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Packages.props", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FPackages.props", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Packages.props", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FPackages.props", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Directory.Build.props", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FDirectory.Build.props", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Directory.Build.props", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FDirectory.Build.props", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Directory.Build.targets", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FDirectory.Build.targets", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Directory.Build.targets", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FDirectory.Build.targets", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/build.sbt", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fbuild.sbt", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/build.sbt", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fbuild.sbt", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/packages.config", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpackages.config", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/packages.config", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fpackages.config", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*.csproj", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*.csproj", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/*.csproj", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2F*.csproj", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*.fsproj", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*.fsproj", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/*.fsproj", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2F*.fsproj", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*.vbproj", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*.vbproj", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/*.vbproj", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2F*.vbproj", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/project.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fproject.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/project.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fproject.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Gopkg.toml", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FGopkg.toml", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Gopkg.toml", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FGopkg.toml", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Gopkg.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FGopkg.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Gopkg.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FGopkg.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/vendor.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fvendor.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/vendor.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fvendor.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/composer.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fcomposer.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/composer.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fcomposer.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/composer.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fcomposer.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/composer.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fcomposer.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/project.assets.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fproject.assets.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/project.assets.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fproject.assets.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Podfile", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FPodfile", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Podfile.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FPodfile.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Podfile", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FPodfile", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Podfile.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FPodfile.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/go.mod", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fgo.mod", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/go.mod", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fgo.mod", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/go.sum", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fgo.sum", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/go.sum", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fgo.sum", + }, + Object { + "//": "used to update Dockerfile", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*Dockerfile*", + }, + Object { + "//": "used to update Dockerfile", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*Dockerfile*", + }, + Object { + "//": "used to update Dockerfile", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/*Dockerfile*", + }, + Object { + "//": "used to update Dockerfile", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2F*Dockerfile*", + }, + Object { + "//": "used to write or update ignore rules or existing patches", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/.snyk", + }, + Object { + "//": "used to write or update ignore rules or existing patches", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F.snyk", + }, + Object { + "//": "get details of the repo", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo", + }, + Object { + "//": "get the details of the commit to determine its SHA", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/commits/:ref", + "valid": Array [ + Object { + "header": "accept", + "values": Array [ + "application/vnd.github.v4.sha", + ], + }, + ], + }, + Object { + "//": "get a list of all the refs to match find whether an existing PR is open", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/git/refs", + }, + Object { + "//": "get the head commit of an individual ref", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/git/refs/heads/:ref", + }, + Object { + "//": "get the details of an individual ref", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/git/refs/:ref", + }, + Object { + "//": "compares two commits against each other", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/compare/:base...:head", + }, + Object { + "//": "search for open snyk pull requests", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/pulls", + }, + Object { + "//": "get pull request data for getting merge sha and tracking PR processing state", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/pulls/:pull_number", + }, + Object { + "//": "get pull request file names", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/pulls/:pull_number/files", + }, + Object { + "//": "create branches for new commits", + "method": "POST", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/git/refs", + }, + Object { + "//": "create the pull request", + "method": "POST", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/pulls", + }, + Object { + "//": "add pull request assignees", + "method": "POST", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/issues/:pull_number/assignees", + }, + Object { + "//": "update ref", + "method": "PATCH", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/git/refs/:sha", + }, + Object { + "//": "update ref head", + "method": "PATCH", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/git/refs/heads/:ref", + }, + Object { + "//": "get list of all files in a repo", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/git/trees/:ref", + }, + Object { + "//": "used to get repo's contributors list", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:owner/:repo/commits", + }, + Object { + "//": "used to redirect requests to snyk git client", + "method": "any", + "origin": "\${GIT_CLIENT_URL}", + "path": "/snykgit/*", + }, + Object { + "//": "query graphql", + "method": "POST", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_GRAPHQL}", + "path": "/graphql", + }, + Object { + "//": "allow info refs (for git clone)", + "method": "GET", + "origin": "https://pat:\${GITHUB_TOKEN}@\${GITHUB}", + "path": "*/info/refs*", + }, + Object { + "//": "allow git-upload-pack (for git clone)", + "method": "POST", + "origin": "https://pat:\${GITHUB_TOKEN}@\${GITHUB}", + "path": "*/git-upload-pack", + }, + Object { + "//": "needed to load code snippets", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path", + }, + ], + "public": Array [ + Object { + "//": "used for pushing up webhooks from github", + "method": "POST", + "path": "/webhook/github", + "valid": Array [ + Object { + "//": "accept all pull request state changes (these don't have files in them)", + "path": "pull_request.state", + "value": "open", + }, + Object { + "path": "commits.*.added.*", + "value": "package.json", + }, + Object { + "path": "commits.*.modified.*", + "value": "package.json", + }, + Object { + "path": "commits.*.added.*", + "value": "package-lock.json", + }, + Object { + "path": "commits.*.modified.*", + "value": "package-lock.json", + }, + Object { + "path": "commits.*.added.*", + "value": "Gemfile.lock", + }, + Object { + "path": "commits.*.modified.*", + "value": "Gemfile.lock", + }, + Object { + "path": "commits.*.added.*", + "value": "*req*.txt", + }, + Object { + "path": "commits.*.modified.*", + "value": "*req*.txt", + }, + Object { + "path": "commits.*.added.*", + "value": "requirements%2F*.txt", + }, + Object { + "path": "commits.*.modified.*", + "value": "requirements%2F*.txt", + }, + Object { + "path": "commits.*.added.*", + "value": "requirements/*.txt", + }, + Object { + "path": "commits.*.modified.*", + "value": "requirements/*.txt", + }, + Object { + "path": "commits.*.added.*", + "value": "pyproject.toml", + }, + Object { + "path": "commits.*.modified.*", + "value": "pyproject.toml", + }, + Object { + "path": "commits.*.added.*", + "value": "poetry.lock", + }, + Object { + "path": "commits.*.modified.*", + "value": "poetry.lock", + }, + Object { + "path": "commits.*.added.*", + "value": "Pipfile", + }, + Object { + "path": "commits.*.modified.*", + "value": "Pipfile", + }, + Object { + "path": "commits.*.added.*", + "value": "Pipfile.lock", + }, + Object { + "path": "commits.*.modified.*", + "value": "Pipfile.lock", + }, + Object { + "path": "commits.*.added.*", + "value": "pom.xml", + }, + Object { + "path": "commits.*.modified.*", + "value": "pom.xml", + }, + Object { + "path": "commits.*.added.*", + "value": "build.gradle", + }, + Object { + "path": "commits.*.modified.*", + "value": "build.gradle", + }, + Object { + "path": "commits.*.added.*", + "value": "gradle.lockfile", + }, + Object { + "path": "commits.*.modified.*", + "value": "gradle.lockfile", + }, + Object { + "path": "commits.*.added.*", + "value": "gradle.properties", + }, + Object { + "path": "commits.*.modified.*", + "value": "gradle.properties", + }, + Object { + "path": "commits.*.added.*", + "value": "Packages.props", + }, + Object { + "path": "commits.*.modified.*", + "value": "Packages.props", + }, + Object { + "path": "commits.*.added.*", + "value": "Directory.Build.props", + }, + Object { + "path": "commits.*.modified.*", + "value": "Directory.Build.props", + }, + Object { + "path": "commits.*.added.*", + "value": "Directory.Build.targets", + }, + Object { + "path": "commits.*.modified.*", + "value": "Directory.Build.targets", + }, + Object { + "path": "commits.*.added.*", + "value": "build.sbt", + }, + Object { + "path": "commits.*.modified.*", + "value": "build.sbt", + }, + Object { + "path": "commits.*.added.*", + "value": "yarn.lock", + }, + Object { + "path": "commits.*.modified.*", + "value": "yarn.lock", + }, + Object { + "path": "commits.*.added.*", + "value": ".snyk", + }, + Object { + "path": "commits.*.modified.*", + "value": ".snyk", + }, + Object { + "path": "commits.*.added.*", + "value": "packages.config", + }, + Object { + "path": "commits.*.modified.*", + "value": "packages.config", + }, + Object { + "path": "commits.*.added.*", + "value": "*.csproj", + }, + Object { + "path": "commits.*.modified.*", + "value": "*.csproj", + }, + Object { + "path": "commits.*.added.*", + "value": "*.vbproj", + }, + Object { + "path": "commits.*.modified.*", + "value": "*.vbproj", + }, + Object { + "path": "commits.*.added.*", + "value": "*.fsproj", + }, + Object { + "path": "commits.*.modified.*", + "value": "*.fsproj", + }, + Object { + "path": "commits.*.added.*", + "value": "project.json", + }, + Object { + "path": "commits.*.modified.*", + "value": "project.json", + }, + Object { + "path": "commits.*.added.*", + "value": "Gopkg.toml", + }, + Object { + "path": "commits.*.modified.*", + "value": "Gopkg.toml", + }, + Object { + "path": "commits.*.added.*", + "value": "Gopkg.lock", + }, + Object { + "path": "commits.*.modified.*", + "value": "Gopkg.lock", + }, + Object { + "path": "commits.*.added.*", + "value": "vendor.json", + }, + Object { + "path": "commits.*.modified.*", + "value": "vendor.json", + }, + Object { + "path": "commits.*.added.*", + "value": "composer.lock", + }, + Object { + "path": "commits.*.modified.*", + "value": "composer.lock", + }, + Object { + "path": "commits.*.added.*", + "value": "composer.json", + }, + Object { + "path": "commits.*.modified.*", + "value": "composer.json", + }, + Object { + "path": "commits.*.added.*", + "value": "project.assets.json", + }, + Object { + "path": "commits.*.modified.*", + "value": "project.assets.json", + }, + Object { + "path": "commits.*.added.*", + "value": "Podfile", + }, + Object { + "path": "commits.*.modified.*", + "value": "Podfile", + }, + Object { + "path": "commits.*.added.*", + "value": "Podfile.lock", + }, + Object { + "path": "commits.*.modified.*", + "value": "Podfile.lock", + }, + Object { + "path": "commits.*.added.*", + "value": "go.mod", + }, + Object { + "path": "commits.*.modified.*", + "value": "go.mod", + }, + Object { + "path": "commits.*.added.*", + "value": "go.sum", + }, + Object { + "path": "commits.*.modified.*", + "value": "go.sum", + }, + ], + }, + Object { + "//": "used for pushing up webhooks from github", + "method": "POST", + "path": "/webhook/github/:webhookId", + }, + ], +} +`; + +exports[`filter Rules Loading Injection of valid CODE rules - Testing github-enterprise 1`] = ` +Object { + "private": Array [ + Object { + "//": "search for user's repos", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/search/repositories", + }, + Object { + "//": "list the user's info, and validate their credentials", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/user", + }, + Object { + "//": "list the user's orgs", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/user/orgs", + }, + Object { + "//": "list the logged in user's repos", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/user/repos", + }, + Object { + "//": "list a user's repos", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/users/:username/repos", + }, + Object { + "//": "list an orgs's repos", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/orgs/:username/repos", + }, + Object { + "//": "get a user's repo", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:user/:repo", + }, + Object { + "//": "rate limit check", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/rate_limit", + }, + Object { + "//": "allow meta lookup on the api version", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/", + }, + Object { + "//": "allow webhooks to be added, to allow commits to be checked by Snyk. Rules for what is sent to Snyk are controlled in the \`public\` accept filters", + "method": "POST", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:user/:repo/hooks", + }, + Object { + "//": "allow webhooks to be deleted, used to cleanup when a user deactivates or deletes a project", + "method": "DELETE", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:owner/:repo/hooks/:id", + }, + Object { + "//": "used to create commit status messages", + "method": "POST", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:user/:repo/statuses/:sha", + }, + Object { + "//": "used to list branches on a repo", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:user/:repo/branches", + }, + Object { + "//": "used to get branch info", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:user/:repo/branches/:branch", + }, + Object { + "//": "used to get status checks on a branch", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:user/:repo/branches/:branch/protection/required_status_checks/contexts", + }, + Object { + "//": "used to create status checks on a branch", + "method": "POST", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:user/:repo/branches/:branch/protection/required_status_checks/contexts", + }, + Object { + "//": "used to delete status checks on a branch", + "method": "DELETE", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:user/:repo/branches/:branch/protection/required_status_checks/contexts", + }, + Object { + "//": "check if repo is public", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB}", + "path": "/:user/:repo", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/package.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpackage.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/package-lock.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpackage-lock.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Gemfile.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FGemfile.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Gemfile", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FGemfile", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/pom.xml", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpom.xml", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*req*.txt", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*req*.txt", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/requirements/*.txt", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Frequirements%2F*.txt", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/pyproject.toml", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpyproject.toml", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/poetry.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpoetry.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/yarn.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fyarn.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/build.gradle", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fbuild.gradle", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/gradle.lockfile", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fgradle.lockfile", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/gradle.properties", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fgradle.properties", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Packages.props", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FPackages.props", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Directory.Build.props", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FDirectory.Build.props", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Directory.Build.targets", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FDirectory.Build.targets", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/build.sbt", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fbuild.sbt", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/packages.config", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpackages.config", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*.csproj", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*.csproj", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*.fsproj", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*.fsproj", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*.vbproj", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*.vbproj", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/project.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fproject.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Gopkg.toml", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FGopkg.toml", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Gopkg.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FGopkg.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/vendor.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fvendor.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/composer.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fcomposer.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/composer.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fcomposer.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/project.assets.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fproject.assets.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Podfile", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FPodfile", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Podfile.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FPodfile.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/go.mod", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fgo.mod", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/go.mod", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fgo.mod", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/go.sum", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fgo.sum", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/go.sum", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fgo.sum", + }, + Object { + "//": "used to scan Dockerfile", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*Dockerfile*", + }, + Object { + "//": "used to scan Dockerfile", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*Dockerfile*", + }, + Object { + "//": "used to scan Dockerfile", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/*Dockerfile*", + }, + Object { + "//": "used to scan Dockerfile", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2F*Dockerfile*", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/package.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpackage.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/package-lock.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpackage-lock.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Gemfile.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FGemfile.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Gemfile", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FGemfile", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/pom.xml", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpom.xml", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*req*.txt", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*req*.txt", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/pyproject.toml", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpyproject.toml", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/poetry.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpoetry.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/yarn.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fyarn.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/build.gradle", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fbuild.gradle", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/gradle.lockfile", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fgradle.lockfile", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/gradle.properties", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fgradle.properties", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Packages.props", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FPackages.props", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Directory.Build.props", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FDirectory.Build.props", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Directory.Build.targets", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FDirectory.Build.targets", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/build.sbt", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fbuild.sbt", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/packages.config", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpackages.config", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*.csproj", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*.csproj", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*.fsproj", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*.fsproj", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*.vbproj", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*.vbproj", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/project.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fproject.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Gopkg.toml", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FGopkg.toml", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Gopkg.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FGopkg.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/vendor.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fvendor.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/composer.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fcomposer.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/composer.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fcomposer.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/project.assets.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fproject.assets.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Podfile", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FPodfile", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Podfile.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FPodfile.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/go.mod", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fgo.mod", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/go.mod", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fgo.mod", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/go.sum", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fgo.sum", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/go.sum", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fgo.sum", + }, + Object { + "//": "used to write or update ignore rules or existing patches", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/.snyk", + }, + Object { + "//": "used to write or update ignore rules or existing patches", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F.snyk", + }, + Object { + "//": "used to update Dockerfile", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*Dockerfile*", + }, + Object { + "//": "used to update Dockerfile", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*Dockerfile*", + }, + Object { + "//": "used to update Dockerfile", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/*Dockerfile*", + }, + Object { + "//": "used to update Dockerfile", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2F*Dockerfile*", + }, + Object { + "//": "used to check if there's any ignore rules or existing patches", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/.snyk", + }, + Object { + "//": "used to check if there's any ignore rules or existing patches", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F.snyk", + }, + Object { + "//": "get details of the repo", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo", + }, + Object { + "//": "get the details of the commit to determine its SHA", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/commits/:ref", + "valid": Array [ + Object { + "header": "accept", + "values": Array [ + "application/vnd.github.v4.sha", + ], + }, + ], + }, + Object { + "//": "get a list of all the refs to match find whether an existing PR is open", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/git/refs", + }, + Object { + "//": "get the head commit of an individual ref", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/git/refs/heads/:ref", + }, + Object { + "//": "get the details of an individual ref", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/git/refs/:ref", + }, + Object { + "//": "compares two commits against each other", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/compare/:base...:head", + }, + Object { + "//": "search for open snyk pull requests", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/pulls", + }, + Object { + "//": "get pull request data for getting merge sha and tracking PR processing state", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/pulls/:pull_number", + }, + Object { + "//": "get pull request file names", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/pulls/:pull_number/files", + }, + Object { + "//": "add commit data for new PR", + "method": "POST", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/git/refs", + }, + Object { + "//": "create the pull request", + "method": "POST", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/pulls", + }, + Object { + "//": "add pull request assignees", + "method": "POST", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/issues/:pull_number/assignees", + }, + Object { + "//": "update ref", + "method": "PATCH", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/git/refs/:sha", + }, + Object { + "//": "update ref head", + "method": "PATCH", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/git/refs/heads/:ref", + }, + Object { + "//": "get list of all files in a repo", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/git/trees/:ref", + }, + Object { + "//": "used to get repo's contributors list", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:owner/:repo/commits", + }, + Object { + "//": "used to redirect requests to snyk git client", + "method": "any", + "origin": "\${GIT_CLIENT_URL}", + "path": "/snykgit/*", + }, + Object { + "//": "query graphql", + "method": "POST", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_GRAPHQL}", + "path": "/graphql", + }, + Object { + "//": "allow info refs (for git clone)", + "method": "GET", + "origin": "https://pat:\${GITHUB_TOKEN}@\${GITHUB}", + "path": "*/info/refs*", + }, + Object { + "//": "allow git-upload-pack (for git clone)", + "method": "POST", + "origin": "https://pat:\${GITHUB_TOKEN}@\${GITHUB}", + "path": "*/git-upload-pack", + }, + Object { + "//": "needed to load code snippets", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path", + }, + ], + "public": Array [ + Object { + "//": "used for pushing up webhooks from github", + "method": "POST", + "path": "/webhook/github", + "valid": Array [ + Object { + "//": "accept all pull request state changes (these don't have files in them)", + "path": "pull_request.state", + "value": "open", + }, + Object { + "path": "commits.*.added.*", + "value": "package.json", + }, + Object { + "path": "commits.*.modified.*", + "value": "package.json", + }, + Object { + "path": "commits.*.added.*", + "value": "package-lock.json", + }, + Object { + "path": "commits.*.modified.*", + "value": "package-lock.json", + }, + Object { + "path": "commits.*.added.*", + "value": "Gemfile.lock", + }, + Object { + "path": "commits.*.modified.*", + "value": "Gemfile.lock", + }, + Object { + "path": "commits.*.added.*", + "value": "*req*.txt", + }, + Object { + "path": "commits.*.modified.*", + "value": "*req*.txt", + }, + Object { + "path": "commits.*.added.*", + "value": "requirements%2F*.txt", + }, + Object { + "path": "commits.*.modified.*", + "value": "requirements%2F*.txt", + }, + Object { + "path": "commits.*.added.*", + "value": "requirements/*.txt", + }, + Object { + "path": "commits.*.modified.*", + "value": "requirements/*.txt", + }, + Object { + "path": "commits.*.added.*", + "value": "pyproject.toml", + }, + Object { + "path": "commits.*.modified.*", + "value": "pyproject.toml", + }, + Object { + "path": "commits.*.added.*", + "value": "poetry.lock", + }, + Object { + "path": "commits.*.modified.*", + "value": "poetry.lock", + }, + Object { + "path": "commits.*.added.*", + "value": "Pipfile", + }, + Object { + "path": "commits.*.modified.*", + "value": "Pipfile", + }, + Object { + "path": "commits.*.added.*", + "value": "Pipfile.lock", + }, + Object { + "path": "commits.*.modified.*", + "value": "Pipfile.lock", + }, + Object { + "path": "commits.*.added.*", + "value": "pom.xml", + }, + Object { + "path": "commits.*.modified.*", + "value": "pom.xml", + }, + Object { + "path": "commits.*.added.*", + "value": "build.gradle", + }, + Object { + "path": "commits.*.modified.*", + "value": "build.gradle", + }, + Object { + "path": "commits.*.added.*", + "value": "gradle.lockfile", + }, + Object { + "path": "commits.*.modified.*", + "value": "gradle.lockfile", + }, + Object { + "path": "commits.*.added.*", + "value": "gradle.properties", + }, + Object { + "path": "commits.*.modified.*", + "value": "gradle.properties", + }, + Object { + "path": "commits.*.added.*", + "value": "Directory.Build.targets", + }, + Object { + "path": "commits.*.modified.*", + "value": "Directory.Build.targets", + }, + Object { + "path": "commits.*.added.*", + "value": "Packages.props", + }, + Object { + "path": "commits.*.modified.*", + "value": "Packages.props", + }, + Object { + "path": "commits.*.added.*", + "value": "Directory.Build.props", + }, + Object { + "path": "commits.*.modified.*", + "value": "Directory.Build.props", + }, + Object { + "path": "commits.*.added.*", + "value": "build.sbt", + }, + Object { + "path": "commits.*.modified.*", + "value": "build.sbt", + }, + Object { + "path": "commits.*.added.*", + "value": "yarn.lock", + }, + Object { + "path": "commits.*.modified.*", + "value": "yarn.lock", + }, + Object { + "path": "commits.*.added.*", + "value": ".snyk", + }, + Object { + "path": "commits.*.modified.*", + "value": ".snyk", + }, + Object { + "path": "commits.*.added.*", + "value": "packages.config", + }, + Object { + "path": "commits.*.modified.*", + "value": "packages.config", + }, + Object { + "path": "commits.*.added.*", + "value": "*.csproj", + }, + Object { + "path": "commits.*.modified.*", + "value": "*.csproj", + }, + Object { + "path": "commits.*.added.*", + "value": "*.vbproj", + }, + Object { + "path": "commits.*.modified.*", + "value": "*.vbproj", + }, + Object { + "path": "commits.*.added.*", + "value": "*.fsproj", + }, + Object { + "path": "commits.*.modified.*", + "value": "*.fsproj", + }, + Object { + "path": "commits.*.added.*", + "value": "project.json", + }, + Object { + "path": "commits.*.modified.*", + "value": "project.json", + }, + Object { + "path": "commits.*.added.*", + "value": "Gopkg.toml", + }, + Object { + "path": "commits.*.modified.*", + "value": "Gopkg.toml", + }, + Object { + "path": "commits.*.added.*", + "value": "Gopkg.lock", + }, + Object { + "path": "commits.*.modified.*", + "value": "Gopkg.lock", + }, + Object { + "path": "commits.*.added.*", + "value": "vendor.json", + }, + Object { + "path": "commits.*.modified.*", + "value": "vendor.json", + }, + Object { + "path": "commits.*.added.*", + "value": "composer.lock", + }, + Object { + "path": "commits.*.modified.*", + "value": "composer.lock", + }, + Object { + "path": "commits.*.added.*", + "value": "composer.json", + }, + Object { + "path": "commits.*.modified.*", + "value": "composer.json", + }, + Object { + "path": "commits.*.added.*", + "value": "project.assets.json", + }, + Object { + "path": "commits.*.modified.*", + "value": "project.assets.json", + }, + Object { + "path": "commits.*.added.*", + "value": "Podfile", + }, + Object { + "path": "commits.*.modified.*", + "value": "Podfile", + }, + Object { + "path": "commits.*.added.*", + "value": "Podfile.lock", + }, + Object { + "path": "commits.*.modified.*", + "value": "Podfile.lock", + }, + Object { + "path": "commits.*.added.*", + "value": "go.mod", + }, + Object { + "path": "commits.*.modified.*", + "value": "go.mod", + }, + Object { + "path": "commits.*.added.*", + "value": "go.sum", + }, + Object { + "path": "commits.*.modified.*", + "value": "go.sum", + }, + ], + }, + Object { + "//": "used for pushing up webhooks from github", + "method": "POST", + "path": "/webhook/github/:webhookId", + }, + ], +} +`; + +exports[`filter Rules Loading Injection of valid CODE rules - Testing gitlab 1`] = ` +Object { + "private": Array [ + Object { + "//": "identify user", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/user", + }, + Object { + "//": "list the user's projects", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects", + }, + Object { + "//": "list the user's projects", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v3/projects", + }, + Object { + "//": "list the user's visible projects", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v3/projects/visible", + }, + Object { + "//": "get a user's project", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v3/projects/:project", + }, + Object { + "//": "get a user's project", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project", + }, + Object { + "//": "used to search all manifest files", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/tree", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/package.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpackage.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/package-lock.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpackage-lock.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Gemfile.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FGemfile.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Gemfile", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FGemfile", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/pom.xml", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpom.xml", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*req*.txt", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*req*.txt", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/requirements/*.txt", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Frequirements%2F*.txt", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/pyproject.toml", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpyproject.toml", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/poetry.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpoetry.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Pipfile", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FPipfile", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Pipfile.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FPipfile.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/yarn.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fyarn.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/build.gradle", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fbuild.gradle", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/gradle.lockfile", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fgradle.lockfile", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/gradle.properties", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fgradle.properties", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Directory.Build.targets", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FDirectory.Build.targets", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Directory.Build.props", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FDirectory.Build.props", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Packages.props", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FPackages.props", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/build.sbt", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fbuild.sbt", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/packages.config", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpackages.config", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*.csproj", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*.csproj", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*.vbproj", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*.vbproj", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*.fsproj", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*.fsproj", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/project.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fproject.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Gopkg.toml", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FGopkg.toml", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Gopkg.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FGopkg.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/vendor.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fvendor.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/composer.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fcomposer.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/composer.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fcomposer.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/project.assets.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fproject.assets.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Podfile", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FPodfile", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Podfile.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FPodfile.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/go.mod", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fgo.mod", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/go.sum", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fgo.sum", + }, + Object { + "//": "used to scan Dockerfile", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*Dockerfile*", + }, + Object { + "//": "used to scan Dockerfile", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*Dockerfile*", + }, + Object { + "//": "used to check if there's any ignore rules or existing patches", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/.snyk", + }, + Object { + "//": "used to check if there's any ignore rules or existing patches", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F.snyk", + }, + Object { + "//": "used to determine the full dependency tree for v3 protocol", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v3/projects/:project/repository/files", + "valid": Array [ + Object { + "queryParam": "file_path", + "values": Array [ + "**/package.json", + "**%2Fpackage.json", + "**/yarn.lock", + "**%2Fyarn.lock", + "**/package-lock.json", + "**%2Fpackage-lock.json", + "**/Gemfile", + "**%2FGemfile", + "**/Gemfile.lock", + "**%2FGemfile.lock", + "**/pom.xml", + "**%2Fpom.xml", + "**/*req*.txt", + "**%2F*req*.txt", + "**/requirements/*.txt", + "**%2Frequirements%2F*.txt", + "**/pyproject.toml", + "**%2Fpyproject.toml", + "**/poetry.lock", + "**%2Fpoetry.lock", + "**/build.gradle", + "**%2Fbuild.gradle", + "**/gradle.lockfile", + "**%2Fgradle.lockfile", + "**/build.sbt", + "**%2Fbuild.sbt", + "**/.snyk", + "**%2F.snyk", + "**/packages.config", + "**%2Fpackages.config", + "**/*.csproj", + "**%2F*.csproj", + "**/*.vbproj", + "**%2F*.vbproj", + "**/*.fsproj", + "**%2F*.fsproj", + "**/project.json", + "**%2Fproject.json", + "**/Gopkg.toml", + "**%2FGopkg.toml", + "**/Gopkg.lock", + "**%2FGopkg.lock", + "**/vendor.json", + "**%2Fvendor.json", + "**/composer.lock", + "**%2Fcomposer.lock", + "**/composer.json", + "**%2Fcomposer.json", + "**/project.assets.json", + "**%2Fproject.assets.json", + "**/Podfile", + "**%2FPodfile", + "**/Podfile.lock", + "**%2FPodfile.lock", + "**/go.mod", + "**%2Fgo.mod", + "**/go.sum", + "**%2Fgo.sum", + ], + }, + ], + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/package.json", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpackage.json", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/package-lock.json", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpackage-lock.json", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Gemfile.lock", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FGemfile.lock", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Gemfile", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FGemfile", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/pom.xml", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpom.xml", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*req*.txt", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*req*.txt", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/pyproject.toml", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpyproject.toml", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/poetry.lock", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpoetry.lock", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/yarn.lock", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fyarn.lock", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/build.gradle", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fbuild.gradle", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/gradle.lockfile", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fgradle.lockfile", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/gradle.properties", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fgradle.properties", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Directory.Build.targets", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FDirectory.Build.targets", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Directory.Build.props", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FDirectory.Build.props", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Packages.props", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FPackages.props", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/build.sbt", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fbuild.sbt", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/packages.config", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpackages.config", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*.csproj", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*.csproj", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*.vbproj", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*.vbproj", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*.fsproj", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*.fsproj", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/project.json", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fproject.json", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Gopkg.toml", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FGopkg.toml", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Gopkg.lock", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FGopkg.lock", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/vendor.json", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fvendor.json", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/composer.lock", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fcomposer.lock", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/composer.json", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fcomposer.json", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/project.assets.json", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fproject.assets.json", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Podfile", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FPodfile", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Podfile.lock", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FPodfile.lock", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/go.mod", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fgo.mod", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/go.sum", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fgo.sum", + }, + Object { + "//": "used to create Dockerfile", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*Dockerfile*", + }, + Object { + "//": "used to create Dockerfile", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*Dockerfile*", + }, + Object { + "//": "used to create ignore rules or patches", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/.snyk", + }, + Object { + "//": "used to create ignore rules or patches", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F.snyk", + }, + Object { + "//": "used to create manifest file for v3 protocol", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v3/projects/:project/repository/files", + "valid": Array [ + Object { + "queryParam": "file_path", + "values": Array [ + "**/package.json", + "**%2Fpackage.json", + "**/yarn.lock", + "**%2Fyarn.lock", + "**/package-lock.json", + "**%2Fpackage-lock.json", + "**/Gemfile", + "**%2FGemfile", + "**/Gemfile.lock", + "**%2FGemfile.lock", + "**/pom.xml", + "**%2Fpom.xml", + "**/*req*.txt", + "**%2F*req*.txt", + "**/pyproject.toml", + "**%2Fpyproject.toml", + "**/poetry.lock", + "**%2Fpoetry.lock", + "**/build.gradle", + "**%2Fbuild.gradle", + "**/gradle.lockfile", + "**%2Fgradle.lockfile", + "**/build.sbt", + "**%2Fbuild.sbt", + "**/.snyk", + "**%2F.snyk", + "**/packages.config", + "**%2Fpackages.config", + "**/*.csproj", + "**%2F*.csproj", + "**/*.vbproj", + "**%2F*.vbproj", + "**/*.fsproj", + "**%2F*.fsproj", + "**/project.json", + "**%2Fproject.json", + "**/Gopkg.toml", + "**%2FGopkg.toml", + "**/Gopkg.lock", + "**%2FGopkg.lock", + "**/vendor.json", + "**%2Fvendor.json", + "**/composer.lock", + "**%2Fcomposer.lock", + "**/composer.json", + "**%2Fcomposer.json", + "**/project.assets.json", + "**%2Fproject.assets.json", + "**/Podfile", + "**%2FPodfile", + "**/Podfile.lock", + "**%2FPodfile.lock", + "**/go.mod", + "**%2Fgo.mod", + "**/go.sum", + "**%2Fgo.sum", + ], + }, + ], + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/package.json", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpackage.json", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/package-lock.json", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpackage-lock.json", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Gemfile.lock", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FGemfile.lock", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Gemfile", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FGemfile", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/pom.xml", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpom.xml", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*req*.txt", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*req*.txt", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/pyproject.toml", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpyproject.toml", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/poetry.lock", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpoetry.lock", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/yarn.lock", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fyarn.lock", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/build.gradle", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fbuild.gradle", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/gradle.lockfile", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fgradle.lockfile", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/gradle.properties", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fgradle.properties", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Directory.Build.targets", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FDirectory.Build.targets", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Directory.Build.props", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FDirectory.Build.props", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Packages.props", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FPackages.props", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/build.sbt", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fbuild.sbt", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/packages.config", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpackages.config", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*.csproj", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*.csproj", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*.vbproj", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*.vbproj", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*.fsproj", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*.fsproj", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/project.json", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fproject.json", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Gopkg.toml", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FGopkg.toml", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Gopkg.lock", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FGopkg.lock", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/vendor.json", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fvendor.json", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/composer.lock", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fcomposer.lock", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/composer.json", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fcomposer.json", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/project.assets.json", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fproject.assets.json", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Podfile", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FPodfile", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Podfile.lock", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FPodfile.lock", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/go.mod", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fgo.mod", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/go.sum", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fgo.sum", + }, + Object { + "//": "used to update Dockerfile", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*Dockerfile*", + }, + Object { + "//": "used to update Dockerfile", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*Dockerfile*", + }, + Object { + "//": "used to update ignore rules or existing patches", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/.snyk", + }, + Object { + "//": "used to update ignore rules or existing patches", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F.snyk", + }, + Object { + "//": "used to update manifest file for v3 protocol", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v3/projects/:project/repository/files", + "valid": Array [ + Object { + "queryParam": "file_path", + "values": Array [ + "**/package.json", + "**%2Fpackage.json", + "**/yarn.lock", + "**%2Fyarn.lock", + "**/package-lock.json", + "**%2Fpackage-lock.json", + "**/Gemfile", + "**%2FGemfile", + "**/Gemfile.lock", + "**%2FGemfile.lock", + "**/pom.xml", + "**%2Fpom.xml", + "**/*req*.txt", + "**%2F*req*.txt", + "**/pyproject.toml", + "**%2Fpyproject.toml", + "**/poetry.lock", + "**%2Fpoetry.lock", + "**/build.gradle", + "**%2Fbuild.gradle", + "**/gradle.lockfile", + "**%2Fgradle.lockfile", + "**/build.sbt", + "**%2Fbuild.sbt", + "**/.snyk", + "**%2F.snyk", + "**/packages.config", + "**%2Fpackages.config", + "**/*.csproj", + "**%2F*.csproj", + "**/*.vbproj", + "**%2F*.vbproj", + "**/*.fsproj", + "**%2F*.fsproj", + "**/project.json", + "**%2Fproject.json", + "**/Gopkg.toml", + "**%2FGopkg.toml", + "**/Gopkg.lock", + "**%2FGopkg.lock", + "**/vendor.json", + "**%2Fvendor.json", + "**/composer.lock", + "**%2Fcomposer.lock", + "**/composer.json", + "**%2Fcomposer.json", + "**/project.assets.json", + "**%2Fproject.assets.json", + "**/Podfile", + "**%2FPodfile", + "**/Podfile.lock", + "**%2FPodfile.lock", + "**/go.mod", + "**%2Fgo.mod", + "**/go.sum", + "**%2Fgo.sum", + ], + }, + ], + }, + Object { + "//": "allow webhooks to be added, to allow commits to be checked by Snyk. Rules for what is sent to Snyk are controlled in the \`public\` accept filters", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/hooks", + }, + Object { + "//": "allow webhooks to be deleted, used to cleanup when a user deactivates or deletes a project", + "method": "DELETE", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/hooks/:id", + }, + Object { + "//": "used to create commit status messages", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/statuses/:sha", + }, + Object { + "//": "used to create branch for fix merge request", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/branches", + }, + Object { + "//": "used to create merge request for fix merge request", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/merge_requests", + }, + Object { + "//": "used to fetch fix merge request information", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/merge_requests", + }, + Object { + "//": "list the user's groups", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/groups", + }, + Object { + "//": "list of projects in a group", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/groups/:id/projects", + }, + Object { + "//": "get current user. so we'll be able to fetch it's projects", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/user", + }, + Object { + "//": "get user's projects", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/users/:user/projects", + }, + Object { + "//": "get all users. so we'll be able to fetch projects that admin can access", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/users", + }, + Object { + "//": "used to get repo's contributors list", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/commits", + }, + Object { + "//": "get a specific commit identified by the commit hash or name of a branch or tag.", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/commits/:sha", + }, + Object { + "//": "get merge base of two commits for given project.", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/merge_base", + }, + Object { + "//": "used to redirect requests to snyk git client", + "method": "any", + "origin": "\${GIT_CLIENT_URL}", + "path": "/snykgit/*", + }, + Object { + "//": "allow info refs (for git clone)", + "method": "GET", + "origin": "https://oauth2:\${GITLAB_TOKEN}@\${GITLAB}", + "path": "*/info/refs*", + }, + Object { + "//": "allow git-upload-pack (for git clone)", + "method": "POST", + "origin": "https://oauth2:\${GITLAB_TOKEN}@\${GITLAB}", + "path": "*/git-upload-pack", + }, + Object { + "//": "needed to load code snippets", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files/:path", + }, + ], + "public": Array [ + Object { + "//": "used for pushing up webhooks from gitlab", + "method": "POST", + "path": "/webhook/gitlab/:webhookId", + }, + ], +} +`; + +exports[`filter Rules Loading Injection of valid CODE rules and IAC extensions (yaml only) - Testing azure-repos 1`] = ` +Object { + "private": Array [ + Object { + "//": "get list of projects for given organisation", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/_apis/projects", + }, + Object { + "//": "get specific repository for given organisation", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo", + }, + Object { + "//": "get list of repositories for given organisation", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories", + }, + Object { + "//": "get list of refs", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/refs", + }, + Object { + "//": "search through repositories of given organisation", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "_apis/git/repositories", + }, + Object { + "//": "create hook", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "POST", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/_apis/hooks/subscriptions", + }, + Object { + "//": "delete hook", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "DELETE", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/_apis/hooks/subscriptions/:subscriptionId", + }, + Object { + "//": "get file content. restrict by file types", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/items", + "valid": Array [ + Object { + "queryParam": "path", + "values": Array [ + "**/package.json", + "**%2Fpackage.json", + "**/yarn.lock", + "**%2Fyarn.lock", + "**/package-lock.json", + "**%2Fpackage-lock.json", + "**/Gemfile", + "**%2FGemfile", + "**/Gemfile.lock", + "**%2FGemfile.lock", + "**/pom.xml", + "**%2Fpom.xml", + "**/*req*.txt", + "**%2F*req*.txt", + "**/requirements/*.txt", + "**%2Frequirements%2F*.txt", + "**/pyproject.toml", + "**%2Fpyproject.toml", + "**/poetry.lock", + "**%2Fpoetry.lock", + "**/Pipfile", + "**%2FPipfile", + "**/Pipfile.lock", + "**%2FPipfile.lock", + "**/build.gradle", + "**%2Fbuild.gradle", + "**/gradle.lockfile", + "**%2Fgradle.lockfile", + "**/build.sbt", + "**%2Fbuild.sbt", + "**/.snyk", + "**%2F.snyk", + "**/packages.config", + "**%2Fpackages.config", + "**/*.csproj", + "**%2F*.csproj", + "**/*.vbproj", + "**%2F*.vbproj", + "**/*.fsproj", + "**%2F*.fsproj", + "**/project.json", + "**%2Fproject.json", + "**/Gopkg.toml", + "**%2FGopkg.toml", + "**/Gopkg.lock", + "**%2FGopkg.lock", + "**/vendor.json", + "**%2Fvendor.json", + "**/composer.lock", + "**%2Fcomposer.lock", + "**/composer.json", + "**%2Fcomposer.json", + "**/project.assets.json", + "**%2Fproject.assets.json", + "**/Podfile", + "**%2FPodfile", + "**/Podfile.lock", + "**%2FPodfile.lock", + "**/go.mod", + "**%2Fgo.mod", + "**/go.sum", + "**%2Fgo.sum", + "**/*Dockerfile*", + "**%2F*Dockerfile*", + "**/*.yaml", + "**%2F*.yaml", + ], + }, + Object { + "queryParam": "recursionLevel", + "values": Array [ + "none", + ], + }, + Object { + "queryParam": "download", + "values": Array [ + "true", + ], + }, + Object { + "queryParam": "includeContent", + "values": Array [ + "true", + ], + }, + ], + }, + Object { + "//": "check file existence. restrict by file types", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/items", + "valid": Array [ + Object { + "queryParam": "path", + "values": Array [ + "**/package.json", + "**%2Fpackage.json", + "**/yarn.lock", + "**%2Fyarn.lock", + "**/package-lock.json", + "**%2Fpackage-lock.json", + "**/Gemfile", + "**%2FGemfile", + "**/Gemfile.lock", + "**%2FGemfile.lock", + "**/pom.xml", + "**%2Fpom.xml", + "**/*req*.txt", + "**%2F*req*.txt", + "**/requirements/*.txt", + "**%2Frequirements%2F*.txt", + "**/pyproject.toml", + "**%2Fpyproject.toml", + "**/poetry.lock", + "**%2Fpoetry.lock", + "**/Pipfile", + "**%2FPipfile", + "**/Pipfile.lock", + "**%2FPipfile.lock", + "**/build.gradle", + "**%2Fbuild.gradle", + "**/gradle.lockfile", + "**%2Fgradle.lockfile", + "**/build.sbt", + "**%2Fbuild.sbt", + "**/.snyk", + "**%2F.snyk", + "**/packages.config", + "**%2Fpackages.config", + "**/*.csproj", + "**%2F*.csproj", + "**/*.vbproj", + "**%2F*.vbproj", + "**/*.fsproj", + "**%2F*.fsproj", + "**/project.json", + "**%2Fproject.json", + "**/Gopkg.toml", + "**%2FGopkg.toml", + "**/Gopkg.lock", + "**%2FGopkg.lock", + "**/vendor.json", + "**%2Fvendor.json", + "**/composer.lock", + "**%2Fcomposer.lock", + "**/composer.json", + "**%2Fcomposer.json", + "**/project.assets.json", + "**%2Fproject.assets.json", + "**/Podfile", + "**%2FPodfile", + "**/Podfile.lock", + "**%2FPodfile.lock", + "**/go.mod", + "**%2Fgo.mod", + "**/go.sum", + "**%2Fgo.sum", + "**/*Dockerfile*", + "**%2F*Dockerfile*", + "**/*.yaml", + "**%2F*.yaml", + ], + }, + Object { + "queryParam": "versionDescriptor.versionType", + "values": Array [ + "branch", + ], + }, + Object { + "queryParam": "includeContentMetadata", + "values": Array [ + "true", + ], + }, + ], + }, + Object { + "//": "get list of files for given repository", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/items", + "valid": Array [ + Object { + "queryParam": "recursionLevel", + "values": Array [ + "full", + ], + }, + Object { + "queryParam": "download", + "values": Array [ + "false", + ], + }, + Object { + "queryParam": "includeContent", + "values": Array [ + "false", + ], + }, + ], + }, + Object { + "//": "get list of commits for given repository", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/commits", + }, + Object { + "//": "get merge base of two commits for given repository", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/commits/:commitId/mergebases", + }, + Object { + "//": "update status of given commit", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "POST", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/commits/:commitId/statuses", + }, + Object { + "//": "update status of given pull request", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "POST", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/pullRequests/:pullRef/statuses", + }, + Object { + "//": "find PR for given repository", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/pullrequests", + }, + Object { + "//": "create new PR in given repository", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "POST", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/pullrequests", + }, + Object { + "//": "update existing PR in given repository", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "PATCH", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/pullrequests/:pullRef", + }, + Object { + "//": "push new commit in given repository", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "POST", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/pushes", + }, + Object { + "//": "used to redirect requests to snyk git client", + "method": "any", + "origin": "\${GIT_CLIENT_URL}", + "path": "/snykgit/*", + }, + Object { + "//": "allow info refs (for git clone)", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "*/info/refs*", + }, + Object { + "//": "allow git-upload-pack (for git clone)", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "POST", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "*/git-upload-pack", + }, + Object { + "//": "needed to load code snippets", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/items", + }, + ], + "public": Array [ + Object { + "//": "used for pushing up webhooks from Azure", + "method": "POST", + "path": "/webhook/azure-repos/:webhookId", + }, + ], +} +`; + +exports[`filter Rules Loading Injection of valid CODE rules and IAC extensions (yaml only) - Testing bitbucket-server 1`] = ` +Object { + "private": Array [ + Object { + "//": "list the user's projects", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects", + }, + Object { + "//": "list the project's repos", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:projectKey/repos", + }, + Object { + "//": "list the user's repos", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/repos", + }, + Object { + "//": "fetch a given repo", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo", + }, + Object { + "//": "read all file names to find manifests", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/files/:searchPath?", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/package.json", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fpackage.json", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/package-lock.json", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fpackage-lock.json", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Gemfile.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FGemfile.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Gemfile", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FGemfile", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/pom.xml", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fpom.xml", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/*req*.txt", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F*req*.txt", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/requirements/*.txt", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Frequirements%2F*.txt", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/pyproject.toml", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fpyproject.toml", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/poetry.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fpoetry.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Pipfile", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FPipfile", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Pipfile.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FPipfile.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/yarn.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fyarn.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/build.gradle", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fbuild.gradle", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/gradle.lockfile", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fgradle.lockfile", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/gradle.properties", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fgradle.properties", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Packages.props", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FPackages.props", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Directory.Build.props", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FDirectory.Build.props", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Directory.Build.targets", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FDirectory.Build.targets", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/build.sbt", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fbuild.sbt", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/packages.config", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fpackages.config", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/*.csproj", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F*.csproj", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/*.vbproj", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F*.vbproj", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/*.fsproj", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F*.fsproj", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/project.json", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fproject.json", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Gopkg.toml", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FGopkg.toml", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Gopkg.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FGopkg.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/vendor.json", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fvendor.json", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/composer.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fcomposer.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/composer.json", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fcomposer.json", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/project.assets.json", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fproject.assets.json", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Podfile", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FPodfile", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Podfile.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FPodfile.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/go.mod", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fgo.mod", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/go.sum", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fgo.sum", + }, + Object { + "//": "used to scan Dockerfile", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/*Dockerfile*", + }, + Object { + "//": "used to scan Dockerfile", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F*Dockerfile*", + }, + Object { + "//": "used to check if there's any ignore rules or existing patches", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/.snyk", + }, + Object { + "//": "used to check if there's any ignore rules or existing patches", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F.snyk", + }, + Object { + "//": "get list of API capabilities", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/capabilities", + }, + Object { + "//": "allow webhooks to be added, to allow commits to be checked by Snyk. Rules for what is sent to Snyk are controlled in the \`public\` accept filters", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "POST", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/webhooks", + }, + Object { + "//": "allow webhooks to be deleted, used to cleanup when a user deactivates or deletes a project", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "DELETE", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/webhooks/:webhookId", + }, + Object { + "//": "used to create commit status messages", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "POST", + "origin": "https://\${BITBUCKET}", + "path": "/rest/build-status/1.0/commits/:sha", + }, + Object { + "//": "used to create a new branch for fix PRs", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "POST", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/branches", + }, + Object { + "//": "used to create or update a file for fix PRs", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "PUT", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/browse/*", + }, + Object { + "//": "used to create a pull request for fix PRs", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "POST", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/pull-requests", + }, + Object { + "//": "used to query for open pull requests by branch", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/pull-requests", + }, + Object { + "//": "used to query for a merge-base for a pull request", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/pull-requests/:pullRequestId/changes", + }, + Object { + "//": "used to check for a repo's default branch", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/branches/default", + }, + Object { + "//": "Used to get a branch specified by query string", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/branches:filterText?", + }, + Object { + "//": "get a specific commit identified by the commit hash or name of a branch", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/commits/:sha", + }, + Object { + "//": "used to create a Code Insights report", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "PUT", + "origin": "https://\${BITBUCKET}", + "path": "/rest/insights/:apiVersion/projects/:project/repos/:repo/commits/:sha/reports/:report", + }, + Object { + "//": "used to remove a Code Insights report", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "DELETE", + "origin": "https://\${BITBUCKET}", + "path": "/rest/insights/:apiVersion/projects/:project/repos/:repo/commits/:sha/reports/:report", + }, + Object { + "//": "used to add Code Insights annotations to a report", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "POST", + "origin": "https://\${BITBUCKET}", + "path": "/rest/insights/:apiVersion/projects/:project/repos/:repo/commits/:sha/reports/:report/annotations", + }, + Object { + "//": "get list of API capabilities for Code Insights", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/insights/:apiVersion/capabilities", + }, + Object { + "//": "used to remove Code Insights annotations for a report", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "DELETE", + "origin": "https://\${BITBUCKET}", + "path": "/rest/insights/:apiVersion/projects/:project/repos/:repo/commits/:sha/reports/:report/annotations", + }, + Object { + "//": "used to get current user. so we'll be able to fetch current user's repos, that are not part of any project.", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/application-properties", + }, + Object { + "//": "used to get current user. so we'll be able to fetch current user's repos, that are not part of any project - this is using atlassian's SDK api.", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/plugins/servlet/applinks/whoami", + }, + Object { + "//": "used to get the current user's project-like structure. So we'll be able to bind all user's private repos (that are not included in different project)", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:projectKey", + }, + Object { + "//": "used to check if the user has admin or higher permissions", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/admin/permissions/users", + }, + Object { + "//": "used to get all the users. it's called only for admin permissioned user. to retrieve all the repos they can access", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/users", + }, + Object { + "//": "used to redirect requests to snyk git client", + "method": "any", + "origin": "\${GIT_CLIENT_URL}", + "path": "/snykgit/*", + }, + Object { + "//": "used to fetch a given repo from API", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo", + }, + Object { + "//": "used to get default reviewers for a pull request", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/default-reviewers/1.0/projects/:projectKey/repos/:repo/reviewers", + }, + Object { + "//": "used to scan IAC files", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/*.yaml", + }, + Object { + "//": "used to scan IAC files", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F*.yaml", + }, + Object { + "//": "allow info refs (for git clone)", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "*/info/refs*", + }, + Object { + "//": "allow git-upload-pack (for git clone)", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "POST", + "origin": "https://\${BITBUCKET}", + "path": "*/git-upload-pack", + }, + Object { + "//": "needed to load code snippets", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/:file", + }, + ], + "public": Array [ + Object { + "//": "used for pushing up webhooks from bitbucket-server", + "method": "POST", + "path": "/webhook/bitbucket-server/:webhookId", + }, + ], +} +`; + +exports[`filter Rules Loading Injection of valid CODE rules and IAC extensions (yaml only) - Testing bitbucket-server-bearer-auth 1`] = ` +Object { + "private": Array [ + Object { + "//": "list the user's projects", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects", + }, + Object { + "//": "list the project's repos", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:projectKey/repos", + }, + Object { + "//": "list the user's repos", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/repos", + }, + Object { + "//": "fetch a given repo", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo", + }, + Object { + "//": "read all file names to find manifests", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/files/:searchPath?", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/package.json", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fpackage.json", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/package-lock.json", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fpackage-lock.json", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Gemfile.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FGemfile.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Gemfile", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FGemfile", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/pom.xml", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fpom.xml", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/*req*.txt", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F*req*.txt", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/requirements/*.txt", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Frequirements%2F*.txt", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/pyproject.toml", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fpyproject.toml", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/poetry.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fpoetry.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Pipfile", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FPipfile", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Pipfile.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FPipfile.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/yarn.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fyarn.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/build.gradle", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fbuild.gradle", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/gradle.lockfile", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fgradle.lockfile", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/gradle.properties", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fgradle.properties", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Packages.props", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FPackages.props", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Directory.Build.props", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FDirectory.Build.props", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Directory.Build.targets", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FDirectory.Build.targets", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/build.sbt", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fbuild.sbt", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/packages.config", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fpackages.config", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/*.csproj", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F*.csproj", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/*.vbproj", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F*.vbproj", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/*.fsproj", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F*.fsproj", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/project.json", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fproject.json", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Gopkg.toml", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FGopkg.toml", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Gopkg.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FGopkg.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/vendor.json", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fvendor.json", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/composer.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fcomposer.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/composer.json", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fcomposer.json", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/project.assets.json", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fproject.assets.json", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Podfile", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FPodfile", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Podfile.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FPodfile.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/go.mod", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fgo.mod", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/go.sum", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fgo.sum", + }, + Object { + "//": "used to scan Dockerfile", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/*Dockerfile*", + }, + Object { + "//": "used to scan Dockerfile", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F*Dockerfile*", + }, + Object { + "//": "used to check if there's any ignore rules or existing patches", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/.snyk", + }, + Object { + "//": "used to check if there's any ignore rules or existing patches", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F.snyk", + }, + Object { + "//": "get list of API capabilities", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/capabilities", + }, + Object { + "//": "allow webhooks to be added, to allow commits to be checked by Snyk. Rules for what is sent to Snyk are controlled in the \`public\` accept filters", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "POST", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/webhooks", + }, + Object { + "//": "allow webhooks to be deleted, used to cleanup when a user deactivates or deletes a project", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "DELETE", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/webhooks/:webhookId", + }, + Object { + "//": "used to create commit status messages", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "POST", + "origin": "https://\${BITBUCKET}", + "path": "/rest/build-status/1.0/commits/:sha", + }, + Object { + "//": "used to create a new branch for fix PRs", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "POST", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/branches", + }, + Object { + "//": "used to create or update a file for fix PRs", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "PUT", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/browse/*", + }, + Object { + "//": "used to create a pull request for fix PRs", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "POST", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/pull-requests", + }, + Object { + "//": "used to query for open pull requests by branch", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/pull-requests", + }, + Object { + "//": "used to query for a merge-base for a pull request", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/pull-requests/:pullRequestId/changes", + }, + Object { + "//": "used to check for a repo's default branch", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/branches/default", + }, + Object { + "//": "Used to get a branch specified by query string", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/branches:filterText?", + }, + Object { + "//": "get a specific commit identified by the commit hash or name of a branch", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/commits/:sha", + }, + Object { + "//": "used to create a Code Insights report", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "PUT", + "origin": "https://\${BITBUCKET}", + "path": "/rest/insights/:apiVersion/projects/:project/repos/:repo/commits/:sha/reports/:report", + }, + Object { + "//": "used to remove a Code Insights report", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "DELETE", + "origin": "https://\${BITBUCKET}", + "path": "/rest/insights/:apiVersion/projects/:project/repos/:repo/commits/:sha/reports/:report", + }, + Object { + "//": "used to add Code Insights annotations to a report", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "POST", + "origin": "https://\${BITBUCKET}", + "path": "/rest/insights/:apiVersion/projects/:project/repos/:repo/commits/:sha/reports/:report/annotations", + }, + Object { + "//": "get list of API capabilities for Code Insights", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/insights/:apiVersion/capabilities", + }, + Object { + "//": "used to remove Code Insights annotations for a report", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "DELETE", + "origin": "https://\${BITBUCKET}", + "path": "/rest/insights/:apiVersion/projects/:project/repos/:repo/commits/:sha/reports/:report/annotations", + }, + Object { + "//": "used to get current user. so we'll be able to fetch current user's repos, that are not part of any project.", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/application-properties", + }, + Object { + "//": "used to get current user. so we'll be able to fetch current user's repos, that are not part of any project - this is using atlassian's SDK api.", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/plugins/servlet/applinks/whoami", + }, + Object { + "//": "used to get the current user's project-like structure. So we'll be able to bind all user's private repos (that are not included in different project)", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:projectKey", + }, + Object { + "//": "used to check if the user has admin or higher permissions", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/admin/permissions/users", + }, + Object { + "//": "used to get all the users. it's called only for admin permissioned user. to retrieve all the repos they can access", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/users", + }, + Object { + "//": "used to redirect requests to snyk git client", + "method": "any", + "origin": "\${GIT_CLIENT_URL}", + "path": "/snykgit/*", + }, + Object { + "//": "used to fetch a given repo from API", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo", + }, + Object { + "//": "used to get default reviewers for a pull request", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/default-reviewers/1.0/projects/:projectKey/repos/:repo/reviewers", + }, + Object { + "//": "used to scan IAC files", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/*.yaml", + }, + Object { + "//": "used to scan IAC files", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F*.yaml", + }, + Object { + "//": "allow info refs (for git clone)", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "*/info/refs*", + }, + Object { + "//": "allow git-upload-pack (for git clone)", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "POST", + "origin": "https://\${BITBUCKET}", + "path": "*/git-upload-pack", + }, + Object { + "//": "needed to load code snippets", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/:file", + }, + ], + "public": Array [ + Object { + "//": "used for pushing up webhooks from bitbucket-server", + "method": "POST", + "path": "/webhook/bitbucket-server/:webhookId", + }, + ], +} +`; + +exports[`filter Rules Loading Injection of valid CODE rules and IAC extensions (yaml only) - Testing github 1`] = ` +Object { + "private": Array [ + Object { + "//": "search for user's repos", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/search/repositories", + }, + Object { + "//": "list the user's info, and validate their credentials", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/user", + }, + Object { + "//": "list the user's orgs", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/user/orgs", + }, + Object { + "//": "list the logged in user's repos", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/user/repos", + }, + Object { + "//": "list a user's repos", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/users/:username/repos", + }, + Object { + "//": "list an orgs's repos", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/orgs/:username/repos", + }, + Object { + "//": "get a user's repo", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:user/:repo", + }, + Object { + "//": "rate limit check", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/rate_limit", + }, + Object { + "//": "allow meta lookup on the api version", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/", + }, + Object { + "//": "allow webhooks to be added, to allow commits to be checked by Snyk. Rules for what is sent to Snyk are controlled in the \`public\` accept filters", + "method": "POST", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:user/:repo/hooks", + }, + Object { + "//": "allow webhooks to be deleted, used to cleanup when a user deactivates or deletes a project", + "method": "DELETE", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:owner/:repo/hooks/:id", + }, + Object { + "//": "used to create commit status messages", + "method": "POST", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:user/:repo/statuses/:sha", + }, + Object { + "//": "used to list branches on a repo", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:user/:repo/branches", + }, + Object { + "//": "used to get branch info", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:user/:repo/branches/:branch", + }, + Object { + "//": "used to get status checks on a branch", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:user/:repo/branches/:branch/protection/required_status_checks/contexts", + }, + Object { + "//": "used to create status checks on a branch", + "method": "POST", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:user/:repo/branches/:branch/protection/required_status_checks/contexts", + }, + Object { + "//": "used to delete status checks on a branch", + "method": "DELETE", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:user/:repo/branches/:branch/protection/required_status_checks/contexts", + }, + Object { + "//": "check if repo is public", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB}", + "path": "/:user/:repo", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/package.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpackage.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/package.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fpackage.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/package-lock.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpackage-lock.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/package-lock.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fpackage-lock.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Gemfile.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FGemfile.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Gemfile.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FGemfile.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Gemfile", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FGemfile", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Gemfile", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FGemfile", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/pom.xml", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpom.xml", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/pom.xml", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fpom.xml", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*req*.txt", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*req*.txt", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/*req*.txt", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2F*req*.txt", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/requirements/*.txt", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Frequirements%2F*.txt", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/requirements/*.txt", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Frequirements%2F*.txt", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/pyproject.toml", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpyproject.toml", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/pyproject.toml", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fpyproject.toml", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/poetry.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpoetry.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/poetry.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fpoetry.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/yarn.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fyarn.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/yarn.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fyarn.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/build.gradle", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fbuild.gradle", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/build.gradle", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fbuild.gradle", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/gradle.lockfile", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fgradle.lockfile", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/gradle.lockfile", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fgradle.lockfile", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/gradle.properties", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fgradle.properties", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/gradle.properties", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fgradle.properties", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Packages.props", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FPackages.props", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Packages.props", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FPackages.props", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Directory.Build.props", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FDirectory.Build.props", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Directory.Build.props", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FDirectory.Build.props", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Directory.Build.targets", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FDirectory.Build.targets", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Directory.Build.targets", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FDirectory.Build.targets", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/build.sbt", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fbuild.sbt", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/build.sbt", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fbuild.sbt", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/packages.config", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpackages.config", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/packages.config", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fpackages.config", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*.csproj", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*.csproj", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/*.csproj", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2F*.csproj", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*.fsproj", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*.fsproj", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/*.fsproj", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2F*.fsproj", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*.vbproj", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*.vbproj", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/*.vbproj", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2F*.vbproj", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/project.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fproject.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/project.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fproject.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Gopkg.toml", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FGopkg.toml", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Gopkg.toml", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FGopkg.toml", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Gopkg.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FGopkg.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Gopkg.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FGopkg.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/vendor.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fvendor.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/vendor.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fvendor.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/composer.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fcomposer.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/composer.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fcomposer.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/composer.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fcomposer.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/composer.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fcomposer.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/project.assets.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fproject.assets.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/project.assets.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fproject.assets.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Podfile", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FPodfile", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Podfile.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FPodfile.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Podfile", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FPodfile", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Podfile.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FPodfile.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/go.mod", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fgo.mod", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/go.mod", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fgo.mod", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/go.sum", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fgo.sum", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/go.sum", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fgo.sum", + }, + Object { + "//": "used to scan Dockerfile", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*Dockerfile*", + }, + Object { + "//": "used to scan Dockerfile", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*Dockerfile*", + }, + Object { + "//": "used to scan Dockerfile", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/*Dockerfile*", + }, + Object { + "//": "used to scan Dockerfile", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2F*Dockerfile*", + }, + Object { + "//": "used to check if there's any ignore rules or existing patches", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/.snyk", + }, + Object { + "//": "used to check if there's any ignore rules or existing patches", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F.snyk", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/.snyk", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2F.snyk", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/package.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpackage.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/package.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fpackage.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/package-lock.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpackage-lock.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/package-lock.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fpackage-lock.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Gemfile.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FGemfile.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Gemfile.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FGemfile.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Gemfile", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FGemfile", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Gemfile", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FGemfile", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/pom.xml", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpom.xml", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/pom.xml", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fpom.xml", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*req*.txt", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*req*.txt", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/*req*.txt", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2F*req*.txt", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/pyproject.toml", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpyproject.toml", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/pyproject.toml", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fpyproject.toml", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/poetry.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpoetry.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/poetry.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fpoetry.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/yarn.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fyarn.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/yarn.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fyarn.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/build.gradle", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fbuild.gradle", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/build.gradle", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fbuild.gradle", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/gradle.lockfile", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fgradle.lockfile", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/gradle.lockfile", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fgradle.lockfile", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/gradle.properties", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fgradle.properties", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/gradle.properties", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fgradle.properties", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Packages.props", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FPackages.props", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Packages.props", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FPackages.props", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Directory.Build.props", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FDirectory.Build.props", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Directory.Build.props", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FDirectory.Build.props", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Directory.Build.targets", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FDirectory.Build.targets", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Directory.Build.targets", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FDirectory.Build.targets", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/build.sbt", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fbuild.sbt", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/build.sbt", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fbuild.sbt", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/packages.config", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpackages.config", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/packages.config", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fpackages.config", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*.csproj", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*.csproj", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/*.csproj", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2F*.csproj", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*.fsproj", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*.fsproj", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/*.fsproj", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2F*.fsproj", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*.vbproj", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*.vbproj", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/*.vbproj", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2F*.vbproj", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/project.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fproject.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/project.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fproject.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Gopkg.toml", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FGopkg.toml", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Gopkg.toml", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FGopkg.toml", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Gopkg.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FGopkg.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Gopkg.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FGopkg.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/vendor.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fvendor.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/vendor.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fvendor.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/composer.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fcomposer.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/composer.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fcomposer.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/composer.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fcomposer.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/composer.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fcomposer.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/project.assets.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fproject.assets.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/project.assets.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fproject.assets.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Podfile", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FPodfile", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Podfile.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FPodfile.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Podfile", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FPodfile", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Podfile.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FPodfile.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/go.mod", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fgo.mod", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/go.mod", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fgo.mod", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/go.sum", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fgo.sum", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/go.sum", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fgo.sum", + }, + Object { + "//": "used to update Dockerfile", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*Dockerfile*", + }, + Object { + "//": "used to update Dockerfile", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*Dockerfile*", + }, + Object { + "//": "used to update Dockerfile", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/*Dockerfile*", + }, + Object { + "//": "used to update Dockerfile", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2F*Dockerfile*", + }, + Object { + "//": "used to write or update ignore rules or existing patches", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/.snyk", + }, + Object { + "//": "used to write or update ignore rules or existing patches", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F.snyk", + }, + Object { + "//": "get details of the repo", "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/items", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo", + }, + Object { + "//": "get the details of the commit to determine its SHA", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/commits/:ref", "valid": Array [ Object { - "queryParam": "recursionLevel", - "values": Array [ - "full", - ], - }, - Object { - "queryParam": "download", - "values": Array [ - "false", - ], - }, - Object { - "queryParam": "includeContent", + "header": "accept", "values": Array [ - "false", + "application/vnd.github.v4.sha", ], }, ], }, Object { - "//": "get list of commits for given repository", - "auth": Object { - "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", - }, + "//": "get a list of all the refs to match find whether an existing PR is open", "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/commits", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/git/refs", }, Object { - "//": "get merge base of two commits for given repository", - "auth": Object { - "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", - }, + "//": "get the head commit of an individual ref", "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/commits/:commitId/mergebases", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/git/refs/heads/:ref", }, Object { - "//": "update status of given commit", - "auth": Object { - "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", - }, - "method": "POST", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/commits/:commitId/statuses", + "//": "get the details of an individual ref", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/git/refs/:ref", }, Object { - "//": "update status of given pull request", - "auth": Object { - "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", - }, - "method": "POST", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/pullRequests/:pullRef/statuses", + "//": "compares two commits against each other", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/compare/:base...:head", }, Object { - "//": "find PR for given repository", - "auth": Object { - "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", - }, + "//": "search for open snyk pull requests", "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/pullrequests", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/pulls", }, Object { - "//": "create new PR in given repository", - "auth": Object { - "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", - }, + "//": "get pull request data for getting merge sha and tracking PR processing state", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/pulls/:pull_number", + }, + Object { + "//": "get pull request file names", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/pulls/:pull_number/files", + }, + Object { + "//": "create branches for new commits", "method": "POST", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/pullrequests", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/git/refs", }, Object { - "//": "update existing PR in given repository", - "auth": Object { - "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", - }, - "method": "PATCH", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/pullrequests/:pullRef", + "//": "create the pull request", + "method": "POST", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/pulls", }, Object { - "//": "push new commit in given repository", - "auth": Object { - "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", - }, + "//": "add pull request assignees", "method": "POST", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/pushes", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/issues/:pull_number/assignees", + }, + Object { + "//": "update ref", + "method": "PATCH", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/git/refs/:sha", + }, + Object { + "//": "update ref head", + "method": "PATCH", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/git/refs/heads/:ref", + }, + Object { + "//": "get list of all files in a repo", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/git/trees/:ref", + }, + Object { + "//": "used to get repo's contributors list", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:owner/:repo/commits", }, Object { "//": "used to redirect requests to snyk git client", @@ -20901,3043 +35616,3342 @@ Object { "origin": "\${GIT_CLIENT_URL}", "path": "/snykgit/*", }, + Object { + "//": "query graphql", + "method": "POST", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_GRAPHQL}", + "path": "/graphql", + }, + Object { + "//": "used to scan IAC files", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*.yaml", + }, + Object { + "//": "used to scan IAC files", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*.yaml", + }, Object { "//": "allow info refs (for git clone)", - "auth": Object { - "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", - }, "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "origin": "https://pat:\${GITHUB_TOKEN}@\${GITHUB}", "path": "*/info/refs*", }, Object { "//": "allow git-upload-pack (for git clone)", - "auth": Object { - "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", - }, "method": "POST", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "origin": "https://pat:\${GITHUB_TOKEN}@\${GITHUB}", "path": "*/git-upload-pack", }, Object { "//": "needed to load code snippets", - "auth": Object { - "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", - }, "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/items", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path", }, ], "public": Array [ Object { - "//": "used for pushing up webhooks from Azure", + "//": "used for pushing up webhooks from github", "method": "POST", - "path": "/webhook/azure-repos/:webhookId", + "path": "/webhook/github", + "valid": Array [ + Object { + "//": "accept all pull request state changes (these don't have files in them)", + "path": "pull_request.state", + "value": "open", + }, + Object { + "path": "commits.*.added.*", + "value": "package.json", + }, + Object { + "path": "commits.*.modified.*", + "value": "package.json", + }, + Object { + "path": "commits.*.added.*", + "value": "package-lock.json", + }, + Object { + "path": "commits.*.modified.*", + "value": "package-lock.json", + }, + Object { + "path": "commits.*.added.*", + "value": "Gemfile.lock", + }, + Object { + "path": "commits.*.modified.*", + "value": "Gemfile.lock", + }, + Object { + "path": "commits.*.added.*", + "value": "*req*.txt", + }, + Object { + "path": "commits.*.modified.*", + "value": "*req*.txt", + }, + Object { + "path": "commits.*.added.*", + "value": "requirements%2F*.txt", + }, + Object { + "path": "commits.*.modified.*", + "value": "requirements%2F*.txt", + }, + Object { + "path": "commits.*.added.*", + "value": "requirements/*.txt", + }, + Object { + "path": "commits.*.modified.*", + "value": "requirements/*.txt", + }, + Object { + "path": "commits.*.added.*", + "value": "pyproject.toml", + }, + Object { + "path": "commits.*.modified.*", + "value": "pyproject.toml", + }, + Object { + "path": "commits.*.added.*", + "value": "poetry.lock", + }, + Object { + "path": "commits.*.modified.*", + "value": "poetry.lock", + }, + Object { + "path": "commits.*.added.*", + "value": "Pipfile", + }, + Object { + "path": "commits.*.modified.*", + "value": "Pipfile", + }, + Object { + "path": "commits.*.added.*", + "value": "Pipfile.lock", + }, + Object { + "path": "commits.*.modified.*", + "value": "Pipfile.lock", + }, + Object { + "path": "commits.*.added.*", + "value": "pom.xml", + }, + Object { + "path": "commits.*.modified.*", + "value": "pom.xml", + }, + Object { + "path": "commits.*.added.*", + "value": "build.gradle", + }, + Object { + "path": "commits.*.modified.*", + "value": "build.gradle", + }, + Object { + "path": "commits.*.added.*", + "value": "gradle.lockfile", + }, + Object { + "path": "commits.*.modified.*", + "value": "gradle.lockfile", + }, + Object { + "path": "commits.*.added.*", + "value": "gradle.properties", + }, + Object { + "path": "commits.*.modified.*", + "value": "gradle.properties", + }, + Object { + "path": "commits.*.added.*", + "value": "Packages.props", + }, + Object { + "path": "commits.*.modified.*", + "value": "Packages.props", + }, + Object { + "path": "commits.*.added.*", + "value": "Directory.Build.props", + }, + Object { + "path": "commits.*.modified.*", + "value": "Directory.Build.props", + }, + Object { + "path": "commits.*.added.*", + "value": "Directory.Build.targets", + }, + Object { + "path": "commits.*.modified.*", + "value": "Directory.Build.targets", + }, + Object { + "path": "commits.*.added.*", + "value": "build.sbt", + }, + Object { + "path": "commits.*.modified.*", + "value": "build.sbt", + }, + Object { + "path": "commits.*.added.*", + "value": "yarn.lock", + }, + Object { + "path": "commits.*.modified.*", + "value": "yarn.lock", + }, + Object { + "path": "commits.*.added.*", + "value": ".snyk", + }, + Object { + "path": "commits.*.modified.*", + "value": ".snyk", + }, + Object { + "path": "commits.*.added.*", + "value": "packages.config", + }, + Object { + "path": "commits.*.modified.*", + "value": "packages.config", + }, + Object { + "path": "commits.*.added.*", + "value": "*.csproj", + }, + Object { + "path": "commits.*.modified.*", + "value": "*.csproj", + }, + Object { + "path": "commits.*.added.*", + "value": "*.vbproj", + }, + Object { + "path": "commits.*.modified.*", + "value": "*.vbproj", + }, + Object { + "path": "commits.*.added.*", + "value": "*.fsproj", + }, + Object { + "path": "commits.*.modified.*", + "value": "*.fsproj", + }, + Object { + "path": "commits.*.added.*", + "value": "project.json", + }, + Object { + "path": "commits.*.modified.*", + "value": "project.json", + }, + Object { + "path": "commits.*.added.*", + "value": "Gopkg.toml", + }, + Object { + "path": "commits.*.modified.*", + "value": "Gopkg.toml", + }, + Object { + "path": "commits.*.added.*", + "value": "Gopkg.lock", + }, + Object { + "path": "commits.*.modified.*", + "value": "Gopkg.lock", + }, + Object { + "path": "commits.*.added.*", + "value": "vendor.json", + }, + Object { + "path": "commits.*.modified.*", + "value": "vendor.json", + }, + Object { + "path": "commits.*.added.*", + "value": "composer.lock", + }, + Object { + "path": "commits.*.modified.*", + "value": "composer.lock", + }, + Object { + "path": "commits.*.added.*", + "value": "composer.json", + }, + Object { + "path": "commits.*.modified.*", + "value": "composer.json", + }, + Object { + "path": "commits.*.added.*", + "value": "project.assets.json", + }, + Object { + "path": "commits.*.modified.*", + "value": "project.assets.json", + }, + Object { + "path": "commits.*.added.*", + "value": "Podfile", + }, + Object { + "path": "commits.*.modified.*", + "value": "Podfile", + }, + Object { + "path": "commits.*.added.*", + "value": "Podfile.lock", + }, + Object { + "path": "commits.*.modified.*", + "value": "Podfile.lock", + }, + Object { + "path": "commits.*.added.*", + "value": "go.mod", + }, + Object { + "path": "commits.*.modified.*", + "value": "go.mod", + }, + Object { + "path": "commits.*.added.*", + "value": "go.sum", + }, + Object { + "path": "commits.*.modified.*", + "value": "go.sum", + }, + ], + }, + Object { + "//": "used for pushing up webhooks from github", + "method": "POST", + "path": "/webhook/github/:webhookId", }, ], } `; - -exports[`filter Rules Loading Injection of valid CODE rules and IAC extensions (yaml only) - Testing bitbucket-server 1`] = ` -Object { - "private": Array [ - Object { - "//": "list the user's projects", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, + +exports[`filter Rules Loading Injection of valid CODE rules and IAC extensions (yaml only) - Testing github-enterprise 1`] = ` +Object { + "private": Array [ + Object { + "//": "search for user's repos", "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/search/repositories", }, Object { - "//": "list the project's repos", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, + "//": "list the user's info, and validate their credentials", "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:projectKey/repos", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/user", }, Object { - "//": "list the user's repos", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, + "//": "list the user's orgs", "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/repos", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/user/orgs", }, Object { - "//": "fetch a given repo", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, + "//": "list the logged in user's repos", "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/user/repos", }, Object { - "//": "read all file names to find manifests", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, + "//": "list a user's repos", "method": "GET", - "origin": "https://\${BITBUCKET}", - "path": "/rest/api/1.0/projects/:project/repos/:repo/files/:searchPath?", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/users/:username/repos", }, Object { - "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, + "//": "list an orgs's repos", "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/package.json", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/orgs/:username/repos", }, Object { - "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, + "//": "get a user's repo", "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2Fpackage.json", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:user/:repo", }, Object { - "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, + "//": "rate limit check", "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/package-lock.json", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/rate_limit", }, Object { - "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, + "//": "allow meta lookup on the api version", "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2Fpackage-lock.json", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/", }, Object { - "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, + "//": "allow webhooks to be added, to allow commits to be checked by Snyk. Rules for what is sent to Snyk are controlled in the \`public\` accept filters", + "method": "POST", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:user/:repo/hooks", + }, + Object { + "//": "allow webhooks to be deleted, used to cleanup when a user deactivates or deletes a project", + "method": "DELETE", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:owner/:repo/hooks/:id", + }, + Object { + "//": "used to create commit status messages", + "method": "POST", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:user/:repo/statuses/:sha", + }, + Object { + "//": "used to list branches on a repo", "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/Gemfile.lock", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:user/:repo/branches", }, Object { - "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, + "//": "used to get branch info", "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2FGemfile.lock", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:user/:repo/branches/:branch", }, Object { - "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, + "//": "used to get status checks on a branch", "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/Gemfile", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:user/:repo/branches/:branch/protection/required_status_checks/contexts", }, Object { - "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, + "//": "used to create status checks on a branch", + "method": "POST", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:user/:repo/branches/:branch/protection/required_status_checks/contexts", + }, + Object { + "//": "used to delete status checks on a branch", + "method": "DELETE", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:user/:repo/branches/:branch/protection/required_status_checks/contexts", + }, + Object { + "//": "check if repo is public", "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2FGemfile", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB}", + "path": "/:user/:repo", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/pom.xml", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/package.json", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2Fpom.xml", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpackage.json", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/*req*.txt", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/package-lock.json", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2F*req*.txt", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpackage-lock.json", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/requirements/*.txt", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Gemfile.lock", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2Frequirements%2F*.txt", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FGemfile.lock", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/pyproject.toml", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Gemfile", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2Fpyproject.toml", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FGemfile", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/poetry.lock", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/pom.xml", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2Fpoetry.lock", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpom.xml", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/Pipfile", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*req*.txt", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2FPipfile", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*req*.txt", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/Pipfile.lock", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/requirements/*.txt", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2FPipfile.lock", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Frequirements%2F*.txt", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/yarn.lock", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/pyproject.toml", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2Fyarn.lock", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpyproject.toml", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/build.gradle", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/poetry.lock", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2Fbuild.gradle", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpoetry.lock", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/gradle.lockfile", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/yarn.lock", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2Fgradle.lockfile", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fyarn.lock", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/gradle.properties", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/build.gradle", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2Fgradle.properties", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fbuild.gradle", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/Packages.props", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/gradle.lockfile", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2FPackages.props", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fgradle.lockfile", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/Directory.Build.props", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/gradle.properties", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2FDirectory.Build.props", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fgradle.properties", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/Directory.Build.targets", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Packages.props", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2FDirectory.Build.targets", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FPackages.props", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/build.sbt", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Directory.Build.props", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2Fbuild.sbt", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FDirectory.Build.props", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/packages.config", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Directory.Build.targets", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2Fpackages.config", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FDirectory.Build.targets", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/*.csproj", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/build.sbt", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2F*.csproj", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fbuild.sbt", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/*.vbproj", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/packages.config", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2F*.vbproj", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpackages.config", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/*.fsproj", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*.csproj", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2F*.fsproj", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*.csproj", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/project.json", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*.fsproj", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2Fproject.json", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*.fsproj", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/Gopkg.toml", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*.vbproj", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2FGopkg.toml", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*.vbproj", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/Gopkg.lock", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/project.json", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2FGopkg.lock", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fproject.json", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/vendor.json", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Gopkg.toml", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2Fvendor.json", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FGopkg.toml", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/composer.lock", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Gopkg.lock", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2Fcomposer.lock", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FGopkg.lock", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/composer.json", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/vendor.json", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2Fcomposer.json", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fvendor.json", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/project.assets.json", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/composer.lock", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2Fproject.assets.json", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fcomposer.lock", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/Podfile", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/composer.json", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2FPodfile", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fcomposer.json", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/Podfile.lock", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/project.assets.json", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2FPodfile.lock", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fproject.assets.json", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/go.mod", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Podfile", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2Fgo.mod", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FPodfile", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/go.sum", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Podfile.lock", }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2Fgo.sum", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FPodfile.lock", }, Object { - "//": "used to scan Dockerfile", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, + "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/*Dockerfile*", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/go.mod", }, Object { - "//": "used to scan Dockerfile", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, + "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2F*Dockerfile*", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fgo.mod", }, Object { - "//": "used to check if there's any ignore rules or existing patches", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, + "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/.snyk", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/go.mod", }, Object { - "//": "used to check if there's any ignore rules or existing patches", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, + "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2F.snyk", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fgo.mod", }, Object { - "//": "get list of API capabilities", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, + "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${BITBUCKET}", - "path": "/rest/capabilities", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/go.sum", }, Object { - "//": "allow webhooks to be added, to allow commits to be checked by Snyk. Rules for what is sent to Snyk are controlled in the \`public\` accept filters", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "POST", - "origin": "https://\${BITBUCKET}", - "path": "/rest/api/1.0/projects/:project/repos/:repo/webhooks", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fgo.sum", }, Object { - "//": "allow webhooks to be deleted, used to cleanup when a user deactivates or deletes a project", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "DELETE", - "origin": "https://\${BITBUCKET}", - "path": "/rest/api/1.0/projects/:project/repos/:repo/webhooks/:webhookId", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/go.sum", }, Object { - "//": "used to create commit status messages", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "POST", - "origin": "https://\${BITBUCKET}", - "path": "/rest/build-status/1.0/commits/:sha", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fgo.sum", }, Object { - "//": "used to create a new branch for fix PRs", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "POST", - "origin": "https://\${BITBUCKET}", - "path": "/rest/api/1.0/projects/:project/repos/:repo/branches", + "//": "used to scan Dockerfile", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*Dockerfile*", }, Object { - "//": "used to create or update a file for fix PRs", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "PUT", - "origin": "https://\${BITBUCKET}", - "path": "/rest/api/1.0/projects/:project/repos/:repo/browse/*", + "//": "used to scan Dockerfile", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*Dockerfile*", }, Object { - "//": "used to create a pull request for fix PRs", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "POST", - "origin": "https://\${BITBUCKET}", - "path": "/rest/api/1.0/projects/:project/repos/:repo/pull-requests", + "//": "used to scan Dockerfile", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/*Dockerfile*", }, Object { - "//": "used to query for open pull requests by branch", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, + "//": "used to scan Dockerfile", "method": "GET", - "origin": "https://\${BITBUCKET}", - "path": "/rest/api/1.0/projects/:project/repos/:repo/pull-requests", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2F*Dockerfile*", }, Object { - "//": "used to query for a merge-base for a pull request", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET}", - "path": "/rest/api/1.0/projects/:project/repos/:repo/pull-requests/:pullRequestId/changes", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/package.json", }, Object { - "//": "used to check for a repo's default branch", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET}", - "path": "/rest/api/1.0/projects/:project/repos/:repo/branches/default", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpackage.json", }, Object { - "//": "Used to get a branch specified by query string", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET}", - "path": "/rest/api/1.0/projects/:project/repos/:repo/branches:filterText?", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/package-lock.json", }, Object { - "//": "get a specific commit identified by the commit hash or name of a branch", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET}", - "path": "/rest/api/1.0/projects/:project/repos/:repo/commits/:sha", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpackage-lock.json", }, Object { - "//": "used to create a Code Insights report", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, + "//": "used to update manifest or lock", "method": "PUT", - "origin": "https://\${BITBUCKET}", - "path": "/rest/insights/:apiVersion/projects/:project/repos/:repo/commits/:sha/reports/:report", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Gemfile.lock", }, Object { - "//": "used to remove a Code Insights report", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "DELETE", - "origin": "https://\${BITBUCKET}", - "path": "/rest/insights/:apiVersion/projects/:project/repos/:repo/commits/:sha/reports/:report", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FGemfile.lock", }, Object { - "//": "used to add Code Insights annotations to a report", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "POST", - "origin": "https://\${BITBUCKET}", - "path": "/rest/insights/:apiVersion/projects/:project/repos/:repo/commits/:sha/reports/:report/annotations", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Gemfile", }, Object { - "//": "get list of API capabilities for Code Insights", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET}", - "path": "/rest/insights/:apiVersion/capabilities", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FGemfile", }, Object { - "//": "used to remove Code Insights annotations for a report", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "DELETE", - "origin": "https://\${BITBUCKET}", - "path": "/rest/insights/:apiVersion/projects/:project/repos/:repo/commits/:sha/reports/:report/annotations", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/pom.xml", }, Object { - "//": "used to get current user. so we'll be able to fetch current user's repos, that are not part of any project.", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET}", - "path": "/rest/api/1.0/application-properties", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpom.xml", }, Object { - "//": "used to get current user. so we'll be able to fetch current user's repos, that are not part of any project - this is using atlassian's SDK api.", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET}", - "path": "/plugins/servlet/applinks/whoami", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*req*.txt", }, Object { - "//": "used to get the current user's project-like structure. So we'll be able to bind all user's private repos (that are not included in different project)", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:projectKey", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*req*.txt", }, Object { - "//": "used to check if the user has admin or higher permissions", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/admin/permissions/users", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/pyproject.toml", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpyproject.toml", }, Object { - "//": "used to get all the users. it's called only for admin permissioned user. to retrieve all the repos they can access", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/users", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/poetry.lock", }, Object { - "//": "used to redirect requests to snyk git client", - "method": "any", - "origin": "\${GIT_CLIENT_URL}", - "path": "/snykgit/*", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpoetry.lock", }, Object { - "//": "used to fetch a given repo from API", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET}", - "path": "/rest/api/1.0/projects/:project/repos/:repo", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/yarn.lock", }, Object { - "//": "used to get default reviewers for a pull request", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET}", - "path": "/rest/default-reviewers/1.0/projects/:projectKey/repos/:repo/reviewers", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fyarn.lock", }, Object { - "//": "used to scan IAC files", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/*.yaml", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/build.gradle", }, Object { - "//": "used to scan IAC files", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2F*.yaml", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fbuild.gradle", }, Object { - "//": "allow info refs (for git clone)", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET}", - "path": "*/info/refs*", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/gradle.lockfile", }, Object { - "//": "allow git-upload-pack (for git clone)", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "POST", - "origin": "https://\${BITBUCKET}", - "path": "*/git-upload-pack", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fgradle.lockfile", }, Object { - "//": "needed to load code snippets", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/:file", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/gradle.properties", }, - ], - "public": Array [ Object { - "//": "used for pushing up webhooks from bitbucket-server", - "method": "POST", - "path": "/webhook/bitbucket-server/:webhookId", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fgradle.properties", }, - ], -} -`; - -exports[`filter Rules Loading Injection of valid CODE rules and IAC extensions (yaml only) - Testing github 1`] = ` -Object { - "private": Array [ Object { - "//": "search for user's repos", - "method": "GET", + "//": "used to update manifest or lock", + "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/search/repositories", + "path": "/repos/:name/:repo/contents/:path*/Packages.props", }, Object { - "//": "list the user's info, and validate their credentials", - "method": "GET", + "//": "used to update manifest or lock", + "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/user", + "path": "/repos/:name/:repo/contents/:path*%2FPackages.props", }, Object { - "//": "list the user's orgs", - "method": "GET", + "//": "used to update manifest or lock", + "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/user/orgs", + "path": "/repos/:name/:repo/contents/:path*/Directory.Build.props", }, Object { - "//": "list the logged in user's repos", - "method": "GET", + "//": "used to update manifest or lock", + "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/user/repos", + "path": "/repos/:name/:repo/contents/:path*%2FDirectory.Build.props", }, Object { - "//": "list a user's repos", - "method": "GET", + "//": "used to update manifest or lock", + "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/users/:username/repos", + "path": "/repos/:name/:repo/contents/:path*/Directory.Build.targets", }, Object { - "//": "list an orgs's repos", - "method": "GET", + "//": "used to update manifest or lock", + "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/orgs/:username/repos", + "path": "/repos/:name/:repo/contents/:path*%2FDirectory.Build.targets", }, Object { - "//": "get a user's repo", - "method": "GET", + "//": "used to update manifest or lock", + "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:user/:repo", + "path": "/repos/:name/:repo/contents/:path*/build.sbt", }, Object { - "//": "rate limit check", - "method": "GET", + "//": "used to update manifest or lock", + "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/rate_limit", + "path": "/repos/:name/:repo/contents/:path*%2Fbuild.sbt", }, Object { - "//": "allow meta lookup on the api version", - "method": "GET", + "//": "used to update manifest or lock", + "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/", + "path": "/repos/:name/:repo/contents/:path*/packages.config", }, Object { - "//": "allow webhooks to be added, to allow commits to be checked by Snyk. Rules for what is sent to Snyk are controlled in the \`public\` accept filters", - "method": "POST", + "//": "used to update manifest or lock", + "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:user/:repo/hooks", + "path": "/repos/:name/:repo/contents/:path*%2Fpackages.config", }, Object { - "//": "allow webhooks to be deleted, used to cleanup when a user deactivates or deletes a project", - "method": "DELETE", + "//": "used to update manifest or lock", + "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:owner/:repo/hooks/:id", + "path": "/repos/:name/:repo/contents/:path*/*.csproj", }, Object { - "//": "used to create commit status messages", - "method": "POST", + "//": "used to update manifest or lock", + "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:user/:repo/statuses/:sha", + "path": "/repos/:name/:repo/contents/:path*%2F*.csproj", }, Object { - "//": "used to list branches on a repo", - "method": "GET", + "//": "used to update manifest or lock", + "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:user/:repo/branches", + "path": "/repos/:name/:repo/contents/:path*/*.fsproj", }, Object { - "//": "used to get branch info", - "method": "GET", + "//": "used to update manifest or lock", + "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:user/:repo/branches/:branch", + "path": "/repos/:name/:repo/contents/:path*%2F*.fsproj", }, Object { - "//": "used to get status checks on a branch", - "method": "GET", + "//": "used to update manifest or lock", + "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:user/:repo/branches/:branch/protection/required_status_checks/contexts", + "path": "/repos/:name/:repo/contents/:path*/*.vbproj", }, Object { - "//": "used to create status checks on a branch", - "method": "POST", + "//": "used to update manifest or lock", + "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:user/:repo/branches/:branch/protection/required_status_checks/contexts", + "path": "/repos/:name/:repo/contents/:path*%2F*.vbproj", }, Object { - "//": "used to delete status checks on a branch", - "method": "DELETE", + "//": "used to update manifest or lock", + "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:user/:repo/branches/:branch/protection/required_status_checks/contexts", + "path": "/repos/:name/:repo/contents/:path*/project.json", }, Object { - "//": "check if repo is public", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB}", - "path": "/:user/:repo", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fproject.json", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", + "//": "used to update manifest or lock", + "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/package.json", + "path": "/repos/:name/:repo/contents/:path*/Gopkg.toml", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", + "//": "used to update manifest or lock", + "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fpackage.json", + "path": "/repos/:name/:repo/contents/:path*%2FGopkg.toml", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/package.json", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Gopkg.lock", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fpackage.json", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FGopkg.lock", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", + "//": "used to update manifest or lock", + "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/package-lock.json", + "path": "/repos/:name/:repo/contents/:path*/vendor.json", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", + "//": "used to update manifest or lock", + "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fpackage-lock.json", + "path": "/repos/:name/:repo/contents/:path*%2Fvendor.json", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/package-lock.json", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/composer.lock", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fpackage-lock.json", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fcomposer.lock", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", + "//": "used to update manifest or lock", + "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Gemfile.lock", + "path": "/repos/:name/:repo/contents/:path*/composer.json", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", + "//": "used to update manifest or lock", + "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FGemfile.lock", + "path": "/repos/:name/:repo/contents/:path*%2Fcomposer.json", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/Gemfile.lock", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/project.assets.json", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2FGemfile.lock", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fproject.assets.json", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", + "//": "used to update manifest or lock", + "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Gemfile", + "path": "/repos/:name/:repo/contents/:path*/Podfile", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", + "//": "used to update manifest or lock", + "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FGemfile", + "path": "/repos/:name/:repo/contents/:path*%2FPodfile", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/Gemfile", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Podfile.lock", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2FGemfile", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FPodfile.lock", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", + "//": "used to update manifest or lock", + "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/pom.xml", + "path": "/repos/:name/:repo/contents/:path*/go.mod", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", + "//": "used to update manifest or lock", + "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fpom.xml", + "path": "/repos/:name/:repo/contents/:path*%2Fgo.mod", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", + "//": "used to update manifest or lock", + "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/pom.xml", + "path": "/:name/:repo/:path*/go.mod", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", + "//": "used to update manifest or lock", + "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fpom.xml", + "path": "/:name/:repo/:path*%2Fgo.mod", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", + "//": "used to update manifest or lock", + "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/*req*.txt", + "path": "/repos/:name/:repo/contents/:path*/go.sum", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", + "//": "used to update manifest or lock", + "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2F*req*.txt", + "path": "/repos/:name/:repo/contents/:path*%2Fgo.sum", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", + "//": "used to update manifest or lock", + "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/*req*.txt", + "path": "/:name/:repo/:path*/go.sum", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", + "//": "used to update manifest or lock", + "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2F*req*.txt", + "path": "/:name/:repo/:path*%2Fgo.sum", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", + "//": "used to write or update ignore rules or existing patches", + "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/requirements/*.txt", + "path": "/repos/:name/:repo/contents/:path*/.snyk", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", + "//": "used to write or update ignore rules or existing patches", + "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Frequirements%2F*.txt", + "path": "/repos/:name/:repo/contents/:path*%2F.snyk", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", + "//": "used to update Dockerfile", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*Dockerfile*", + }, + Object { + "//": "used to update Dockerfile", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*Dockerfile*", + }, + Object { + "//": "used to update Dockerfile", + "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/requirements/*.txt", + "path": "/:name/:repo/:path*/*Dockerfile*", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", + "//": "used to update Dockerfile", + "method": "PUT", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Frequirements%2F*.txt", + "path": "/:name/:repo/:path*%2F*Dockerfile*", }, Object { - "//": "used to determine the full dependency tree", + "//": "used to check if there's any ignore rules or existing patches", "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/pyproject.toml", + "path": "/repos/:name/:repo/contents/:path*/.snyk", }, Object { - "//": "used to determine the full dependency tree", + "//": "used to check if there's any ignore rules or existing patches", "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fpyproject.toml", + "path": "/repos/:name/:repo/contents/:path*%2F.snyk", }, Object { - "//": "used to determine the full dependency tree", + "//": "get details of the repo", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/pyproject.toml", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo", }, Object { - "//": "used to determine the full dependency tree", + "//": "get the details of the commit to determine its SHA", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fpyproject.toml", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/commits/:ref", + "valid": Array [ + Object { + "header": "accept", + "values": Array [ + "application/vnd.github.v4.sha", + ], + }, + ], }, Object { - "//": "used to determine the full dependency tree", + "//": "get a list of all the refs to match find whether an existing PR is open", "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/poetry.lock", + "path": "/repos/:name/:repo/git/refs", }, Object { - "//": "used to determine the full dependency tree", + "//": "get the head commit of an individual ref", "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fpoetry.lock", + "path": "/repos/:name/:repo/git/refs/heads/:ref", }, Object { - "//": "used to determine the full dependency tree", + "//": "get the details of an individual ref", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/poetry.lock", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/git/refs/:ref", }, Object { - "//": "used to determine the full dependency tree", + "//": "compares two commits against each other", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fpoetry.lock", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/compare/:base...:head", }, Object { - "//": "used to determine the full dependency tree", + "//": "search for open snyk pull requests", "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/yarn.lock", + "path": "/repos/:name/:repo/pulls", }, Object { - "//": "used to determine the full dependency tree", + "//": "get pull request data for getting merge sha and tracking PR processing state", "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fyarn.lock", + "path": "/repos/:name/:repo/pulls/:pull_number", }, Object { - "//": "used to determine the full dependency tree", + "//": "get pull request file names", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/yarn.lock", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/pulls/:pull_number/files", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fyarn.lock", + "//": "add commit data for new PR", + "method": "POST", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/git/refs", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", + "//": "create the pull request", + "method": "POST", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/build.gradle", + "path": "/repos/:name/:repo/pulls", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", + "//": "add pull request assignees", + "method": "POST", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fbuild.gradle", + "path": "/repos/:name/:repo/issues/:pull_number/assignees", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/build.gradle", + "//": "update ref", + "method": "PATCH", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/git/refs/:sha", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fbuild.gradle", + "//": "update ref head", + "method": "PATCH", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/git/refs/heads/:ref", }, Object { - "//": "used to determine the full dependency tree", + "//": "get list of all files in a repo", "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/gradle.lockfile", + "path": "/repos/:name/:repo/git/trees/:ref", }, Object { - "//": "used to determine the full dependency tree", + "//": "used to get repo's contributors list", "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fgradle.lockfile", + "path": "/repos/:owner/:repo/commits", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/gradle.lockfile", + "//": "used to redirect requests to snyk git client", + "method": "any", + "origin": "\${GIT_CLIENT_URL}", + "path": "/snykgit/*", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fgradle.lockfile", + "//": "query graphql", + "method": "POST", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_GRAPHQL}", + "path": "/graphql", }, Object { - "//": "used to determine the full dependency tree", + "//": "used to scan IAC files", "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/gradle.properties", + "path": "/repos/:name/:repo/contents/:path*/*.yaml", }, Object { - "//": "used to determine the full dependency tree", + "//": "used to scan IAC files", "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fgradle.properties", + "path": "/repos/:name/:repo/contents/:path*%2F*.yaml", }, Object { - "//": "used to determine the full dependency tree", + "//": "allow info refs (for git clone)", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/gradle.properties", + "origin": "https://pat:\${GITHUB_TOKEN}@\${GITHUB}", + "path": "*/info/refs*", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fgradle.properties", + "//": "allow git-upload-pack (for git clone)", + "method": "POST", + "origin": "https://pat:\${GITHUB_TOKEN}@\${GITHUB}", + "path": "*/git-upload-pack", }, Object { - "//": "used to determine the full dependency tree", + "//": "needed to load code snippets", "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Packages.props", + "path": "/repos/:name/:repo/contents/:path", }, + ], + "public": Array [ Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FPackages.props", + "//": "used for pushing up webhooks from github", + "method": "POST", + "path": "/webhook/github", + "valid": Array [ + Object { + "//": "accept all pull request state changes (these don't have files in them)", + "path": "pull_request.state", + "value": "open", + }, + Object { + "path": "commits.*.added.*", + "value": "package.json", + }, + Object { + "path": "commits.*.modified.*", + "value": "package.json", + }, + Object { + "path": "commits.*.added.*", + "value": "package-lock.json", + }, + Object { + "path": "commits.*.modified.*", + "value": "package-lock.json", + }, + Object { + "path": "commits.*.added.*", + "value": "Gemfile.lock", + }, + Object { + "path": "commits.*.modified.*", + "value": "Gemfile.lock", + }, + Object { + "path": "commits.*.added.*", + "value": "*req*.txt", + }, + Object { + "path": "commits.*.modified.*", + "value": "*req*.txt", + }, + Object { + "path": "commits.*.added.*", + "value": "requirements%2F*.txt", + }, + Object { + "path": "commits.*.modified.*", + "value": "requirements%2F*.txt", + }, + Object { + "path": "commits.*.added.*", + "value": "requirements/*.txt", + }, + Object { + "path": "commits.*.modified.*", + "value": "requirements/*.txt", + }, + Object { + "path": "commits.*.added.*", + "value": "pyproject.toml", + }, + Object { + "path": "commits.*.modified.*", + "value": "pyproject.toml", + }, + Object { + "path": "commits.*.added.*", + "value": "poetry.lock", + }, + Object { + "path": "commits.*.modified.*", + "value": "poetry.lock", + }, + Object { + "path": "commits.*.added.*", + "value": "Pipfile", + }, + Object { + "path": "commits.*.modified.*", + "value": "Pipfile", + }, + Object { + "path": "commits.*.added.*", + "value": "Pipfile.lock", + }, + Object { + "path": "commits.*.modified.*", + "value": "Pipfile.lock", + }, + Object { + "path": "commits.*.added.*", + "value": "pom.xml", + }, + Object { + "path": "commits.*.modified.*", + "value": "pom.xml", + }, + Object { + "path": "commits.*.added.*", + "value": "build.gradle", + }, + Object { + "path": "commits.*.modified.*", + "value": "build.gradle", + }, + Object { + "path": "commits.*.added.*", + "value": "gradle.lockfile", + }, + Object { + "path": "commits.*.modified.*", + "value": "gradle.lockfile", + }, + Object { + "path": "commits.*.added.*", + "value": "gradle.properties", + }, + Object { + "path": "commits.*.modified.*", + "value": "gradle.properties", + }, + Object { + "path": "commits.*.added.*", + "value": "Directory.Build.targets", + }, + Object { + "path": "commits.*.modified.*", + "value": "Directory.Build.targets", + }, + Object { + "path": "commits.*.added.*", + "value": "Packages.props", + }, + Object { + "path": "commits.*.modified.*", + "value": "Packages.props", + }, + Object { + "path": "commits.*.added.*", + "value": "Directory.Build.props", + }, + Object { + "path": "commits.*.modified.*", + "value": "Directory.Build.props", + }, + Object { + "path": "commits.*.added.*", + "value": "build.sbt", + }, + Object { + "path": "commits.*.modified.*", + "value": "build.sbt", + }, + Object { + "path": "commits.*.added.*", + "value": "yarn.lock", + }, + Object { + "path": "commits.*.modified.*", + "value": "yarn.lock", + }, + Object { + "path": "commits.*.added.*", + "value": ".snyk", + }, + Object { + "path": "commits.*.modified.*", + "value": ".snyk", + }, + Object { + "path": "commits.*.added.*", + "value": "packages.config", + }, + Object { + "path": "commits.*.modified.*", + "value": "packages.config", + }, + Object { + "path": "commits.*.added.*", + "value": "*.csproj", + }, + Object { + "path": "commits.*.modified.*", + "value": "*.csproj", + }, + Object { + "path": "commits.*.added.*", + "value": "*.vbproj", + }, + Object { + "path": "commits.*.modified.*", + "value": "*.vbproj", + }, + Object { + "path": "commits.*.added.*", + "value": "*.fsproj", + }, + Object { + "path": "commits.*.modified.*", + "value": "*.fsproj", + }, + Object { + "path": "commits.*.added.*", + "value": "project.json", + }, + Object { + "path": "commits.*.modified.*", + "value": "project.json", + }, + Object { + "path": "commits.*.added.*", + "value": "Gopkg.toml", + }, + Object { + "path": "commits.*.modified.*", + "value": "Gopkg.toml", + }, + Object { + "path": "commits.*.added.*", + "value": "Gopkg.lock", + }, + Object { + "path": "commits.*.modified.*", + "value": "Gopkg.lock", + }, + Object { + "path": "commits.*.added.*", + "value": "vendor.json", + }, + Object { + "path": "commits.*.modified.*", + "value": "vendor.json", + }, + Object { + "path": "commits.*.added.*", + "value": "composer.lock", + }, + Object { + "path": "commits.*.modified.*", + "value": "composer.lock", + }, + Object { + "path": "commits.*.added.*", + "value": "composer.json", + }, + Object { + "path": "commits.*.modified.*", + "value": "composer.json", + }, + Object { + "path": "commits.*.added.*", + "value": "project.assets.json", + }, + Object { + "path": "commits.*.modified.*", + "value": "project.assets.json", + }, + Object { + "path": "commits.*.added.*", + "value": "Podfile", + }, + Object { + "path": "commits.*.modified.*", + "value": "Podfile", + }, + Object { + "path": "commits.*.added.*", + "value": "Podfile.lock", + }, + Object { + "path": "commits.*.modified.*", + "value": "Podfile.lock", + }, + Object { + "path": "commits.*.added.*", + "value": "go.mod", + }, + Object { + "path": "commits.*.modified.*", + "value": "go.mod", + }, + Object { + "path": "commits.*.added.*", + "value": "go.sum", + }, + Object { + "path": "commits.*.modified.*", + "value": "go.sum", + }, + ], }, Object { - "//": "used to determine the full dependency tree", + "//": "used for pushing up webhooks from github", + "method": "POST", + "path": "/webhook/github/:webhookId", + }, + ], +} +`; + +exports[`filter Rules Loading Injection of valid CODE rules and IAC extensions (yaml only) - Testing gitlab 1`] = ` +Object { + "private": Array [ + Object { + "//": "identify user", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/Packages.props", + "origin": "https://\${GITLAB}", + "path": "/api/v4/user", }, Object { - "//": "used to determine the full dependency tree", + "//": "list the user's projects", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2FPackages.props", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects", }, Object { - "//": "used to determine the full dependency tree", + "//": "list the user's projects", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Directory.Build.props", + "origin": "https://\${GITLAB}", + "path": "/api/v3/projects", }, Object { - "//": "used to determine the full dependency tree", + "//": "list the user's visible projects", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FDirectory.Build.props", + "origin": "https://\${GITLAB}", + "path": "/api/v3/projects/visible", }, Object { - "//": "used to determine the full dependency tree", + "//": "get a user's project", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/Directory.Build.props", + "origin": "https://\${GITLAB}", + "path": "/api/v3/projects/:project", }, Object { - "//": "used to determine the full dependency tree", + "//": "get a user's project", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2FDirectory.Build.props", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project", }, Object { - "//": "used to determine the full dependency tree", + "//": "used to search all manifest files", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Directory.Build.targets", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/tree", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FDirectory.Build.targets", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/package.json", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/Directory.Build.targets", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpackage.json", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2FDirectory.Build.targets", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/package-lock.json", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/build.sbt", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpackage-lock.json", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fbuild.sbt", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Gemfile.lock", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/build.sbt", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FGemfile.lock", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fbuild.sbt", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Gemfile", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/packages.config", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FGemfile", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fpackages.config", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/pom.xml", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/packages.config", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpom.xml", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fpackages.config", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*req*.txt", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/*.csproj", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*req*.txt", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2F*.csproj", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/requirements/*.txt", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/*.csproj", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Frequirements%2F*.txt", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2F*.csproj", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/pyproject.toml", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/*.fsproj", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpyproject.toml", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2F*.fsproj", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/poetry.lock", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/*.fsproj", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpoetry.lock", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2F*.fsproj", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Pipfile", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/*.vbproj", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FPipfile", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2F*.vbproj", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Pipfile.lock", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/*.vbproj", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FPipfile.lock", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2F*.vbproj", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/yarn.lock", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/project.json", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fyarn.lock", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fproject.json", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/build.gradle", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/project.json", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fbuild.gradle", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fproject.json", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/gradle.lockfile", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Gopkg.toml", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fgradle.lockfile", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FGopkg.toml", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/gradle.properties", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/Gopkg.toml", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fgradle.properties", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2FGopkg.toml", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Directory.Build.targets", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Gopkg.lock", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FDirectory.Build.targets", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FGopkg.lock", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Directory.Build.props", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/Gopkg.lock", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FDirectory.Build.props", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2FGopkg.lock", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Packages.props", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/vendor.json", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FPackages.props", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fvendor.json", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/build.sbt", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/vendor.json", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fbuild.sbt", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fvendor.json", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/packages.config", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/composer.lock", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpackages.config", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fcomposer.lock", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*.csproj", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/composer.lock", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*.csproj", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fcomposer.lock", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*.vbproj", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/composer.json", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*.vbproj", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fcomposer.json", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*.fsproj", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/composer.json", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*.fsproj", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fcomposer.json", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/project.json", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/project.assets.json", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fproject.json", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fproject.assets.json", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Gopkg.toml", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/project.assets.json", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FGopkg.toml", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fproject.assets.json", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Gopkg.lock", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Podfile", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FGopkg.lock", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FPodfile", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/vendor.json", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Podfile.lock", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fvendor.json", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FPodfile.lock", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/composer.lock", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/Podfile", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fcomposer.lock", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2FPodfile", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/composer.json", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/Podfile.lock", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fcomposer.json", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2FPodfile.lock", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/project.assets.json", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/go.mod", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fproject.assets.json", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fgo.mod", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Podfile", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/go.mod", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FPodfile", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fgo.mod", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Podfile.lock", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/go.sum", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FPodfile.lock", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fgo.sum", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/go.mod", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/go.sum", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fgo.mod", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fgo.sum", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/go.sum", }, Object { - "//": "used to scan Dockerfile", + "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/*Dockerfile*", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fgo.sum", }, Object { "//": "used to scan Dockerfile", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2F*Dockerfile*", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*Dockerfile*", }, Object { "//": "used to scan Dockerfile", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/*Dockerfile*", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*Dockerfile*", }, Object { - "//": "used to scan Dockerfile", + "//": "used to check if there's any ignore rules or existing patches", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2F*Dockerfile*", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/.snyk", }, Object { "//": "used to check if there's any ignore rules or existing patches", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/.snyk", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F.snyk", }, Object { - "//": "used to check if there's any ignore rules or existing patches", + "//": "used to determine the full dependency tree for v3 protocol", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2F.snyk", + "origin": "https://\${GITLAB}", + "path": "/api/v3/projects/:project/repository/files", + "valid": Array [ + Object { + "queryParam": "file_path", + "values": Array [ + "**/package.json", + "**%2Fpackage.json", + "**/yarn.lock", + "**%2Fyarn.lock", + "**/package-lock.json", + "**%2Fpackage-lock.json", + "**/Gemfile", + "**%2FGemfile", + "**/Gemfile.lock", + "**%2FGemfile.lock", + "**/pom.xml", + "**%2Fpom.xml", + "**/*req*.txt", + "**%2F*req*.txt", + "**/requirements/*.txt", + "**%2Frequirements%2F*.txt", + "**/pyproject.toml", + "**%2Fpyproject.toml", + "**/poetry.lock", + "**%2Fpoetry.lock", + "**/build.gradle", + "**%2Fbuild.gradle", + "**/gradle.lockfile", + "**%2Fgradle.lockfile", + "**/build.sbt", + "**%2Fbuild.sbt", + "**/.snyk", + "**%2F.snyk", + "**/packages.config", + "**%2Fpackages.config", + "**/*.csproj", + "**%2F*.csproj", + "**/*.vbproj", + "**%2F*.vbproj", + "**/*.fsproj", + "**%2F*.fsproj", + "**/project.json", + "**%2Fproject.json", + "**/Gopkg.toml", + "**%2FGopkg.toml", + "**/Gopkg.lock", + "**%2FGopkg.lock", + "**/vendor.json", + "**%2Fvendor.json", + "**/composer.lock", + "**%2Fcomposer.lock", + "**/composer.json", + "**%2Fcomposer.json", + "**/project.assets.json", + "**%2Fproject.assets.json", + "**/Podfile", + "**%2FPodfile", + "**/Podfile.lock", + "**%2FPodfile.lock", + "**/go.mod", + "**%2Fgo.mod", + "**/go.sum", + "**%2Fgo.sum", + ], + }, + ], }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/.snyk", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/package.json", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2F.snyk", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpackage.json", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/package.json", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/package-lock.json", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fpackage.json", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpackage-lock.json", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/package.json", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Gemfile.lock", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fpackage.json", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FGemfile.lock", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/package-lock.json", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Gemfile", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fpackage-lock.json", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FGemfile", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/package-lock.json", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/pom.xml", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fpackage-lock.json", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpom.xml", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Gemfile.lock", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*req*.txt", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FGemfile.lock", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*req*.txt", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/Gemfile.lock", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/pyproject.toml", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2FGemfile.lock", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpyproject.toml", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Gemfile", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/poetry.lock", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FGemfile", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpoetry.lock", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/Gemfile", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/yarn.lock", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2FGemfile", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fyarn.lock", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/pom.xml", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/build.gradle", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fpom.xml", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fbuild.gradle", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/pom.xml", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/gradle.lockfile", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fpom.xml", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fgradle.lockfile", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/*req*.txt", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/gradle.properties", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2F*req*.txt", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fgradle.properties", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/*req*.txt", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Directory.Build.targets", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2F*req*.txt", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FDirectory.Build.targets", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/pyproject.toml", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Directory.Build.props", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fpyproject.toml", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FDirectory.Build.props", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/pyproject.toml", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Packages.props", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fpyproject.toml", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FPackages.props", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/poetry.lock", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/build.sbt", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fpoetry.lock", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fbuild.sbt", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/poetry.lock", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/packages.config", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fpoetry.lock", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpackages.config", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/yarn.lock", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*.csproj", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fyarn.lock", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*.csproj", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/yarn.lock", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*.vbproj", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fyarn.lock", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*.vbproj", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/build.gradle", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*.fsproj", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fbuild.gradle", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*.fsproj", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/build.gradle", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/project.json", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fbuild.gradle", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fproject.json", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/gradle.lockfile", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Gopkg.toml", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fgradle.lockfile", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FGopkg.toml", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/gradle.lockfile", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Gopkg.lock", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fgradle.lockfile", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FGopkg.lock", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/gradle.properties", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/vendor.json", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fgradle.properties", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fvendor.json", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/gradle.properties", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/composer.lock", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fgradle.properties", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fcomposer.lock", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Packages.props", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/composer.json", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FPackages.props", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fcomposer.json", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/Packages.props", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/project.assets.json", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2FPackages.props", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fproject.assets.json", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Directory.Build.props", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Podfile", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FDirectory.Build.props", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FPodfile", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/Directory.Build.props", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Podfile.lock", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2FDirectory.Build.props", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FPodfile.lock", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Directory.Build.targets", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/go.mod", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FDirectory.Build.targets", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fgo.mod", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/Directory.Build.targets", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/go.sum", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2FDirectory.Build.targets", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fgo.sum", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/build.sbt", + "//": "used to create Dockerfile", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*Dockerfile*", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fbuild.sbt", + "//": "used to create Dockerfile", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*Dockerfile*", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/build.sbt", + "//": "used to create ignore rules or patches", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/.snyk", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fbuild.sbt", + "//": "used to create ignore rules or patches", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F.snyk", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/packages.config", + "//": "used to create manifest file for v3 protocol", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v3/projects/:project/repository/files", + "valid": Array [ + Object { + "queryParam": "file_path", + "values": Array [ + "**/package.json", + "**%2Fpackage.json", + "**/yarn.lock", + "**%2Fyarn.lock", + "**/package-lock.json", + "**%2Fpackage-lock.json", + "**/Gemfile", + "**%2FGemfile", + "**/Gemfile.lock", + "**%2FGemfile.lock", + "**/pom.xml", + "**%2Fpom.xml", + "**/*req*.txt", + "**%2F*req*.txt", + "**/pyproject.toml", + "**%2Fpyproject.toml", + "**/poetry.lock", + "**%2Fpoetry.lock", + "**/build.gradle", + "**%2Fbuild.gradle", + "**/gradle.lockfile", + "**%2Fgradle.lockfile", + "**/build.sbt", + "**%2Fbuild.sbt", + "**/.snyk", + "**%2F.snyk", + "**/packages.config", + "**%2Fpackages.config", + "**/*.csproj", + "**%2F*.csproj", + "**/*.vbproj", + "**%2F*.vbproj", + "**/*.fsproj", + "**%2F*.fsproj", + "**/project.json", + "**%2Fproject.json", + "**/Gopkg.toml", + "**%2FGopkg.toml", + "**/Gopkg.lock", + "**%2FGopkg.lock", + "**/vendor.json", + "**%2Fvendor.json", + "**/composer.lock", + "**%2Fcomposer.lock", + "**/composer.json", + "**%2Fcomposer.json", + "**/project.assets.json", + "**%2Fproject.assets.json", + "**/Podfile", + "**%2FPodfile", + "**/Podfile.lock", + "**%2FPodfile.lock", + "**/go.mod", + "**%2Fgo.mod", + "**/go.sum", + "**%2Fgo.sum", + ], + }, + ], }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fpackages.config", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/package.json", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/packages.config", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpackage.json", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fpackages.config", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/package-lock.json", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/*.csproj", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpackage-lock.json", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2F*.csproj", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Gemfile.lock", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/*.csproj", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FGemfile.lock", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2F*.csproj", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Gemfile", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/*.fsproj", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FGemfile", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2F*.fsproj", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/pom.xml", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/*.fsproj", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpom.xml", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2F*.fsproj", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*req*.txt", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/*.vbproj", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*req*.txt", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2F*.vbproj", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/pyproject.toml", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/*.vbproj", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpyproject.toml", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2F*.vbproj", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/poetry.lock", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/project.json", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpoetry.lock", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fproject.json", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/yarn.lock", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/project.json", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fyarn.lock", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fproject.json", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/build.gradle", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Gopkg.toml", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fbuild.gradle", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FGopkg.toml", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/gradle.lockfile", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/Gopkg.toml", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fgradle.lockfile", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2FGopkg.toml", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/gradle.properties", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Gopkg.lock", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fgradle.properties", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FGopkg.lock", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Directory.Build.targets", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/Gopkg.lock", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FDirectory.Build.targets", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2FGopkg.lock", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Directory.Build.props", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/vendor.json", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FDirectory.Build.props", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fvendor.json", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Packages.props", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/vendor.json", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FPackages.props", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fvendor.json", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/build.sbt", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/composer.lock", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fbuild.sbt", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fcomposer.lock", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/packages.config", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/composer.lock", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpackages.config", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fcomposer.lock", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*.csproj", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/composer.json", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*.csproj", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fcomposer.json", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*.vbproj", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/composer.json", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*.vbproj", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fcomposer.json", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*.fsproj", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/project.assets.json", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*.fsproj", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fproject.assets.json", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/project.json", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/project.assets.json", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fproject.json", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fproject.assets.json", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Gopkg.toml", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Podfile", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FGopkg.toml", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FPodfile", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Gopkg.lock", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Podfile.lock", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FGopkg.lock", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FPodfile.lock", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/vendor.json", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/Podfile", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fvendor.json", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2FPodfile", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/composer.lock", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/Podfile.lock", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fcomposer.lock", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2FPodfile.lock", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/composer.json", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/go.mod", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fcomposer.json", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fgo.mod", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/project.assets.json", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/go.mod", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fproject.assets.json", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fgo.mod", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Podfile", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/go.sum", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FPodfile", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fgo.sum", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Podfile.lock", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/go.sum", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FPodfile.lock", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fgo.sum", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/go.mod", }, Object { - "//": "used to update Dockerfile", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/*Dockerfile*", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fgo.mod", }, Object { - "//": "used to update Dockerfile", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2F*Dockerfile*", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/go.sum", }, Object { - "//": "used to update Dockerfile", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/*Dockerfile*", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fgo.sum", }, Object { "//": "used to update Dockerfile", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2F*Dockerfile*", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*Dockerfile*", }, Object { - "//": "used to write or update ignore rules or existing patches", + "//": "used to update Dockerfile", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/.snyk", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*Dockerfile*", }, Object { - "//": "used to write or update ignore rules or existing patches", + "//": "used to update ignore rules or existing patches", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2F.snyk", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/.snyk", }, Object { - "//": "get details of the repo", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo", + "//": "used to update ignore rules or existing patches", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F.snyk", }, Object { - "//": "get the details of the commit to determine its SHA", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/commits/:ref", + "//": "used to update manifest file for v3 protocol", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v3/projects/:project/repository/files", "valid": Array [ Object { - "header": "accept", + "queryParam": "file_path", "values": Array [ - "application/vnd.github.v4.sha", + "**/package.json", + "**%2Fpackage.json", + "**/yarn.lock", + "**%2Fyarn.lock", + "**/package-lock.json", + "**%2Fpackage-lock.json", + "**/Gemfile", + "**%2FGemfile", + "**/Gemfile.lock", + "**%2FGemfile.lock", + "**/pom.xml", + "**%2Fpom.xml", + "**/*req*.txt", + "**%2F*req*.txt", + "**/pyproject.toml", + "**%2Fpyproject.toml", + "**/poetry.lock", + "**%2Fpoetry.lock", + "**/build.gradle", + "**%2Fbuild.gradle", + "**/gradle.lockfile", + "**%2Fgradle.lockfile", + "**/build.sbt", + "**%2Fbuild.sbt", + "**/.snyk", + "**%2F.snyk", + "**/packages.config", + "**%2Fpackages.config", + "**/*.csproj", + "**%2F*.csproj", + "**/*.vbproj", + "**%2F*.vbproj", + "**/*.fsproj", + "**%2F*.fsproj", + "**/project.json", + "**%2Fproject.json", + "**/Gopkg.toml", + "**%2FGopkg.toml", + "**/Gopkg.lock", + "**%2FGopkg.lock", + "**/vendor.json", + "**%2Fvendor.json", + "**/composer.lock", + "**%2Fcomposer.lock", + "**/composer.json", + "**%2Fcomposer.json", + "**/project.assets.json", + "**%2Fproject.assets.json", + "**/Podfile", + "**%2FPodfile", + "**/Podfile.lock", + "**%2FPodfile.lock", + "**/go.mod", + "**%2Fgo.mod", + "**/go.sum", + "**%2Fgo.sum", ], }, ], }, Object { - "//": "get a list of all the refs to match find whether an existing PR is open", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/git/refs", + "//": "allow webhooks to be added, to allow commits to be checked by Snyk. Rules for what is sent to Snyk are controlled in the \`public\` accept filters", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/hooks", }, Object { - "//": "get the head commit of an individual ref", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/git/refs/heads/:ref", + "//": "allow webhooks to be deleted, used to cleanup when a user deactivates or deletes a project", + "method": "DELETE", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/hooks/:id", }, Object { - "//": "get the details of an individual ref", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/git/refs/:ref", + "//": "used to create commit status messages", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/statuses/:sha", }, Object { - "//": "compares two commits against each other", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/compare/:base...:head", + "//": "used to create branch for fix merge request", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/branches", }, Object { - "//": "search for open snyk pull requests", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/pulls", + "//": "used to create merge request for fix merge request", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/merge_requests", }, Object { - "//": "get pull request data for getting merge sha and tracking PR processing state", + "//": "used to fetch fix merge request information", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/pulls/:pull_number", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/merge_requests", }, Object { - "//": "get pull request file names", + "//": "list the user's groups", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/pulls/:pull_number/files", + "origin": "https://\${GITLAB}", + "path": "/api/v4/groups", }, Object { - "//": "create branches for new commits", - "method": "POST", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/git/refs", + "//": "list of projects in a group", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/groups/:id/projects", }, Object { - "//": "create the pull request", - "method": "POST", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/pulls", + "//": "get current user. so we'll be able to fetch it's projects", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/user", }, Object { - "//": "add pull request assignees", - "method": "POST", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/issues/:pull_number/assignees", + "//": "get user's projects", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/users/:user/projects", }, Object { - "//": "update ref", - "method": "PATCH", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/git/refs/:sha", + "//": "get all users. so we'll be able to fetch projects that admin can access", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/users", }, Object { - "//": "update ref head", - "method": "PATCH", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/git/refs/heads/:ref", + "//": "used to get repo's contributors list", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/commits", }, Object { - "//": "get list of all files in a repo", + "//": "get a specific commit identified by the commit hash or name of a branch or tag.", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/git/trees/:ref", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/commits/:sha", }, Object { - "//": "used to get repo's contributors list", + "//": "get merge base of two commits for given project.", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:owner/:repo/commits", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/merge_base", }, Object { "//": "used to redirect requests to snyk git client", @@ -23945,4903 +38959,4503 @@ Object { "origin": "\${GIT_CLIENT_URL}", "path": "/snykgit/*", }, - Object { - "//": "query graphql", - "method": "POST", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_GRAPHQL}", - "path": "/graphql", - }, Object { "//": "used to scan IAC files", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/*.yaml", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*.yaml", }, Object { "//": "used to scan IAC files", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2F*.yaml", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*.yaml", }, Object { "//": "allow info refs (for git clone)", "method": "GET", - "origin": "https://pat:\${GITHUB_TOKEN}@\${GITHUB}", + "origin": "https://oauth2:\${GITLAB_TOKEN}@\${GITLAB}", "path": "*/info/refs*", }, Object { "//": "allow git-upload-pack (for git clone)", "method": "POST", - "origin": "https://pat:\${GITHUB_TOKEN}@\${GITHUB}", - "path": "*/git-upload-pack", + "origin": "https://oauth2:\${GITLAB_TOKEN}@\${GITLAB}", + "path": "*/git-upload-pack", + }, + Object { + "//": "needed to load code snippets", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files/:path", + }, + ], + "public": Array [ + Object { + "//": "used for pushing up webhooks from gitlab", + "method": "POST", + "path": "/webhook/gitlab/:webhookId", + }, + ], +} +`; + +exports[`filter Rules Loading Injection of valid Git rules - Testing azure-repos 1`] = ` +Object { + "private": Array [ + Object { + "//": "get list of projects for given organisation", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/_apis/projects", + }, + Object { + "//": "get specific repository for given organisation", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo", + }, + Object { + "//": "get list of repositories for given organisation", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories", + }, + Object { + "//": "get list of refs", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/refs", + }, + Object { + "//": "search through repositories of given organisation", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "_apis/git/repositories", + }, + Object { + "//": "create hook", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "POST", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/_apis/hooks/subscriptions", }, Object { - "//": "needed to load code snippets", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path", + "//": "delete hook", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "DELETE", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/_apis/hooks/subscriptions/:subscriptionId", }, - ], - "public": Array [ Object { - "//": "used for pushing up webhooks from github", - "method": "POST", - "path": "/webhook/github", + "//": "get file content. restrict by file types", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/items", "valid": Array [ Object { - "//": "accept all pull request state changes (these don't have files in them)", - "path": "pull_request.state", - "value": "open", - }, - Object { - "path": "commits.*.added.*", - "value": "package.json", - }, - Object { - "path": "commits.*.modified.*", - "value": "package.json", - }, - Object { - "path": "commits.*.added.*", - "value": "package-lock.json", - }, - Object { - "path": "commits.*.modified.*", - "value": "package-lock.json", - }, - Object { - "path": "commits.*.added.*", - "value": "Gemfile.lock", - }, - Object { - "path": "commits.*.modified.*", - "value": "Gemfile.lock", - }, - Object { - "path": "commits.*.added.*", - "value": "*req*.txt", - }, - Object { - "path": "commits.*.modified.*", - "value": "*req*.txt", - }, - Object { - "path": "commits.*.added.*", - "value": "requirements%2F*.txt", - }, - Object { - "path": "commits.*.modified.*", - "value": "requirements%2F*.txt", - }, - Object { - "path": "commits.*.added.*", - "value": "requirements/*.txt", - }, - Object { - "path": "commits.*.modified.*", - "value": "requirements/*.txt", - }, - Object { - "path": "commits.*.added.*", - "value": "pyproject.toml", - }, - Object { - "path": "commits.*.modified.*", - "value": "pyproject.toml", - }, - Object { - "path": "commits.*.added.*", - "value": "poetry.lock", - }, - Object { - "path": "commits.*.modified.*", - "value": "poetry.lock", - }, - Object { - "path": "commits.*.added.*", - "value": "Pipfile", - }, - Object { - "path": "commits.*.modified.*", - "value": "Pipfile", - }, - Object { - "path": "commits.*.added.*", - "value": "Pipfile.lock", - }, - Object { - "path": "commits.*.modified.*", - "value": "Pipfile.lock", - }, - Object { - "path": "commits.*.added.*", - "value": "pom.xml", - }, - Object { - "path": "commits.*.modified.*", - "value": "pom.xml", - }, - Object { - "path": "commits.*.added.*", - "value": "build.gradle", - }, - Object { - "path": "commits.*.modified.*", - "value": "build.gradle", - }, - Object { - "path": "commits.*.added.*", - "value": "gradle.lockfile", - }, - Object { - "path": "commits.*.modified.*", - "value": "gradle.lockfile", - }, - Object { - "path": "commits.*.added.*", - "value": "gradle.properties", - }, - Object { - "path": "commits.*.modified.*", - "value": "gradle.properties", - }, - Object { - "path": "commits.*.added.*", - "value": "Packages.props", - }, - Object { - "path": "commits.*.modified.*", - "value": "Packages.props", - }, - Object { - "path": "commits.*.added.*", - "value": "Directory.Build.props", - }, - Object { - "path": "commits.*.modified.*", - "value": "Directory.Build.props", - }, - Object { - "path": "commits.*.added.*", - "value": "Directory.Build.targets", - }, - Object { - "path": "commits.*.modified.*", - "value": "Directory.Build.targets", - }, - Object { - "path": "commits.*.added.*", - "value": "build.sbt", - }, - Object { - "path": "commits.*.modified.*", - "value": "build.sbt", - }, - Object { - "path": "commits.*.added.*", - "value": "yarn.lock", - }, - Object { - "path": "commits.*.modified.*", - "value": "yarn.lock", - }, - Object { - "path": "commits.*.added.*", - "value": ".snyk", - }, - Object { - "path": "commits.*.modified.*", - "value": ".snyk", - }, - Object { - "path": "commits.*.added.*", - "value": "packages.config", - }, - Object { - "path": "commits.*.modified.*", - "value": "packages.config", - }, - Object { - "path": "commits.*.added.*", - "value": "*.csproj", - }, - Object { - "path": "commits.*.modified.*", - "value": "*.csproj", - }, - Object { - "path": "commits.*.added.*", - "value": "*.vbproj", - }, - Object { - "path": "commits.*.modified.*", - "value": "*.vbproj", - }, - Object { - "path": "commits.*.added.*", - "value": "*.fsproj", - }, - Object { - "path": "commits.*.modified.*", - "value": "*.fsproj", - }, - Object { - "path": "commits.*.added.*", - "value": "project.json", - }, - Object { - "path": "commits.*.modified.*", - "value": "project.json", - }, - Object { - "path": "commits.*.added.*", - "value": "Gopkg.toml", - }, - Object { - "path": "commits.*.modified.*", - "value": "Gopkg.toml", - }, - Object { - "path": "commits.*.added.*", - "value": "Gopkg.lock", - }, - Object { - "path": "commits.*.modified.*", - "value": "Gopkg.lock", - }, - Object { - "path": "commits.*.added.*", - "value": "vendor.json", - }, - Object { - "path": "commits.*.modified.*", - "value": "vendor.json", - }, - Object { - "path": "commits.*.added.*", - "value": "composer.lock", - }, - Object { - "path": "commits.*.modified.*", - "value": "composer.lock", - }, - Object { - "path": "commits.*.added.*", - "value": "composer.json", - }, - Object { - "path": "commits.*.modified.*", - "value": "composer.json", - }, - Object { - "path": "commits.*.added.*", - "value": "project.assets.json", + "queryParam": "path", + "values": Array [ + "**/package.json", + "**%2Fpackage.json", + "**/yarn.lock", + "**%2Fyarn.lock", + "**/package-lock.json", + "**%2Fpackage-lock.json", + "**/Gemfile", + "**%2FGemfile", + "**/Gemfile.lock", + "**%2FGemfile.lock", + "**/pom.xml", + "**%2Fpom.xml", + "**/*req*.txt", + "**%2F*req*.txt", + "**/requirements/*.txt", + "**%2Frequirements%2F*.txt", + "**/pyproject.toml", + "**%2Fpyproject.toml", + "**/poetry.lock", + "**%2Fpoetry.lock", + "**/Pipfile", + "**%2FPipfile", + "**/Pipfile.lock", + "**%2FPipfile.lock", + "**/build.gradle", + "**%2Fbuild.gradle", + "**/gradle.lockfile", + "**%2Fgradle.lockfile", + "**/build.sbt", + "**%2Fbuild.sbt", + "**/.snyk", + "**%2F.snyk", + "**/packages.config", + "**%2Fpackages.config", + "**/*.csproj", + "**%2F*.csproj", + "**/*.vbproj", + "**%2F*.vbproj", + "**/*.fsproj", + "**%2F*.fsproj", + "**/project.json", + "**%2Fproject.json", + "**/Gopkg.toml", + "**%2FGopkg.toml", + "**/Gopkg.lock", + "**%2FGopkg.lock", + "**/vendor.json", + "**%2Fvendor.json", + "**/composer.lock", + "**%2Fcomposer.lock", + "**/composer.json", + "**%2Fcomposer.json", + "**/project.assets.json", + "**%2Fproject.assets.json", + "**/Podfile", + "**%2FPodfile", + "**/Podfile.lock", + "**%2FPodfile.lock", + "**/go.mod", + "**%2Fgo.mod", + "**/go.sum", + "**%2Fgo.sum", + "**/*Dockerfile*", + "**%2F*Dockerfile*", + ], }, Object { - "path": "commits.*.modified.*", - "value": "project.assets.json", + "queryParam": "recursionLevel", + "values": Array [ + "none", + ], }, Object { - "path": "commits.*.added.*", - "value": "Podfile", + "queryParam": "download", + "values": Array [ + "true", + ], }, Object { - "path": "commits.*.modified.*", - "value": "Podfile", + "queryParam": "includeContent", + "values": Array [ + "true", + ], }, + ], + }, + Object { + "//": "check file existence. restrict by file types", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/items", + "valid": Array [ Object { - "path": "commits.*.added.*", - "value": "Podfile.lock", + "queryParam": "path", + "values": Array [ + "**/package.json", + "**%2Fpackage.json", + "**/yarn.lock", + "**%2Fyarn.lock", + "**/package-lock.json", + "**%2Fpackage-lock.json", + "**/Gemfile", + "**%2FGemfile", + "**/Gemfile.lock", + "**%2FGemfile.lock", + "**/pom.xml", + "**%2Fpom.xml", + "**/*req*.txt", + "**%2F*req*.txt", + "**/requirements/*.txt", + "**%2Frequirements%2F*.txt", + "**/pyproject.toml", + "**%2Fpyproject.toml", + "**/poetry.lock", + "**%2Fpoetry.lock", + "**/Pipfile", + "**%2FPipfile", + "**/Pipfile.lock", + "**%2FPipfile.lock", + "**/build.gradle", + "**%2Fbuild.gradle", + "**/gradle.lockfile", + "**%2Fgradle.lockfile", + "**/build.sbt", + "**%2Fbuild.sbt", + "**/.snyk", + "**%2F.snyk", + "**/packages.config", + "**%2Fpackages.config", + "**/*.csproj", + "**%2F*.csproj", + "**/*.vbproj", + "**%2F*.vbproj", + "**/*.fsproj", + "**%2F*.fsproj", + "**/project.json", + "**%2Fproject.json", + "**/Gopkg.toml", + "**%2FGopkg.toml", + "**/Gopkg.lock", + "**%2FGopkg.lock", + "**/vendor.json", + "**%2Fvendor.json", + "**/composer.lock", + "**%2Fcomposer.lock", + "**/composer.json", + "**%2Fcomposer.json", + "**/project.assets.json", + "**%2Fproject.assets.json", + "**/Podfile", + "**%2FPodfile", + "**/Podfile.lock", + "**%2FPodfile.lock", + "**/go.mod", + "**%2Fgo.mod", + "**/go.sum", + "**%2Fgo.sum", + "**/*Dockerfile*", + "**%2F*Dockerfile*", + ], }, Object { - "path": "commits.*.modified.*", - "value": "Podfile.lock", + "queryParam": "versionDescriptor.versionType", + "values": Array [ + "branch", + ], }, Object { - "path": "commits.*.added.*", - "value": "go.mod", + "queryParam": "includeContentMetadata", + "values": Array [ + "true", + ], }, + ], + }, + Object { + "//": "get list of files for given repository", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/items", + "valid": Array [ Object { - "path": "commits.*.modified.*", - "value": "go.mod", + "queryParam": "recursionLevel", + "values": Array [ + "full", + ], }, Object { - "path": "commits.*.added.*", - "value": "go.sum", + "queryParam": "download", + "values": Array [ + "false", + ], }, Object { - "path": "commits.*.modified.*", - "value": "go.sum", + "queryParam": "includeContent", + "values": Array [ + "false", + ], }, ], }, Object { - "//": "used for pushing up webhooks from github", - "method": "POST", - "path": "/webhook/github/:webhookId", + "//": "get list of commits for given repository", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/commits", }, - ], -} -`; - -exports[`filter Rules Loading Injection of valid CODE rules and IAC extensions (yaml only) - Testing github-enterprise 1`] = ` -Object { - "private": Array [ Object { - "//": "search for user's repos", + "//": "get merge base of two commits for given repository", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/search/repositories", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/commits/:commitId/mergebases", }, Object { - "//": "list the user's info, and validate their credentials", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/user", + "//": "update status of given commit", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "POST", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/commits/:commitId/statuses", }, Object { - "//": "list the user's orgs", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/user/orgs", + "//": "update status of given pull request", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "POST", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/pullRequests/:pullRef/statuses", }, Object { - "//": "list the logged in user's repos", + "//": "find PR for given repository", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/user/repos", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/pullrequests", }, Object { - "//": "list a user's repos", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/users/:username/repos", + "//": "create new PR in given repository", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "POST", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/pullrequests", }, Object { - "//": "list an orgs's repos", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/orgs/:username/repos", + "//": "update existing PR in given repository", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "PATCH", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/pullrequests/:pullRef", }, Object { - "//": "get a user's repo", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:user/:repo", + "//": "push new commit in given repository", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "POST", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/pushes", }, Object { - "//": "rate limit check", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/rate_limit", + "//": "used to redirect requests to snyk git client", + "method": "any", + "origin": "\${GIT_CLIENT_URL}", + "path": "/snykgit/*", }, Object { - "//": "allow meta lookup on the api version", + "//": "allow info refs (for git clone)", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "*/info/refs*", }, Object { - "//": "allow webhooks to be added, to allow commits to be checked by Snyk. Rules for what is sent to Snyk are controlled in the \`public\` accept filters", + "//": "allow git-upload-pack (for git clone)", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, "method": "POST", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:user/:repo/hooks", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "*/git-upload-pack", }, Object { - "//": "allow webhooks to be deleted, used to cleanup when a user deactivates or deletes a project", - "method": "DELETE", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:owner/:repo/hooks/:id", + "//": "needed to load code snippets", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/items", }, + ], + "public": Array [ Object { - "//": "used to create commit status messages", + "//": "used for pushing up webhooks from Azure", "method": "POST", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:user/:repo/statuses/:sha", + "path": "/webhook/azure-repos/:webhookId", }, + ], +} +`; + +exports[`filter Rules Loading Injection of valid Git rules - Testing bitbucket-server 1`] = ` +Object { + "private": Array [ Object { - "//": "used to list branches on a repo", + "//": "list the user's projects", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:user/:repo/branches", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects", }, Object { - "//": "used to get branch info", + "//": "list the project's repos", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:user/:repo/branches/:branch", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:projectKey/repos", }, Object { - "//": "used to get status checks on a branch", + "//": "list the user's repos", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:user/:repo/branches/:branch/protection/required_status_checks/contexts", - }, - Object { - "//": "used to create status checks on a branch", - "method": "POST", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:user/:repo/branches/:branch/protection/required_status_checks/contexts", + "origin": "https://\${BITBUCKET_API}", + "path": "/repos", }, Object { - "//": "used to delete status checks on a branch", - "method": "DELETE", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:user/:repo/branches/:branch/protection/required_status_checks/contexts", + "//": "fetch a given repo", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo", }, Object { - "//": "check if repo is public", + "//": "read all file names to find manifests", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB}", - "path": "/:user/:repo", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/files/:searchPath?", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/package.json", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/package.json", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fpackage.json", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fpackage.json", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/package-lock.json", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/package-lock.json", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fpackage-lock.json", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fpackage-lock.json", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Gemfile.lock", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Gemfile.lock", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FGemfile.lock", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FGemfile.lock", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Gemfile", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Gemfile", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FGemfile", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FGemfile", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/pom.xml", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/pom.xml", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fpom.xml", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fpom.xml", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/*req*.txt", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/*req*.txt", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2F*req*.txt", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F*req*.txt", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/requirements/*.txt", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/requirements/*.txt", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Frequirements%2F*.txt", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Frequirements%2F*.txt", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/pyproject.toml", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/pyproject.toml", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fpyproject.toml", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fpyproject.toml", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/poetry.lock", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/poetry.lock", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fpoetry.lock", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fpoetry.lock", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/yarn.lock", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Pipfile", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fyarn.lock", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FPipfile", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/build.gradle", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Pipfile.lock", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fbuild.gradle", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FPipfile.lock", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/gradle.lockfile", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/yarn.lock", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fgradle.lockfile", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fyarn.lock", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/gradle.properties", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/build.gradle", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fgradle.properties", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fbuild.gradle", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Packages.props", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/gradle.lockfile", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FPackages.props", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fgradle.lockfile", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Directory.Build.props", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/gradle.properties", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FDirectory.Build.props", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fgradle.properties", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Directory.Build.targets", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Packages.props", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FDirectory.Build.targets", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FPackages.props", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/build.sbt", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Directory.Build.props", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fbuild.sbt", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FDirectory.Build.props", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/packages.config", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Directory.Build.targets", }, Object { "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fpackages.config", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FDirectory.Build.targets", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/*.csproj", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/build.sbt", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2F*.csproj", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fbuild.sbt", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/*.fsproj", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/packages.config", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2F*.fsproj", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fpackages.config", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/*.vbproj", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/*.csproj", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2F*.vbproj", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F*.csproj", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/project.json", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/*.vbproj", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fproject.json", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F*.vbproj", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Gopkg.toml", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/*.fsproj", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FGopkg.toml", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F*.fsproj", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Gopkg.lock", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/project.json", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FGopkg.lock", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fproject.json", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/vendor.json", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Gopkg.toml", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fvendor.json", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FGopkg.toml", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/composer.lock", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Gopkg.lock", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fcomposer.lock", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FGopkg.lock", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/composer.json", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/vendor.json", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fcomposer.json", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fvendor.json", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/project.assets.json", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/composer.lock", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fproject.assets.json", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fcomposer.lock", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Podfile", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/composer.json", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FPodfile", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fcomposer.json", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Podfile.lock", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/project.assets.json", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FPodfile.lock", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fproject.assets.json", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/go.mod", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Podfile", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fgo.mod", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FPodfile", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/go.mod", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Podfile.lock", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fgo.mod", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FPodfile.lock", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/go.sum", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/go.mod", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fgo.sum", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fgo.mod", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/go.sum", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/go.sum", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fgo.sum", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fgo.sum", }, Object { "//": "used to scan Dockerfile", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/*Dockerfile*", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/*Dockerfile*", }, Object { "//": "used to scan Dockerfile", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2F*Dockerfile*", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F*Dockerfile*", }, Object { - "//": "used to scan Dockerfile", + "//": "used to check if there's any ignore rules or existing patches", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/*Dockerfile*", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/.snyk", }, Object { - "//": "used to scan Dockerfile", + "//": "used to check if there's any ignore rules or existing patches", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2F*Dockerfile*", - }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/package.json", - }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fpackage.json", - }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/package-lock.json", - }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fpackage-lock.json", - }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Gemfile.lock", - }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FGemfile.lock", - }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Gemfile", - }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FGemfile", - }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/pom.xml", - }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fpom.xml", - }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/*req*.txt", - }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2F*req*.txt", - }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/pyproject.toml", - }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fpyproject.toml", - }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/poetry.lock", - }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fpoetry.lock", - }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/yarn.lock", - }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fyarn.lock", - }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/build.gradle", - }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fbuild.gradle", - }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/gradle.lockfile", - }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fgradle.lockfile", - }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/gradle.properties", - }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fgradle.properties", - }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Packages.props", - }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FPackages.props", - }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Directory.Build.props", - }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FDirectory.Build.props", - }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Directory.Build.targets", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F.snyk", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FDirectory.Build.targets", + "//": "get list of API capabilities", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/capabilities", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/build.sbt", + "//": "allow webhooks to be added, to allow commits to be checked by Snyk. Rules for what is sent to Snyk are controlled in the \`public\` accept filters", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "POST", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/webhooks", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fbuild.sbt", + "//": "allow webhooks to be deleted, used to cleanup when a user deactivates or deletes a project", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "DELETE", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/webhooks/:webhookId", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/packages.config", + "//": "used to create commit status messages", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "POST", + "origin": "https://\${BITBUCKET}", + "path": "/rest/build-status/1.0/commits/:sha", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fpackages.config", + "//": "used to create a new branch for fix PRs", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "POST", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/branches", }, Object { - "//": "used to update manifest or lock", + "//": "used to create or update a file for fix PRs", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/*.csproj", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/browse/*", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2F*.csproj", + "//": "used to create a pull request for fix PRs", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "POST", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/pull-requests", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/*.fsproj", + "//": "used to query for open pull requests by branch", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/pull-requests", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2F*.fsproj", + "//": "used to query for a merge-base for a pull request", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/pull-requests/:pullRequestId/changes", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/*.vbproj", + "//": "used to check for a repo's default branch", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/branches/default", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2F*.vbproj", + "//": "Used to get a branch specified by query string", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/branches:filterText?", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/project.json", + "//": "get a specific commit identified by the commit hash or name of a branch", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/commits/:sha", }, Object { - "//": "used to update manifest or lock", + "//": "used to create a Code Insights report", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fproject.json", + "origin": "https://\${BITBUCKET}", + "path": "/rest/insights/:apiVersion/projects/:project/repos/:repo/commits/:sha/reports/:report", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Gopkg.toml", + "//": "used to remove a Code Insights report", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "DELETE", + "origin": "https://\${BITBUCKET}", + "path": "/rest/insights/:apiVersion/projects/:project/repos/:repo/commits/:sha/reports/:report", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FGopkg.toml", + "//": "used to add Code Insights annotations to a report", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "POST", + "origin": "https://\${BITBUCKET}", + "path": "/rest/insights/:apiVersion/projects/:project/repos/:repo/commits/:sha/reports/:report/annotations", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Gopkg.lock", + "//": "get list of API capabilities for Code Insights", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/insights/:apiVersion/capabilities", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FGopkg.lock", + "//": "used to remove Code Insights annotations for a report", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "DELETE", + "origin": "https://\${BITBUCKET}", + "path": "/rest/insights/:apiVersion/projects/:project/repos/:repo/commits/:sha/reports/:report/annotations", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/vendor.json", + "//": "used to get current user. so we'll be able to fetch current user's repos, that are not part of any project.", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/application-properties", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fvendor.json", + "//": "used to get current user. so we'll be able to fetch current user's repos, that are not part of any project - this is using atlassian's SDK api.", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/plugins/servlet/applinks/whoami", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/composer.lock", + "//": "used to get the current user's project-like structure. So we'll be able to bind all user's private repos (that are not included in different project)", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:projectKey", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fcomposer.lock", + "//": "used to check if the user has admin or higher permissions", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/admin/permissions/users", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/composer.json", + "//": "used to get all the users. it's called only for admin permissioned user. to retrieve all the repos they can access", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/users", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fcomposer.json", + "//": "used to redirect requests to snyk git client", + "method": "any", + "origin": "\${GIT_CLIENT_URL}", + "path": "/snykgit/*", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/project.assets.json", + "//": "used to fetch a given repo from API", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fproject.assets.json", + "//": "used to get default reviewers for a pull request", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/default-reviewers/1.0/projects/:projectKey/repos/:repo/reviewers", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Podfile", + "//": "allow info refs (for git clone)", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "*/info/refs*", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FPodfile", + "//": "allow git-upload-pack (for git clone)", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "POST", + "origin": "https://\${BITBUCKET}", + "path": "*/git-upload-pack", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Podfile.lock", + "//": "needed to load code snippets", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/:file", }, + ], + "public": Array [ Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FPodfile.lock", + "//": "used for pushing up webhooks from bitbucket-server", + "method": "POST", + "path": "/webhook/bitbucket-server/:webhookId", }, + ], +} +`; + +exports[`filter Rules Loading Injection of valid Git rules - Testing bitbucket-server-bearer-auth 1`] = ` +Object { + "private": Array [ Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/go.mod", + "//": "list the user's projects", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fgo.mod", + "//": "list the project's repos", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:projectKey/repos", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/go.mod", + "//": "list the user's repos", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/repos", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fgo.mod", + "//": "fetch a given repo", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/go.sum", + "//": "read all file names to find manifests", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/files/:searchPath?", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fgo.sum", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/package.json", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/go.sum", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fpackage.json", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fgo.sum", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/package-lock.json", }, Object { - "//": "used to write or update ignore rules or existing patches", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/.snyk", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fpackage-lock.json", }, Object { - "//": "used to write or update ignore rules or existing patches", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2F.snyk", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Gemfile.lock", }, Object { - "//": "used to update Dockerfile", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/*Dockerfile*", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FGemfile.lock", }, Object { - "//": "used to update Dockerfile", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2F*Dockerfile*", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Gemfile", }, Object { - "//": "used to update Dockerfile", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/*Dockerfile*", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FGemfile", }, Object { - "//": "used to update Dockerfile", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2F*Dockerfile*", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/pom.xml", }, Object { - "//": "used to check if there's any ignore rules or existing patches", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/.snyk", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fpom.xml", }, Object { - "//": "used to check if there's any ignore rules or existing patches", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2F.snyk", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/*req*.txt", }, Object { - "//": "get details of the repo", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F*req*.txt", }, Object { - "//": "get the details of the commit to determine its SHA", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/commits/:ref", - "valid": Array [ - Object { - "header": "accept", - "values": Array [ - "application/vnd.github.v4.sha", - ], - }, - ], + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/requirements/*.txt", }, Object { - "//": "get a list of all the refs to match find whether an existing PR is open", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/git/refs", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Frequirements%2F*.txt", }, Object { - "//": "get the head commit of an individual ref", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/git/refs/heads/:ref", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/pyproject.toml", }, Object { - "//": "get the details of an individual ref", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/git/refs/:ref", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fpyproject.toml", }, Object { - "//": "compares two commits against each other", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/compare/:base...:head", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/poetry.lock", }, Object { - "//": "search for open snyk pull requests", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/pulls", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fpoetry.lock", }, Object { - "//": "get pull request data for getting merge sha and tracking PR processing state", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/pulls/:pull_number", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Pipfile", }, Object { - "//": "get pull request file names", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/pulls/:pull_number/files", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FPipfile", }, Object { - "//": "add commit data for new PR", - "method": "POST", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/git/refs", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Pipfile.lock", }, Object { - "//": "create the pull request", - "method": "POST", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/pulls", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FPipfile.lock", }, Object { - "//": "add pull request assignees", - "method": "POST", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/issues/:pull_number/assignees", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/yarn.lock", }, Object { - "//": "update ref", - "method": "PATCH", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/git/refs/:sha", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fyarn.lock", }, Object { - "//": "update ref head", - "method": "PATCH", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/git/refs/heads/:ref", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/build.gradle", }, Object { - "//": "get list of all files in a repo", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/git/trees/:ref", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fbuild.gradle", }, Object { - "//": "used to get repo's contributors list", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:owner/:repo/commits", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/gradle.lockfile", }, Object { - "//": "used to redirect requests to snyk git client", - "method": "any", - "origin": "\${GIT_CLIENT_URL}", - "path": "/snykgit/*", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fgradle.lockfile", }, Object { - "//": "query graphql", - "method": "POST", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_GRAPHQL}", - "path": "/graphql", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/gradle.properties", }, Object { - "//": "used to scan IAC files", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/*.yaml", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fgradle.properties", }, Object { - "//": "used to scan IAC files", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2F*.yaml", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Packages.props", }, Object { - "//": "allow info refs (for git clone)", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://pat:\${GITHUB_TOKEN}@\${GITHUB}", - "path": "*/info/refs*", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FPackages.props", }, Object { - "//": "allow git-upload-pack (for git clone)", - "method": "POST", - "origin": "https://pat:\${GITHUB_TOKEN}@\${GITHUB}", - "path": "*/git-upload-pack", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Directory.Build.props", }, Object { - "//": "needed to load code snippets", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FDirectory.Build.props", }, - ], - "public": Array [ Object { - "//": "used for pushing up webhooks from github", - "method": "POST", - "path": "/webhook/github", - "valid": Array [ - Object { - "//": "accept all pull request state changes (these don't have files in them)", - "path": "pull_request.state", - "value": "open", - }, - Object { - "path": "commits.*.added.*", - "value": "package.json", - }, - Object { - "path": "commits.*.modified.*", - "value": "package.json", - }, - Object { - "path": "commits.*.added.*", - "value": "package-lock.json", - }, - Object { - "path": "commits.*.modified.*", - "value": "package-lock.json", - }, - Object { - "path": "commits.*.added.*", - "value": "Gemfile.lock", - }, - Object { - "path": "commits.*.modified.*", - "value": "Gemfile.lock", - }, - Object { - "path": "commits.*.added.*", - "value": "*req*.txt", - }, - Object { - "path": "commits.*.modified.*", - "value": "*req*.txt", - }, - Object { - "path": "commits.*.added.*", - "value": "requirements%2F*.txt", - }, - Object { - "path": "commits.*.modified.*", - "value": "requirements%2F*.txt", - }, - Object { - "path": "commits.*.added.*", - "value": "requirements/*.txt", - }, - Object { - "path": "commits.*.modified.*", - "value": "requirements/*.txt", - }, - Object { - "path": "commits.*.added.*", - "value": "pyproject.toml", - }, - Object { - "path": "commits.*.modified.*", - "value": "pyproject.toml", - }, - Object { - "path": "commits.*.added.*", - "value": "poetry.lock", - }, - Object { - "path": "commits.*.modified.*", - "value": "poetry.lock", - }, - Object { - "path": "commits.*.added.*", - "value": "Pipfile", - }, - Object { - "path": "commits.*.modified.*", - "value": "Pipfile", - }, - Object { - "path": "commits.*.added.*", - "value": "Pipfile.lock", - }, - Object { - "path": "commits.*.modified.*", - "value": "Pipfile.lock", - }, - Object { - "path": "commits.*.added.*", - "value": "pom.xml", - }, - Object { - "path": "commits.*.modified.*", - "value": "pom.xml", - }, - Object { - "path": "commits.*.added.*", - "value": "build.gradle", - }, - Object { - "path": "commits.*.modified.*", - "value": "build.gradle", - }, - Object { - "path": "commits.*.added.*", - "value": "gradle.lockfile", - }, - Object { - "path": "commits.*.modified.*", - "value": "gradle.lockfile", - }, - Object { - "path": "commits.*.added.*", - "value": "gradle.properties", - }, - Object { - "path": "commits.*.modified.*", - "value": "gradle.properties", - }, - Object { - "path": "commits.*.added.*", - "value": "Directory.Build.targets", - }, - Object { - "path": "commits.*.modified.*", - "value": "Directory.Build.targets", - }, - Object { - "path": "commits.*.added.*", - "value": "Packages.props", - }, - Object { - "path": "commits.*.modified.*", - "value": "Packages.props", - }, - Object { - "path": "commits.*.added.*", - "value": "Directory.Build.props", - }, - Object { - "path": "commits.*.modified.*", - "value": "Directory.Build.props", - }, - Object { - "path": "commits.*.added.*", - "value": "build.sbt", - }, - Object { - "path": "commits.*.modified.*", - "value": "build.sbt", - }, - Object { - "path": "commits.*.added.*", - "value": "yarn.lock", - }, - Object { - "path": "commits.*.modified.*", - "value": "yarn.lock", - }, - Object { - "path": "commits.*.added.*", - "value": ".snyk", - }, - Object { - "path": "commits.*.modified.*", - "value": ".snyk", - }, - Object { - "path": "commits.*.added.*", - "value": "packages.config", - }, - Object { - "path": "commits.*.modified.*", - "value": "packages.config", - }, - Object { - "path": "commits.*.added.*", - "value": "*.csproj", - }, - Object { - "path": "commits.*.modified.*", - "value": "*.csproj", - }, - Object { - "path": "commits.*.added.*", - "value": "*.vbproj", - }, - Object { - "path": "commits.*.modified.*", - "value": "*.vbproj", - }, - Object { - "path": "commits.*.added.*", - "value": "*.fsproj", - }, - Object { - "path": "commits.*.modified.*", - "value": "*.fsproj", - }, - Object { - "path": "commits.*.added.*", - "value": "project.json", - }, - Object { - "path": "commits.*.modified.*", - "value": "project.json", - }, - Object { - "path": "commits.*.added.*", - "value": "Gopkg.toml", - }, - Object { - "path": "commits.*.modified.*", - "value": "Gopkg.toml", - }, - Object { - "path": "commits.*.added.*", - "value": "Gopkg.lock", - }, - Object { - "path": "commits.*.modified.*", - "value": "Gopkg.lock", - }, - Object { - "path": "commits.*.added.*", - "value": "vendor.json", - }, - Object { - "path": "commits.*.modified.*", - "value": "vendor.json", - }, - Object { - "path": "commits.*.added.*", - "value": "composer.lock", - }, - Object { - "path": "commits.*.modified.*", - "value": "composer.lock", - }, - Object { - "path": "commits.*.added.*", - "value": "composer.json", - }, - Object { - "path": "commits.*.modified.*", - "value": "composer.json", - }, - Object { - "path": "commits.*.added.*", - "value": "project.assets.json", - }, - Object { - "path": "commits.*.modified.*", - "value": "project.assets.json", - }, - Object { - "path": "commits.*.added.*", - "value": "Podfile", - }, - Object { - "path": "commits.*.modified.*", - "value": "Podfile", - }, - Object { - "path": "commits.*.added.*", - "value": "Podfile.lock", - }, - Object { - "path": "commits.*.modified.*", - "value": "Podfile.lock", - }, - Object { - "path": "commits.*.added.*", - "value": "go.mod", - }, - Object { - "path": "commits.*.modified.*", - "value": "go.mod", - }, - Object { - "path": "commits.*.added.*", - "value": "go.sum", - }, - Object { - "path": "commits.*.modified.*", - "value": "go.sum", - }, - ], + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Directory.Build.targets", }, Object { - "//": "used for pushing up webhooks from github", - "method": "POST", - "path": "/webhook/github/:webhookId", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FDirectory.Build.targets", }, - ], -} -`; - -exports[`filter Rules Loading Injection of valid CODE rules and IAC extensions (yaml only) - Testing gitlab 1`] = ` -Object { - "private": Array [ Object { - "//": "identify user", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/user", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/build.sbt", }, Object { - "//": "list the user's projects", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fbuild.sbt", }, Object { - "//": "list the user's projects", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v3/projects", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/packages.config", }, Object { - "//": "list the user's visible projects", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v3/projects/visible", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fpackages.config", }, Object { - "//": "get a user's project", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v3/projects/:project", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/*.csproj", }, Object { - "//": "get a user's project", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F*.csproj", }, Object { - "//": "used to search all manifest files", + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/tree", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/*.vbproj", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/package.json", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F*.vbproj", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fpackage.json", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/*.fsproj", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/package-lock.json", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F*.fsproj", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fpackage-lock.json", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/project.json", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Gemfile.lock", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fproject.json", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FGemfile.lock", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Gopkg.toml", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Gemfile", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FGopkg.toml", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FGemfile", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Gopkg.lock", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/pom.xml", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FGopkg.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/vendor.json", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fpom.xml", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fvendor.json", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/*req*.txt", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/composer.lock", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2F*req*.txt", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fcomposer.lock", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/requirements/*.txt", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/composer.json", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Frequirements%2F*.txt", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fcomposer.json", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/pyproject.toml", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/project.assets.json", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fpyproject.toml", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fproject.assets.json", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/poetry.lock", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Podfile", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fpoetry.lock", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FPodfile", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Pipfile", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Podfile.lock", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FPipfile", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FPodfile.lock", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Pipfile.lock", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/go.mod", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FPipfile.lock", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fgo.mod", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/yarn.lock", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/go.sum", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fgo.sum", + }, + Object { + "//": "used to scan Dockerfile", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/*Dockerfile*", + }, + Object { + "//": "used to scan Dockerfile", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F*Dockerfile*", + }, + Object { + "//": "used to check if there's any ignore rules or existing patches", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/.snyk", + }, + Object { + "//": "used to check if there's any ignore rules or existing patches", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F.snyk", + }, + Object { + "//": "get list of API capabilities", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/capabilities", + }, + Object { + "//": "allow webhooks to be added, to allow commits to be checked by Snyk. Rules for what is sent to Snyk are controlled in the \`public\` accept filters", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "POST", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/webhooks", + }, + Object { + "//": "allow webhooks to be deleted, used to cleanup when a user deactivates or deletes a project", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "DELETE", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/webhooks/:webhookId", + }, + Object { + "//": "used to create commit status messages", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "POST", + "origin": "https://\${BITBUCKET}", + "path": "/rest/build-status/1.0/commits/:sha", + }, + Object { + "//": "used to create a new branch for fix PRs", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "POST", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/branches", + }, + Object { + "//": "used to create or update a file for fix PRs", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "PUT", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/browse/*", + }, + Object { + "//": "used to create a pull request for fix PRs", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "POST", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/pull-requests", + }, + Object { + "//": "used to query for open pull requests by branch", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/pull-requests", + }, + Object { + "//": "used to query for a merge-base for a pull request", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/pull-requests/:pullRequestId/changes", + }, + Object { + "//": "used to check for a repo's default branch", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/branches/default", + }, + Object { + "//": "Used to get a branch specified by query string", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/branches:filterText?", + }, + Object { + "//": "get a specific commit identified by the commit hash or name of a branch", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/commits/:sha", + }, + Object { + "//": "used to create a Code Insights report", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "PUT", + "origin": "https://\${BITBUCKET}", + "path": "/rest/insights/:apiVersion/projects/:project/repos/:repo/commits/:sha/reports/:report", + }, + Object { + "//": "used to remove a Code Insights report", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "DELETE", + "origin": "https://\${BITBUCKET}", + "path": "/rest/insights/:apiVersion/projects/:project/repos/:repo/commits/:sha/reports/:report", + }, + Object { + "//": "used to add Code Insights annotations to a report", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "POST", + "origin": "https://\${BITBUCKET}", + "path": "/rest/insights/:apiVersion/projects/:project/repos/:repo/commits/:sha/reports/:report/annotations", + }, + Object { + "//": "get list of API capabilities for Code Insights", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/insights/:apiVersion/capabilities", + }, + Object { + "//": "used to remove Code Insights annotations for a report", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "DELETE", + "origin": "https://\${BITBUCKET}", + "path": "/rest/insights/:apiVersion/projects/:project/repos/:repo/commits/:sha/reports/:report/annotations", + }, + Object { + "//": "used to get current user. so we'll be able to fetch current user's repos, that are not part of any project.", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/application-properties", + }, + Object { + "//": "used to get current user. so we'll be able to fetch current user's repos, that are not part of any project - this is using atlassian's SDK api.", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/plugins/servlet/applinks/whoami", + }, + Object { + "//": "used to get the current user's project-like structure. So we'll be able to bind all user's private repos (that are not included in different project)", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:projectKey", + }, + Object { + "//": "used to check if the user has admin or higher permissions", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/admin/permissions/users", + }, + Object { + "//": "used to get all the users. it's called only for admin permissioned user. to retrieve all the repos they can access", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/users", + }, + Object { + "//": "used to redirect requests to snyk git client", + "method": "any", + "origin": "\${GIT_CLIENT_URL}", + "path": "/snykgit/*", + }, + Object { + "//": "used to fetch a given repo from API", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo", + }, + Object { + "//": "used to get default reviewers for a pull request", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/default-reviewers/1.0/projects/:projectKey/repos/:repo/reviewers", + }, + Object { + "//": "allow info refs (for git clone)", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "*/info/refs*", + }, + Object { + "//": "allow git-upload-pack (for git clone)", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "POST", + "origin": "https://\${BITBUCKET}", + "path": "*/git-upload-pack", + }, + Object { + "//": "needed to load code snippets", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/:file", + }, + ], + "public": Array [ + Object { + "//": "used for pushing up webhooks from bitbucket-server", + "method": "POST", + "path": "/webhook/bitbucket-server/:webhookId", + }, + ], +} +`; + +exports[`filter Rules Loading Injection of valid Git rules - Testing github 1`] = ` +Object { + "private": Array [ + Object { + "//": "search for user's repos", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/search/repositories", + }, + Object { + "//": "list the user's info, and validate their credentials", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/user", + }, + Object { + "//": "list the user's orgs", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/user/orgs", }, Object { - "//": "used to determine the full dependency tree", + "//": "list the logged in user's repos", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fyarn.lock", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/user/repos", }, Object { - "//": "used to determine the full dependency tree", + "//": "list a user's repos", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/build.gradle", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/users/:username/repos", }, Object { - "//": "used to determine the full dependency tree", + "//": "list an orgs's repos", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fbuild.gradle", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/orgs/:username/repos", }, Object { - "//": "used to determine the full dependency tree", + "//": "get a user's repo", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/gradle.lockfile", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:user/:repo", }, Object { - "//": "used to determine the full dependency tree", + "//": "rate limit check", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fgradle.lockfile", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/rate_limit", }, Object { - "//": "used to determine the full dependency tree", + "//": "allow meta lookup on the api version", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/gradle.properties", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fgradle.properties", + "//": "allow webhooks to be added, to allow commits to be checked by Snyk. Rules for what is sent to Snyk are controlled in the \`public\` accept filters", + "method": "POST", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:user/:repo/hooks", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Directory.Build.targets", + "//": "allow webhooks to be deleted, used to cleanup when a user deactivates or deletes a project", + "method": "DELETE", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:owner/:repo/hooks/:id", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FDirectory.Build.targets", + "//": "used to create commit status messages", + "method": "POST", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:user/:repo/statuses/:sha", }, Object { - "//": "used to determine the full dependency tree", + "//": "used to list branches on a repo", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Directory.Build.props", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:user/:repo/branches", }, Object { - "//": "used to determine the full dependency tree", + "//": "used to get branch info", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FDirectory.Build.props", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:user/:repo/branches/:branch", }, Object { - "//": "used to determine the full dependency tree", + "//": "used to get status checks on a branch", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Packages.props", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:user/:repo/branches/:branch/protection/required_status_checks/contexts", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FPackages.props", + "//": "used to create status checks on a branch", + "method": "POST", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:user/:repo/branches/:branch/protection/required_status_checks/contexts", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/build.sbt", + "//": "used to delete status checks on a branch", + "method": "DELETE", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:user/:repo/branches/:branch/protection/required_status_checks/contexts", }, Object { - "//": "used to determine the full dependency tree", + "//": "check if repo is public", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fbuild.sbt", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB}", + "path": "/:user/:repo", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/packages.config", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/package.json", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fpackages.config", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpackage.json", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/*.csproj", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/package.json", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2F*.csproj", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fpackage.json", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/*.vbproj", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/package-lock.json", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2F*.vbproj", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpackage-lock.json", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/*.fsproj", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/package-lock.json", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2F*.fsproj", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fpackage-lock.json", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/project.json", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Gemfile.lock", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fproject.json", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FGemfile.lock", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Gopkg.toml", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Gemfile.lock", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FGopkg.toml", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FGemfile.lock", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Gopkg.lock", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Gemfile", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FGopkg.lock", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FGemfile", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/vendor.json", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Gemfile", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fvendor.json", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FGemfile", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/composer.lock", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/pom.xml", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fcomposer.lock", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpom.xml", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/composer.json", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/pom.xml", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fcomposer.json", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fpom.xml", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/project.assets.json", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*req*.txt", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fproject.assets.json", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*req*.txt", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Podfile", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/*req*.txt", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FPodfile", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2F*req*.txt", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Podfile.lock", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/requirements/*.txt", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FPodfile.lock", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Frequirements%2F*.txt", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/go.mod", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/requirements/*.txt", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fgo.mod", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Frequirements%2F*.txt", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/go.sum", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/pyproject.toml", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fgo.sum", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpyproject.toml", }, Object { - "//": "used to scan Dockerfile", + "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/*Dockerfile*", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/pyproject.toml", }, Object { - "//": "used to scan Dockerfile", + "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2F*Dockerfile*", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fpyproject.toml", }, Object { - "//": "used to check if there's any ignore rules or existing patches", + "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/.snyk", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/poetry.lock", }, Object { - "//": "used to check if there's any ignore rules or existing patches", + "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2F.snyk", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpoetry.lock", }, Object { - "//": "used to determine the full dependency tree for v3 protocol", + "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v3/projects/:project/repository/files", - "valid": Array [ - Object { - "queryParam": "file_path", - "values": Array [ - "**/package.json", - "**%2Fpackage.json", - "**/yarn.lock", - "**%2Fyarn.lock", - "**/package-lock.json", - "**%2Fpackage-lock.json", - "**/Gemfile", - "**%2FGemfile", - "**/Gemfile.lock", - "**%2FGemfile.lock", - "**/pom.xml", - "**%2Fpom.xml", - "**/*req*.txt", - "**%2F*req*.txt", - "**/requirements/*.txt", - "**%2Frequirements%2F*.txt", - "**/pyproject.toml", - "**%2Fpyproject.toml", - "**/poetry.lock", - "**%2Fpoetry.lock", - "**/build.gradle", - "**%2Fbuild.gradle", - "**/gradle.lockfile", - "**%2Fgradle.lockfile", - "**/build.sbt", - "**%2Fbuild.sbt", - "**/.snyk", - "**%2F.snyk", - "**/packages.config", - "**%2Fpackages.config", - "**/*.csproj", - "**%2F*.csproj", - "**/*.vbproj", - "**%2F*.vbproj", - "**/*.fsproj", - "**%2F*.fsproj", - "**/project.json", - "**%2Fproject.json", - "**/Gopkg.toml", - "**%2FGopkg.toml", - "**/Gopkg.lock", - "**%2FGopkg.lock", - "**/vendor.json", - "**%2Fvendor.json", - "**/composer.lock", - "**%2Fcomposer.lock", - "**/composer.json", - "**%2Fcomposer.json", - "**/project.assets.json", - "**%2Fproject.assets.json", - "**/Podfile", - "**%2FPodfile", - "**/Podfile.lock", - "**%2FPodfile.lock", - "**/go.mod", - "**%2Fgo.mod", - "**/go.sum", - "**%2Fgo.sum", - ], - }, - ], - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/package.json", - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fpackage.json", - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/package-lock.json", - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fpackage-lock.json", - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Gemfile.lock", - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FGemfile.lock", - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Gemfile", - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FGemfile", - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/pom.xml", - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fpom.xml", - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/*req*.txt", - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2F*req*.txt", - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/pyproject.toml", - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fpyproject.toml", - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/poetry.lock", - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fpoetry.lock", - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/yarn.lock", - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fyarn.lock", - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/build.gradle", - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fbuild.gradle", - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/gradle.lockfile", - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fgradle.lockfile", - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/gradle.properties", - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fgradle.properties", - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Directory.Build.targets", - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FDirectory.Build.targets", - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Directory.Build.props", - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FDirectory.Build.props", - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Packages.props", - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FPackages.props", - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/build.sbt", - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fbuild.sbt", - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/packages.config", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/poetry.lock", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fpackages.config", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fpoetry.lock", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/*.csproj", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/yarn.lock", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2F*.csproj", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fyarn.lock", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/*.vbproj", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/yarn.lock", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2F*.vbproj", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fyarn.lock", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/*.fsproj", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/build.gradle", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2F*.fsproj", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fbuild.gradle", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/project.json", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/build.gradle", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fproject.json", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fbuild.gradle", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Gopkg.toml", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/gradle.lockfile", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FGopkg.toml", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fgradle.lockfile", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Gopkg.lock", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/gradle.lockfile", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FGopkg.lock", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fgradle.lockfile", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/vendor.json", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/gradle.properties", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fvendor.json", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fgradle.properties", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/composer.lock", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/gradle.properties", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fcomposer.lock", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fgradle.properties", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/composer.json", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Packages.props", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fcomposer.json", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FPackages.props", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/project.assets.json", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Packages.props", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fproject.assets.json", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FPackages.props", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Podfile", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Directory.Build.props", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FPodfile", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FDirectory.Build.props", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Podfile.lock", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Directory.Build.props", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FPodfile.lock", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FDirectory.Build.props", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/go.mod", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Directory.Build.targets", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fgo.mod", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FDirectory.Build.targets", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/go.sum", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Directory.Build.targets", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fgo.sum", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FDirectory.Build.targets", }, Object { - "//": "used to create Dockerfile", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/*Dockerfile*", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/build.sbt", }, Object { - "//": "used to create Dockerfile", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2F*Dockerfile*", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fbuild.sbt", }, Object { - "//": "used to create ignore rules or patches", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/.snyk", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/build.sbt", }, Object { - "//": "used to create ignore rules or patches", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2F.snyk", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fbuild.sbt", }, Object { - "//": "used to create manifest file for v3 protocol", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v3/projects/:project/repository/files", - "valid": Array [ - Object { - "queryParam": "file_path", - "values": Array [ - "**/package.json", - "**%2Fpackage.json", - "**/yarn.lock", - "**%2Fyarn.lock", - "**/package-lock.json", - "**%2Fpackage-lock.json", - "**/Gemfile", - "**%2FGemfile", - "**/Gemfile.lock", - "**%2FGemfile.lock", - "**/pom.xml", - "**%2Fpom.xml", - "**/*req*.txt", - "**%2F*req*.txt", - "**/pyproject.toml", - "**%2Fpyproject.toml", - "**/poetry.lock", - "**%2Fpoetry.lock", - "**/build.gradle", - "**%2Fbuild.gradle", - "**/gradle.lockfile", - "**%2Fgradle.lockfile", - "**/build.sbt", - "**%2Fbuild.sbt", - "**/.snyk", - "**%2F.snyk", - "**/packages.config", - "**%2Fpackages.config", - "**/*.csproj", - "**%2F*.csproj", - "**/*.vbproj", - "**%2F*.vbproj", - "**/*.fsproj", - "**%2F*.fsproj", - "**/project.json", - "**%2Fproject.json", - "**/Gopkg.toml", - "**%2FGopkg.toml", - "**/Gopkg.lock", - "**%2FGopkg.lock", - "**/vendor.json", - "**%2Fvendor.json", - "**/composer.lock", - "**%2Fcomposer.lock", - "**/composer.json", - "**%2Fcomposer.json", - "**/project.assets.json", - "**%2Fproject.assets.json", - "**/Podfile", - "**%2FPodfile", - "**/Podfile.lock", - "**%2FPodfile.lock", - "**/go.mod", - "**%2Fgo.mod", - "**/go.sum", - "**%2Fgo.sum", - ], - }, - ], + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/packages.config", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/package.json", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpackages.config", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fpackage.json", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/packages.config", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/package-lock.json", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fpackages.config", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fpackage-lock.json", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*.csproj", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Gemfile.lock", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*.csproj", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FGemfile.lock", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/*.csproj", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Gemfile", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2F*.csproj", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FGemfile", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*.fsproj", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/pom.xml", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*.fsproj", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fpom.xml", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/*.fsproj", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/*req*.txt", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2F*.fsproj", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2F*req*.txt", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*.vbproj", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/pyproject.toml", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*.vbproj", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fpyproject.toml", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/*.vbproj", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/poetry.lock", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2F*.vbproj", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fpoetry.lock", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/project.json", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/yarn.lock", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fproject.json", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fyarn.lock", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/project.json", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/build.gradle", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fproject.json", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fbuild.gradle", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Gopkg.toml", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/gradle.lockfile", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FGopkg.toml", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fgradle.lockfile", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Gopkg.toml", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/gradle.properties", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FGopkg.toml", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fgradle.properties", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Gopkg.lock", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Directory.Build.targets", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FGopkg.lock", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FDirectory.Build.targets", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Gopkg.lock", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Directory.Build.props", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FGopkg.lock", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FDirectory.Build.props", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/vendor.json", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Packages.props", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fvendor.json", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FPackages.props", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/vendor.json", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/build.sbt", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fvendor.json", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fbuild.sbt", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/composer.lock", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/packages.config", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fcomposer.lock", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fpackages.config", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/composer.lock", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/*.csproj", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fcomposer.lock", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2F*.csproj", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/composer.json", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/*.vbproj", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fcomposer.json", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2F*.vbproj", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/composer.json", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/*.fsproj", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fcomposer.json", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2F*.fsproj", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/project.assets.json", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/project.json", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fproject.assets.json", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fproject.json", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/project.assets.json", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Gopkg.toml", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fproject.assets.json", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FGopkg.toml", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Podfile", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Gopkg.lock", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FPodfile", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FGopkg.lock", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Podfile.lock", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/vendor.json", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FPodfile.lock", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fvendor.json", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Podfile", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/composer.lock", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FPodfile", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fcomposer.lock", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Podfile.lock", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/composer.json", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FPodfile.lock", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fcomposer.json", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/go.mod", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/project.assets.json", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fgo.mod", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fproject.assets.json", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/go.mod", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Podfile", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fgo.mod", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FPodfile", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/go.sum", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Podfile.lock", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fgo.sum", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FPodfile.lock", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/go.sum", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/go.mod", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fgo.sum", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fgo.mod", + "//": "used to scan Dockerfile", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*Dockerfile*", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/go.sum", + "//": "used to scan Dockerfile", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*Dockerfile*", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fgo.sum", + "//": "used to scan Dockerfile", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/*Dockerfile*", }, Object { - "//": "used to update Dockerfile", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/*Dockerfile*", + "//": "used to scan Dockerfile", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2F*Dockerfile*", }, Object { - "//": "used to update Dockerfile", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2F*Dockerfile*", + "//": "used to check if there's any ignore rules or existing patches", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/.snyk", }, Object { - "//": "used to update ignore rules or existing patches", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/.snyk", + "//": "used to check if there's any ignore rules or existing patches", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F.snyk", }, Object { - "//": "used to update ignore rules or existing patches", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2F.snyk", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/.snyk", }, Object { - "//": "used to update manifest file for v3 protocol", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v3/projects/:project/repository/files", - "valid": Array [ - Object { - "queryParam": "file_path", - "values": Array [ - "**/package.json", - "**%2Fpackage.json", - "**/yarn.lock", - "**%2Fyarn.lock", - "**/package-lock.json", - "**%2Fpackage-lock.json", - "**/Gemfile", - "**%2FGemfile", - "**/Gemfile.lock", - "**%2FGemfile.lock", - "**/pom.xml", - "**%2Fpom.xml", - "**/*req*.txt", - "**%2F*req*.txt", - "**/pyproject.toml", - "**%2Fpyproject.toml", - "**/poetry.lock", - "**%2Fpoetry.lock", - "**/build.gradle", - "**%2Fbuild.gradle", - "**/gradle.lockfile", - "**%2Fgradle.lockfile", - "**/build.sbt", - "**%2Fbuild.sbt", - "**/.snyk", - "**%2F.snyk", - "**/packages.config", - "**%2Fpackages.config", - "**/*.csproj", - "**%2F*.csproj", - "**/*.vbproj", - "**%2F*.vbproj", - "**/*.fsproj", - "**%2F*.fsproj", - "**/project.json", - "**%2Fproject.json", - "**/Gopkg.toml", - "**%2FGopkg.toml", - "**/Gopkg.lock", - "**%2FGopkg.lock", - "**/vendor.json", - "**%2Fvendor.json", - "**/composer.lock", - "**%2Fcomposer.lock", - "**/composer.json", - "**%2Fcomposer.json", - "**/project.assets.json", - "**%2Fproject.assets.json", - "**/Podfile", - "**%2FPodfile", - "**/Podfile.lock", - "**%2FPodfile.lock", - "**/go.mod", - "**%2Fgo.mod", - "**/go.sum", - "**%2Fgo.sum", - ], - }, - ], + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2F.snyk", }, Object { - "//": "allow webhooks to be added, to allow commits to be checked by Snyk. Rules for what is sent to Snyk are controlled in the \`public\` accept filters", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/hooks", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/package.json", }, Object { - "//": "allow webhooks to be deleted, used to cleanup when a user deactivates or deletes a project", - "method": "DELETE", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/hooks/:id", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpackage.json", }, Object { - "//": "used to create commit status messages", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/statuses/:sha", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/package.json", }, Object { - "//": "used to create branch for fix merge request", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/branches", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fpackage.json", }, Object { - "//": "used to create merge request for fix merge request", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/merge_requests", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/package-lock.json", }, Object { - "//": "used to fetch fix merge request information", - "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/merge_requests", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpackage-lock.json", }, Object { - "//": "list the user's groups", - "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/groups", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/package-lock.json", }, Object { - "//": "list of projects in a group", - "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/groups/:id/projects", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fpackage-lock.json", }, Object { - "//": "get current user. so we'll be able to fetch it's projects", - "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/user", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Gemfile.lock", }, Object { - "//": "get user's projects", - "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/users/:user/projects", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FGemfile.lock", }, Object { - "//": "get all users. so we'll be able to fetch projects that admin can access", - "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/users", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Gemfile.lock", }, Object { - "//": "used to get repo's contributors list", - "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/commits", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FGemfile.lock", }, Object { - "//": "get a specific commit identified by the commit hash or name of a branch or tag.", - "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/commits/:sha", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Gemfile", }, Object { - "//": "get merge base of two commits for given project.", - "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/merge_base", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FGemfile", }, Object { - "//": "used to redirect requests to snyk git client", - "method": "any", - "origin": "\${GIT_CLIENT_URL}", - "path": "/snykgit/*", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Gemfile", }, Object { - "//": "used to scan IAC files", - "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/*.yaml", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FGemfile", }, Object { - "//": "used to scan IAC files", - "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2F*.yaml", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/pom.xml", }, Object { - "//": "allow info refs (for git clone)", - "method": "GET", - "origin": "https://oauth2:\${GITLAB_TOKEN}@\${GITLAB}", - "path": "*/info/refs*", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpom.xml", }, Object { - "//": "allow git-upload-pack (for git clone)", - "method": "POST", - "origin": "https://oauth2:\${GITLAB_TOKEN}@\${GITLAB}", - "path": "*/git-upload-pack", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/pom.xml", }, Object { - "//": "needed to load code snippets", - "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files/:path", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fpom.xml", }, - ], - "public": Array [ Object { - "//": "used for pushing up webhooks from gitlab", - "method": "POST", - "path": "/webhook/gitlab/:webhookId", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*req*.txt", }, - ], -} -`; - -exports[`filter Rules Loading Injection of valid Git rules - Testing azure-repos 1`] = ` -Object { - "private": Array [ Object { - "//": "get list of projects for given organisation", - "auth": Object { - "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", - }, - "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/_apis/projects", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*req*.txt", }, Object { - "//": "get specific repository for given organisation", - "auth": Object { - "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", - }, - "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/*req*.txt", }, Object { - "//": "get list of repositories for given organisation", - "auth": Object { - "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", - }, - "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2F*req*.txt", }, Object { - "//": "get list of refs", - "auth": Object { - "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", - }, - "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/refs", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/pyproject.toml", }, Object { - "//": "search through repositories of given organisation", - "auth": Object { - "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", - }, - "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "_apis/git/repositories", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpyproject.toml", }, Object { - "//": "create hook", - "auth": Object { - "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", - }, - "method": "POST", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/_apis/hooks/subscriptions", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/pyproject.toml", }, Object { - "//": "delete hook", - "auth": Object { - "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", - }, - "method": "DELETE", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/_apis/hooks/subscriptions/:subscriptionId", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fpyproject.toml", }, Object { - "//": "get file content. restrict by file types", - "auth": Object { - "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", - }, - "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/items", - "valid": Array [ - Object { - "queryParam": "path", - "values": Array [ - "**/package.json", - "**%2Fpackage.json", - "**/yarn.lock", - "**%2Fyarn.lock", - "**/package-lock.json", - "**%2Fpackage-lock.json", - "**/Gemfile", - "**%2FGemfile", - "**/Gemfile.lock", - "**%2FGemfile.lock", - "**/pom.xml", - "**%2Fpom.xml", - "**/*req*.txt", - "**%2F*req*.txt", - "**/requirements/*.txt", - "**%2Frequirements%2F*.txt", - "**/pyproject.toml", - "**%2Fpyproject.toml", - "**/poetry.lock", - "**%2Fpoetry.lock", - "**/Pipfile", - "**%2FPipfile", - "**/Pipfile.lock", - "**%2FPipfile.lock", - "**/build.gradle", - "**%2Fbuild.gradle", - "**/gradle.lockfile", - "**%2Fgradle.lockfile", - "**/build.sbt", - "**%2Fbuild.sbt", - "**/.snyk", - "**%2F.snyk", - "**/packages.config", - "**%2Fpackages.config", - "**/*.csproj", - "**%2F*.csproj", - "**/*.vbproj", - "**%2F*.vbproj", - "**/*.fsproj", - "**%2F*.fsproj", - "**/project.json", - "**%2Fproject.json", - "**/Gopkg.toml", - "**%2FGopkg.toml", - "**/Gopkg.lock", - "**%2FGopkg.lock", - "**/vendor.json", - "**%2Fvendor.json", - "**/composer.lock", - "**%2Fcomposer.lock", - "**/composer.json", - "**%2Fcomposer.json", - "**/project.assets.json", - "**%2Fproject.assets.json", - "**/Podfile", - "**%2FPodfile", - "**/Podfile.lock", - "**%2FPodfile.lock", - "**/go.mod", - "**%2Fgo.mod", - "**/go.sum", - "**%2Fgo.sum", - "**/*Dockerfile*", - "**%2F*Dockerfile*", - ], - }, - Object { - "queryParam": "recursionLevel", - "values": Array [ - "none", - ], - }, - Object { - "queryParam": "download", - "values": Array [ - "true", - ], - }, - Object { - "queryParam": "includeContent", - "values": Array [ - "true", - ], - }, - ], + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/poetry.lock", }, Object { - "//": "check file existence. restrict by file types", - "auth": Object { - "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", - }, - "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/items", - "valid": Array [ - Object { - "queryParam": "path", - "values": Array [ - "**/package.json", - "**%2Fpackage.json", - "**/yarn.lock", - "**%2Fyarn.lock", - "**/package-lock.json", - "**%2Fpackage-lock.json", - "**/Gemfile", - "**%2FGemfile", - "**/Gemfile.lock", - "**%2FGemfile.lock", - "**/pom.xml", - "**%2Fpom.xml", - "**/*req*.txt", - "**%2F*req*.txt", - "**/requirements/*.txt", - "**%2Frequirements%2F*.txt", - "**/pyproject.toml", - "**%2Fpyproject.toml", - "**/poetry.lock", - "**%2Fpoetry.lock", - "**/Pipfile", - "**%2FPipfile", - "**/Pipfile.lock", - "**%2FPipfile.lock", - "**/build.gradle", - "**%2Fbuild.gradle", - "**/gradle.lockfile", - "**%2Fgradle.lockfile", - "**/build.sbt", - "**%2Fbuild.sbt", - "**/.snyk", - "**%2F.snyk", - "**/packages.config", - "**%2Fpackages.config", - "**/*.csproj", - "**%2F*.csproj", - "**/*.vbproj", - "**%2F*.vbproj", - "**/*.fsproj", - "**%2F*.fsproj", - "**/project.json", - "**%2Fproject.json", - "**/Gopkg.toml", - "**%2FGopkg.toml", - "**/Gopkg.lock", - "**%2FGopkg.lock", - "**/vendor.json", - "**%2Fvendor.json", - "**/composer.lock", - "**%2Fcomposer.lock", - "**/composer.json", - "**%2Fcomposer.json", - "**/project.assets.json", - "**%2Fproject.assets.json", - "**/Podfile", - "**%2FPodfile", - "**/Podfile.lock", - "**%2FPodfile.lock", - "**/go.mod", - "**%2Fgo.mod", - "**/go.sum", - "**%2Fgo.sum", - "**/*Dockerfile*", - "**%2F*Dockerfile*", - ], - }, - Object { - "queryParam": "versionDescriptor.versionType", - "values": Array [ - "branch", - ], - }, - Object { - "queryParam": "includeContentMetadata", - "values": Array [ - "true", - ], - }, - ], + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpoetry.lock", }, Object { - "//": "get list of files for given repository", - "auth": Object { - "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", - }, - "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/items", - "valid": Array [ - Object { - "queryParam": "recursionLevel", - "values": Array [ - "full", - ], - }, - Object { - "queryParam": "download", - "values": Array [ - "false", - ], - }, - Object { - "queryParam": "includeContent", - "values": Array [ - "false", - ], - }, - ], + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/poetry.lock", }, Object { - "//": "get list of commits for given repository", - "auth": Object { - "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", - }, - "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/commits", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fpoetry.lock", }, Object { - "//": "get merge base of two commits for given repository", - "auth": Object { - "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", - }, - "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/commits/:commitId/mergebases", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/yarn.lock", }, Object { - "//": "update status of given commit", - "auth": Object { - "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", - }, - "method": "POST", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/commits/:commitId/statuses", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fyarn.lock", }, Object { - "//": "update status of given pull request", - "auth": Object { - "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", - }, - "method": "POST", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/pullRequests/:pullRef/statuses", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/yarn.lock", }, Object { - "//": "find PR for given repository", - "auth": Object { - "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", - }, - "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/pullrequests", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fyarn.lock", }, Object { - "//": "create new PR in given repository", - "auth": Object { - "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", - }, - "method": "POST", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/pullrequests", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/build.gradle", }, Object { - "//": "update existing PR in given repository", - "auth": Object { - "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", - }, - "method": "PATCH", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/pullrequests/:pullRef", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fbuild.gradle", }, Object { - "//": "push new commit in given repository", - "auth": Object { - "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", - }, - "method": "POST", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/pushes", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/build.gradle", }, Object { - "//": "used to redirect requests to snyk git client", - "method": "any", - "origin": "\${GIT_CLIENT_URL}", - "path": "/snykgit/*", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fbuild.gradle", }, Object { - "//": "allow info refs (for git clone)", - "auth": Object { - "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", - }, - "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "*/info/refs*", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/gradle.lockfile", }, Object { - "//": "allow git-upload-pack (for git clone)", - "auth": Object { - "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", - }, - "method": "POST", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "*/git-upload-pack", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fgradle.lockfile", }, Object { - "//": "needed to load code snippets", - "auth": Object { - "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", - }, - "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/items", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/gradle.lockfile", }, - ], - "public": Array [ Object { - "//": "used for pushing up webhooks from Azure", - "method": "POST", - "path": "/webhook/azure-repos/:webhookId", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fgradle.lockfile", }, - ], -} -`; - -exports[`filter Rules Loading Injection of valid Git rules - Testing bitbucket-server 1`] = ` -Object { - "private": Array [ Object { - "//": "list the user's projects", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/gradle.properties", }, Object { - "//": "list the project's repos", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:projectKey/repos", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fgradle.properties", }, Object { - "//": "list the user's repos", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/repos", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/gradle.properties", }, Object { - "//": "fetch a given repo", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fgradle.properties", }, Object { - "//": "read all file names to find manifests", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET}", - "path": "/rest/api/1.0/projects/:project/repos/:repo/files/:searchPath?", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Packages.props", }, Object { - "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/package.json", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FPackages.props", }, Object { - "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2Fpackage.json", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Packages.props", }, Object { - "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/package-lock.json", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FPackages.props", }, Object { - "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2Fpackage-lock.json", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Directory.Build.props", }, Object { - "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/Gemfile.lock", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FDirectory.Build.props", }, Object { - "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2FGemfile.lock", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Directory.Build.props", }, Object { - "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/Gemfile", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FDirectory.Build.props", }, Object { - "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2FGemfile", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Directory.Build.targets", }, Object { - "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/pom.xml", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FDirectory.Build.targets", }, Object { - "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2Fpom.xml", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Directory.Build.targets", }, Object { - "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/*req*.txt", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FDirectory.Build.targets", }, Object { - "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2F*req*.txt", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/build.sbt", }, Object { - "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/requirements/*.txt", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fbuild.sbt", }, Object { - "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2Frequirements%2F*.txt", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/build.sbt", }, Object { - "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/pyproject.toml", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fbuild.sbt", }, Object { - "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2Fpyproject.toml", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/packages.config", }, Object { - "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/poetry.lock", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpackages.config", }, Object { - "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2Fpoetry.lock", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/packages.config", }, Object { - "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/Pipfile", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fpackages.config", }, Object { - "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2FPipfile", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*.csproj", }, Object { - "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/Pipfile.lock", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*.csproj", }, Object { - "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2FPipfile.lock", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/*.csproj", }, Object { - "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/yarn.lock", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2F*.csproj", }, Object { - "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2Fyarn.lock", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*.fsproj", }, Object { - "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/build.gradle", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*.fsproj", }, Object { - "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2Fbuild.gradle", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/*.fsproj", }, Object { - "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/gradle.lockfile", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2F*.fsproj", }, Object { - "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2Fgradle.lockfile", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*.vbproj", }, Object { - "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/gradle.properties", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*.vbproj", }, Object { - "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2Fgradle.properties", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/*.vbproj", }, Object { - "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/Packages.props", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2F*.vbproj", }, Object { - "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2FPackages.props", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/project.json", }, Object { - "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/Directory.Build.props", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fproject.json", }, Object { - "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2FDirectory.Build.props", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/project.json", }, Object { - "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/Directory.Build.targets", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fproject.json", }, Object { - "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2FDirectory.Build.targets", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Gopkg.toml", }, Object { - "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/build.sbt", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FGopkg.toml", }, Object { - "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2Fbuild.sbt", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Gopkg.toml", }, Object { - "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/packages.config", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FGopkg.toml", }, Object { - "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2Fpackages.config", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Gopkg.lock", }, Object { - "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/*.csproj", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FGopkg.lock", }, Object { - "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2F*.csproj", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Gopkg.lock", }, Object { - "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/*.vbproj", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FGopkg.lock", }, Object { - "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2F*.vbproj", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/vendor.json", }, Object { - "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/*.fsproj", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fvendor.json", }, Object { - "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2F*.fsproj", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/vendor.json", }, Object { - "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/project.json", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fvendor.json", }, Object { - "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2Fproject.json", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/composer.lock", }, Object { - "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/Gopkg.toml", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fcomposer.lock", }, Object { - "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2FGopkg.toml", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/composer.lock", }, Object { - "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/Gopkg.lock", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fcomposer.lock", }, Object { - "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2FGopkg.lock", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/composer.json", }, Object { - "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/vendor.json", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fcomposer.json", }, Object { - "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2Fvendor.json", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/composer.json", }, Object { - "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/composer.lock", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fcomposer.json", }, Object { - "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2Fcomposer.lock", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/project.assets.json", }, Object { - "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/composer.json", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fproject.assets.json", }, Object { - "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2Fcomposer.json", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/project.assets.json", }, Object { - "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/project.assets.json", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fproject.assets.json", }, Object { - "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2Fproject.assets.json", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Podfile", }, Object { - "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/Podfile", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FPodfile", }, Object { - "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2FPodfile", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Podfile.lock", }, Object { - "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/Podfile.lock", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FPodfile.lock", }, Object { - "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2FPodfile.lock", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Podfile", }, Object { - "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/go.mod", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FPodfile", }, Object { - "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2Fgo.mod", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Podfile.lock", }, Object { - "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/go.sum", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FPodfile.lock", }, Object { - "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2Fgo.sum", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/go.mod", }, Object { - "//": "used to scan Dockerfile", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/*Dockerfile*", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fgo.mod", }, Object { - "//": "used to scan Dockerfile", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2F*Dockerfile*", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/go.mod", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fgo.mod", }, Object { - "//": "used to check if there's any ignore rules or existing patches", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/.snyk", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/go.sum", }, Object { - "//": "used to check if there's any ignore rules or existing patches", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*%2F.snyk", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fgo.sum", }, Object { - "//": "get list of API capabilities", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET}", - "path": "/rest/capabilities", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/go.sum", }, Object { - "//": "allow webhooks to be added, to allow commits to be checked by Snyk. Rules for what is sent to Snyk are controlled in the \`public\` accept filters", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "POST", - "origin": "https://\${BITBUCKET}", - "path": "/rest/api/1.0/projects/:project/repos/:repo/webhooks", + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fgo.sum", }, Object { - "//": "allow webhooks to be deleted, used to cleanup when a user deactivates or deletes a project", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "DELETE", - "origin": "https://\${BITBUCKET}", - "path": "/rest/api/1.0/projects/:project/repos/:repo/webhooks/:webhookId", + "//": "used to update Dockerfile", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*Dockerfile*", }, Object { - "//": "used to create commit status messages", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "POST", - "origin": "https://\${BITBUCKET}", - "path": "/rest/build-status/1.0/commits/:sha", + "//": "used to update Dockerfile", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*Dockerfile*", }, Object { - "//": "used to create a new branch for fix PRs", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "POST", - "origin": "https://\${BITBUCKET}", - "path": "/rest/api/1.0/projects/:project/repos/:repo/branches", + "//": "used to update Dockerfile", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/*Dockerfile*", }, Object { - "//": "used to create or update a file for fix PRs", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, + "//": "used to update Dockerfile", "method": "PUT", - "origin": "https://\${BITBUCKET}", - "path": "/rest/api/1.0/projects/:project/repos/:repo/browse/*", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2F*Dockerfile*", }, Object { - "//": "used to create a pull request for fix PRs", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "POST", - "origin": "https://\${BITBUCKET}", - "path": "/rest/api/1.0/projects/:project/repos/:repo/pull-requests", + "//": "used to write or update ignore rules or existing patches", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/.snyk", }, Object { - "//": "used to query for open pull requests by branch", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, + "//": "used to write or update ignore rules or existing patches", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F.snyk", + }, + Object { + "//": "get details of the repo", "method": "GET", - "origin": "https://\${BITBUCKET}", - "path": "/rest/api/1.0/projects/:project/repos/:repo/pull-requests", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo", }, Object { - "//": "used to query for a merge-base for a pull request", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, + "//": "get the details of the commit to determine its SHA", "method": "GET", - "origin": "https://\${BITBUCKET}", - "path": "/rest/api/1.0/projects/:project/repos/:repo/pull-requests/:pullRequestId/changes", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/commits/:ref", + "valid": Array [ + Object { + "header": "accept", + "values": Array [ + "application/vnd.github.v4.sha", + ], + }, + ], }, Object { - "//": "used to check for a repo's default branch", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, + "//": "get a list of all the refs to match find whether an existing PR is open", "method": "GET", - "origin": "https://\${BITBUCKET}", - "path": "/rest/api/1.0/projects/:project/repos/:repo/branches/default", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/git/refs", }, Object { - "//": "Used to get a branch specified by query string", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, + "//": "get the head commit of an individual ref", "method": "GET", - "origin": "https://\${BITBUCKET}", - "path": "/rest/api/1.0/projects/:project/repos/:repo/branches:filterText?", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/git/refs/heads/:ref", }, Object { - "//": "get a specific commit identified by the commit hash or name of a branch", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, + "//": "get the details of an individual ref", "method": "GET", - "origin": "https://\${BITBUCKET}", - "path": "/rest/api/1.0/projects/:project/repos/:repo/commits/:sha", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/git/refs/:ref", }, Object { - "//": "used to create a Code Insights report", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "PUT", - "origin": "https://\${BITBUCKET}", - "path": "/rest/insights/:apiVersion/projects/:project/repos/:repo/commits/:sha/reports/:report", + "//": "compares two commits against each other", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/compare/:base...:head", }, Object { - "//": "used to remove a Code Insights report", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "DELETE", - "origin": "https://\${BITBUCKET}", - "path": "/rest/insights/:apiVersion/projects/:project/repos/:repo/commits/:sha/reports/:report", + "//": "search for open snyk pull requests", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/pulls", }, Object { - "//": "used to add Code Insights annotations to a report", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "POST", - "origin": "https://\${BITBUCKET}", - "path": "/rest/insights/:apiVersion/projects/:project/repos/:repo/commits/:sha/reports/:report/annotations", + "//": "get pull request data for getting merge sha and tracking PR processing state", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/pulls/:pull_number", }, Object { - "//": "get list of API capabilities for Code Insights", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, + "//": "get pull request file names", "method": "GET", - "origin": "https://\${BITBUCKET}", - "path": "/rest/insights/:apiVersion/capabilities", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/pulls/:pull_number/files", }, Object { - "//": "used to remove Code Insights annotations for a report", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "DELETE", - "origin": "https://\${BITBUCKET}", - "path": "/rest/insights/:apiVersion/projects/:project/repos/:repo/commits/:sha/reports/:report/annotations", + "//": "create branches for new commits", + "method": "POST", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/git/refs", }, Object { - "//": "used to get current user. so we'll be able to fetch current user's repos, that are not part of any project.", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET}", - "path": "/rest/api/1.0/application-properties", + "//": "create the pull request", + "method": "POST", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/pulls", }, Object { - "//": "used to get current user. so we'll be able to fetch current user's repos, that are not part of any project - this is using atlassian's SDK api.", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET}", - "path": "/plugins/servlet/applinks/whoami", + "//": "add pull request assignees", + "method": "POST", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/issues/:pull_number/assignees", }, Object { - "//": "used to get the current user's project-like structure. So we'll be able to bind all user's private repos (that are not included in different project)", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:projectKey", + "//": "update ref", + "method": "PATCH", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/git/refs/:sha", }, Object { - "//": "used to check if the user has admin or higher permissions", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, + "//": "update ref head", + "method": "PATCH", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/git/refs/heads/:ref", + }, + Object { + "//": "get list of all files in a repo", "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/admin/permissions/users", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/git/trees/:ref", }, Object { - "//": "used to get all the users. it's called only for admin permissioned user. to retrieve all the repos they can access", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, + "//": "used to get repo's contributors list", "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/users", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:owner/:repo/commits", }, Object { "//": "used to redirect requests to snyk git client", @@ -28850,72 +43464,333 @@ Object { "path": "/snykgit/*", }, Object { - "//": "used to fetch a given repo from API", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET}", - "path": "/rest/api/1.0/projects/:project/repos/:repo", - }, - Object { - "//": "used to get default reviewers for a pull request", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, - "method": "GET", - "origin": "https://\${BITBUCKET}", - "path": "/rest/default-reviewers/1.0/projects/:projectKey/repos/:repo/reviewers", + "//": "query graphql", + "method": "POST", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_GRAPHQL}", + "path": "/graphql", }, Object { "//": "allow info refs (for git clone)", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET}", + "origin": "https://pat:\${GITHUB_TOKEN}@\${GITHUB}", "path": "*/info/refs*", }, Object { "//": "allow git-upload-pack (for git clone)", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "POST", - "origin": "https://\${BITBUCKET}", + "origin": "https://pat:\${GITHUB_TOKEN}@\${GITHUB}", "path": "*/git-upload-pack", }, Object { "//": "needed to load code snippets", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", - }, "method": "GET", - "origin": "https://\${BITBUCKET_API}", - "path": "/projects/:project/repos/:repo/browse*/:file", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path", + }, + ], + "public": Array [ + Object { + "//": "used for pushing up webhooks from github", + "method": "POST", + "path": "/webhook/github", + "valid": Array [ + Object { + "//": "accept all pull request state changes (these don't have files in them)", + "path": "pull_request.state", + "value": "open", + }, + Object { + "path": "commits.*.added.*", + "value": "package.json", + }, + Object { + "path": "commits.*.modified.*", + "value": "package.json", + }, + Object { + "path": "commits.*.added.*", + "value": "package-lock.json", + }, + Object { + "path": "commits.*.modified.*", + "value": "package-lock.json", + }, + Object { + "path": "commits.*.added.*", + "value": "Gemfile.lock", + }, + Object { + "path": "commits.*.modified.*", + "value": "Gemfile.lock", + }, + Object { + "path": "commits.*.added.*", + "value": "*req*.txt", + }, + Object { + "path": "commits.*.modified.*", + "value": "*req*.txt", + }, + Object { + "path": "commits.*.added.*", + "value": "requirements%2F*.txt", + }, + Object { + "path": "commits.*.modified.*", + "value": "requirements%2F*.txt", + }, + Object { + "path": "commits.*.added.*", + "value": "requirements/*.txt", + }, + Object { + "path": "commits.*.modified.*", + "value": "requirements/*.txt", + }, + Object { + "path": "commits.*.added.*", + "value": "pyproject.toml", + }, + Object { + "path": "commits.*.modified.*", + "value": "pyproject.toml", + }, + Object { + "path": "commits.*.added.*", + "value": "poetry.lock", + }, + Object { + "path": "commits.*.modified.*", + "value": "poetry.lock", + }, + Object { + "path": "commits.*.added.*", + "value": "Pipfile", + }, + Object { + "path": "commits.*.modified.*", + "value": "Pipfile", + }, + Object { + "path": "commits.*.added.*", + "value": "Pipfile.lock", + }, + Object { + "path": "commits.*.modified.*", + "value": "Pipfile.lock", + }, + Object { + "path": "commits.*.added.*", + "value": "pom.xml", + }, + Object { + "path": "commits.*.modified.*", + "value": "pom.xml", + }, + Object { + "path": "commits.*.added.*", + "value": "build.gradle", + }, + Object { + "path": "commits.*.modified.*", + "value": "build.gradle", + }, + Object { + "path": "commits.*.added.*", + "value": "gradle.lockfile", + }, + Object { + "path": "commits.*.modified.*", + "value": "gradle.lockfile", + }, + Object { + "path": "commits.*.added.*", + "value": "gradle.properties", + }, + Object { + "path": "commits.*.modified.*", + "value": "gradle.properties", + }, + Object { + "path": "commits.*.added.*", + "value": "Packages.props", + }, + Object { + "path": "commits.*.modified.*", + "value": "Packages.props", + }, + Object { + "path": "commits.*.added.*", + "value": "Directory.Build.props", + }, + Object { + "path": "commits.*.modified.*", + "value": "Directory.Build.props", + }, + Object { + "path": "commits.*.added.*", + "value": "Directory.Build.targets", + }, + Object { + "path": "commits.*.modified.*", + "value": "Directory.Build.targets", + }, + Object { + "path": "commits.*.added.*", + "value": "build.sbt", + }, + Object { + "path": "commits.*.modified.*", + "value": "build.sbt", + }, + Object { + "path": "commits.*.added.*", + "value": "yarn.lock", + }, + Object { + "path": "commits.*.modified.*", + "value": "yarn.lock", + }, + Object { + "path": "commits.*.added.*", + "value": ".snyk", + }, + Object { + "path": "commits.*.modified.*", + "value": ".snyk", + }, + Object { + "path": "commits.*.added.*", + "value": "packages.config", + }, + Object { + "path": "commits.*.modified.*", + "value": "packages.config", + }, + Object { + "path": "commits.*.added.*", + "value": "*.csproj", + }, + Object { + "path": "commits.*.modified.*", + "value": "*.csproj", + }, + Object { + "path": "commits.*.added.*", + "value": "*.vbproj", + }, + Object { + "path": "commits.*.modified.*", + "value": "*.vbproj", + }, + Object { + "path": "commits.*.added.*", + "value": "*.fsproj", + }, + Object { + "path": "commits.*.modified.*", + "value": "*.fsproj", + }, + Object { + "path": "commits.*.added.*", + "value": "project.json", + }, + Object { + "path": "commits.*.modified.*", + "value": "project.json", + }, + Object { + "path": "commits.*.added.*", + "value": "Gopkg.toml", + }, + Object { + "path": "commits.*.modified.*", + "value": "Gopkg.toml", + }, + Object { + "path": "commits.*.added.*", + "value": "Gopkg.lock", + }, + Object { + "path": "commits.*.modified.*", + "value": "Gopkg.lock", + }, + Object { + "path": "commits.*.added.*", + "value": "vendor.json", + }, + Object { + "path": "commits.*.modified.*", + "value": "vendor.json", + }, + Object { + "path": "commits.*.added.*", + "value": "composer.lock", + }, + Object { + "path": "commits.*.modified.*", + "value": "composer.lock", + }, + Object { + "path": "commits.*.added.*", + "value": "composer.json", + }, + Object { + "path": "commits.*.modified.*", + "value": "composer.json", + }, + Object { + "path": "commits.*.added.*", + "value": "project.assets.json", + }, + Object { + "path": "commits.*.modified.*", + "value": "project.assets.json", + }, + Object { + "path": "commits.*.added.*", + "value": "Podfile", + }, + Object { + "path": "commits.*.modified.*", + "value": "Podfile", + }, + Object { + "path": "commits.*.added.*", + "value": "Podfile.lock", + }, + Object { + "path": "commits.*.modified.*", + "value": "Podfile.lock", + }, + Object { + "path": "commits.*.added.*", + "value": "go.mod", + }, + Object { + "path": "commits.*.modified.*", + "value": "go.mod", + }, + Object { + "path": "commits.*.added.*", + "value": "go.sum", + }, + Object { + "path": "commits.*.modified.*", + "value": "go.sum", + }, + ], }, - ], - "public": Array [ Object { - "//": "used for pushing up webhooks from bitbucket-server", + "//": "used for pushing up webhooks from github", "method": "POST", - "path": "/webhook/bitbucket-server/:webhookId", + "path": "/webhook/github/:webhookId", }, ], } `; -exports[`filter Rules Loading Injection of valid Git rules - Testing github 1`] = ` +exports[`filter Rules Loading Injection of valid Git rules - Testing github-enterprise 1`] = ` Object { "private": Array [ Object { @@ -29038,18 +43913,6 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2Fpackage.json", }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/package.json", - }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fpackage.json", - }, Object { "//": "used to determine the full dependency tree", "method": "GET", @@ -29062,18 +43925,6 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2Fpackage-lock.json", }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/package-lock.json", - }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fpackage-lock.json", - }, Object { "//": "used to determine the full dependency tree", "method": "GET", @@ -29086,18 +43937,6 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2FGemfile.lock", }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/Gemfile.lock", - }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2FGemfile.lock", - }, Object { "//": "used to determine the full dependency tree", "method": "GET", @@ -29110,18 +43949,6 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2FGemfile", }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/Gemfile", - }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2FGemfile", - }, Object { "//": "used to determine the full dependency tree", "method": "GET", @@ -29134,18 +43961,6 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2Fpom.xml", }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/pom.xml", - }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fpom.xml", - }, Object { "//": "used to determine the full dependency tree", "method": "GET", @@ -29158,18 +43973,6 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2F*req*.txt", }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/*req*.txt", - }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2F*req*.txt", - }, Object { "//": "used to determine the full dependency tree", "method": "GET", @@ -29182,18 +43985,6 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2Frequirements%2F*.txt", }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/requirements/*.txt", - }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Frequirements%2F*.txt", - }, Object { "//": "used to determine the full dependency tree", "method": "GET", @@ -29206,18 +43997,6 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2Fpyproject.toml", }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/pyproject.toml", - }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fpyproject.toml", - }, Object { "//": "used to determine the full dependency tree", "method": "GET", @@ -29230,18 +44009,6 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2Fpoetry.lock", }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/poetry.lock", - }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fpoetry.lock", - }, Object { "//": "used to determine the full dependency tree", "method": "GET", @@ -29254,18 +44021,6 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2Fyarn.lock", }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/yarn.lock", - }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fyarn.lock", - }, Object { "//": "used to determine the full dependency tree", "method": "GET", @@ -29278,18 +44033,6 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2Fbuild.gradle", }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/build.gradle", - }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fbuild.gradle", - }, Object { "//": "used to determine the full dependency tree", "method": "GET", @@ -29302,18 +44045,6 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2Fgradle.lockfile", }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/gradle.lockfile", - }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fgradle.lockfile", - }, Object { "//": "used to determine the full dependency tree", "method": "GET", @@ -29326,18 +44057,6 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2Fgradle.properties", }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/gradle.properties", - }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fgradle.properties", - }, Object { "//": "used to determine the full dependency tree", "method": "GET", @@ -29350,18 +44069,6 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2FPackages.props", }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/Packages.props", - }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2FPackages.props", - }, Object { "//": "used to determine the full dependency tree", "method": "GET", @@ -29374,18 +44081,6 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2FDirectory.Build.props", }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/Directory.Build.props", - }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2FDirectory.Build.props", - }, Object { "//": "used to determine the full dependency tree", "method": "GET", @@ -29398,18 +44093,6 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2FDirectory.Build.targets", }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/Directory.Build.targets", - }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2FDirectory.Build.targets", - }, Object { "//": "used to determine the full dependency tree", "method": "GET", @@ -29422,18 +44105,6 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2Fbuild.sbt", }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/build.sbt", - }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fbuild.sbt", - }, Object { "//": "used to determine the full dependency tree", "method": "GET", @@ -29446,18 +44117,6 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2Fpackages.config", }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/packages.config", - }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fpackages.config", - }, Object { "//": "used to determine the full dependency tree", "method": "GET", @@ -29470,18 +44129,6 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2F*.csproj", }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/*.csproj", - }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2F*.csproj", - }, Object { "//": "used to determine the full dependency tree", "method": "GET", @@ -29494,18 +44141,6 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2F*.fsproj", }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/*.fsproj", - }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2F*.fsproj", - }, Object { "//": "used to determine the full dependency tree", "method": "GET", @@ -29518,18 +44153,6 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2F*.vbproj", }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/*.vbproj", - }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2F*.vbproj", - }, Object { "//": "used to determine the full dependency tree", "method": "GET", @@ -29542,18 +44165,6 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2Fproject.json", }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/project.json", - }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fproject.json", - }, Object { "//": "used to determine the full dependency tree", "method": "GET", @@ -29566,18 +44177,6 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2FGopkg.toml", }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/Gopkg.toml", - }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2FGopkg.toml", - }, Object { "//": "used to determine the full dependency tree", "method": "GET", @@ -29590,18 +44189,6 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2FGopkg.lock", }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/Gopkg.lock", - }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2FGopkg.lock", - }, Object { "//": "used to determine the full dependency tree", "method": "GET", @@ -29614,18 +44201,6 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2Fvendor.json", }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/vendor.json", - }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fvendor.json", - }, Object { "//": "used to determine the full dependency tree", "method": "GET", @@ -29638,18 +44213,6 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2Fcomposer.lock", }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/composer.lock", - }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fcomposer.lock", - }, Object { "//": "used to determine the full dependency tree", "method": "GET", @@ -29662,18 +44225,6 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2Fcomposer.json", }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/composer.json", - }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fcomposer.json", - }, Object { "//": "used to determine the full dependency tree", "method": "GET", @@ -29686,18 +44237,6 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2Fproject.assets.json", }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/project.assets.json", - }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fproject.assets.json", - }, Object { "//": "used to determine the full dependency tree", "method": "GET", @@ -29722,30 +44261,6 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2FPodfile.lock", }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/Podfile", - }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2FPodfile", - }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/Podfile.lock", - }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2FPodfile.lock", - }, Object { "//": "used to determine the full dependency tree", "method": "GET", @@ -29818,30 +44333,6 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", "path": "/:name/:repo/:path*%2F*Dockerfile*", }, - Object { - "//": "used to check if there's any ignore rules or existing patches", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/.snyk", - }, - Object { - "//": "used to check if there's any ignore rules or existing patches", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2F.snyk", - }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/.snyk", - }, - Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2F.snyk", - }, Object { "//": "used to update manifest or lock", "method": "PUT", @@ -29854,18 +44345,6 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2Fpackage.json", }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/package.json", - }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fpackage.json", - }, Object { "//": "used to update manifest or lock", "method": "PUT", @@ -29878,18 +44357,6 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2Fpackage-lock.json", }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/package-lock.json", - }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fpackage-lock.json", - }, Object { "//": "used to update manifest or lock", "method": "PUT", @@ -29902,18 +44369,6 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2FGemfile.lock", }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/Gemfile.lock", - }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2FGemfile.lock", - }, Object { "//": "used to update manifest or lock", "method": "PUT", @@ -29926,18 +44381,6 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2FGemfile", }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/Gemfile", - }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2FGemfile", - }, Object { "//": "used to update manifest or lock", "method": "PUT", @@ -29950,18 +44393,6 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2Fpom.xml", }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/pom.xml", - }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fpom.xml", - }, Object { "//": "used to update manifest or lock", "method": "PUT", @@ -29974,18 +44405,6 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2F*req*.txt", }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/*req*.txt", - }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2F*req*.txt", - }, Object { "//": "used to update manifest or lock", "method": "PUT", @@ -29998,18 +44417,6 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2Fpyproject.toml", }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/pyproject.toml", - }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fpyproject.toml", - }, Object { "//": "used to update manifest or lock", "method": "PUT", @@ -30022,18 +44429,6 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2Fpoetry.lock", }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/poetry.lock", - }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fpoetry.lock", - }, Object { "//": "used to update manifest or lock", "method": "PUT", @@ -30046,18 +44441,6 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2Fyarn.lock", }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/yarn.lock", - }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fyarn.lock", - }, Object { "//": "used to update manifest or lock", "method": "PUT", @@ -30070,18 +44453,6 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2Fbuild.gradle", }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/build.gradle", - }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fbuild.gradle", - }, Object { "//": "used to update manifest or lock", "method": "PUT", @@ -30094,18 +44465,6 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2Fgradle.lockfile", }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/gradle.lockfile", - }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fgradle.lockfile", - }, Object { "//": "used to update manifest or lock", "method": "PUT", @@ -30118,18 +44477,6 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2Fgradle.properties", }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/gradle.properties", - }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fgradle.properties", - }, Object { "//": "used to update manifest or lock", "method": "PUT", @@ -30142,18 +44489,6 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2FPackages.props", }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/Packages.props", - }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2FPackages.props", - }, Object { "//": "used to update manifest or lock", "method": "PUT", @@ -30166,18 +44501,6 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2FDirectory.Build.props", }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/Directory.Build.props", - }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2FDirectory.Build.props", - }, Object { "//": "used to update manifest or lock", "method": "PUT", @@ -30190,18 +44513,6 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2FDirectory.Build.targets", }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/Directory.Build.targets", - }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2FDirectory.Build.targets", - }, Object { "//": "used to update manifest or lock", "method": "PUT", @@ -30214,18 +44525,6 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2Fbuild.sbt", }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/build.sbt", - }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fbuild.sbt", - }, Object { "//": "used to update manifest or lock", "method": "PUT", @@ -30238,18 +44537,6 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2Fpackages.config", }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/packages.config", - }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fpackages.config", - }, Object { "//": "used to update manifest or lock", "method": "PUT", @@ -30262,18 +44549,6 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2F*.csproj", }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/*.csproj", - }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2F*.csproj", - }, Object { "//": "used to update manifest or lock", "method": "PUT", @@ -30286,18 +44561,6 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2F*.fsproj", }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/*.fsproj", - }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2F*.fsproj", - }, Object { "//": "used to update manifest or lock", "method": "PUT", @@ -30310,18 +44573,6 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2F*.vbproj", }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/*.vbproj", - }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2F*.vbproj", - }, Object { "//": "used to update manifest or lock", "method": "PUT", @@ -30334,18 +44585,6 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2Fproject.json", }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/project.json", - }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fproject.json", - }, Object { "//": "used to update manifest or lock", "method": "PUT", @@ -30358,18 +44597,6 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2FGopkg.toml", }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/Gopkg.toml", - }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2FGopkg.toml", - }, Object { "//": "used to update manifest or lock", "method": "PUT", @@ -30382,18 +44609,6 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2FGopkg.lock", }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/Gopkg.lock", - }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2FGopkg.lock", - }, Object { "//": "used to update manifest or lock", "method": "PUT", @@ -30406,18 +44621,6 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2Fvendor.json", }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/vendor.json", - }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fvendor.json", - }, Object { "//": "used to update manifest or lock", "method": "PUT", @@ -30430,18 +44633,6 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2Fcomposer.lock", }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/composer.lock", - }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fcomposer.lock", - }, Object { "//": "used to update manifest or lock", "method": "PUT", @@ -30454,18 +44645,6 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2Fcomposer.json", }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/composer.json", - }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fcomposer.json", - }, Object { "//": "used to update manifest or lock", "method": "PUT", @@ -30478,18 +44657,6 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2Fproject.assets.json", }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/project.assets.json", - }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fproject.assets.json", - }, Object { "//": "used to update manifest or lock", "method": "PUT", @@ -30514,30 +44681,6 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2FPodfile.lock", }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/Podfile", - }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2FPodfile", - }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/Podfile.lock", - }, - Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2FPodfile.lock", - }, Object { "//": "used to update manifest or lock", "method": "PUT", @@ -30586,6 +44729,18 @@ Object { "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", "path": "/:name/:repo/:path*%2Fgo.sum", }, + Object { + "//": "used to write or update ignore rules or existing patches", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/.snyk", + }, + Object { + "//": "used to write or update ignore rules or existing patches", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F.snyk", + }, Object { "//": "used to update Dockerfile", "method": "PUT", @@ -30611,14 +44766,14 @@ Object { "path": "/:name/:repo/:path*%2F*Dockerfile*", }, Object { - "//": "used to write or update ignore rules or existing patches", - "method": "PUT", + "//": "used to check if there's any ignore rules or existing patches", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*/.snyk", }, Object { - "//": "used to write or update ignore rules or existing patches", - "method": "PUT", + "//": "used to check if there's any ignore rules or existing patches", + "method": "GET", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/contents/:path*%2F.snyk", }, @@ -30685,7 +44840,7 @@ Object { "path": "/repos/:name/:repo/pulls/:pull_number/files", }, Object { - "//": "create branches for new commits", + "//": "add commit data for new PR", "method": "POST", "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", "path": "/repos/:name/:repo/git/refs", @@ -30882,27 +45037,27 @@ Object { }, Object { "path": "commits.*.added.*", - "value": "Packages.props", + "value": "Directory.Build.targets", }, Object { "path": "commits.*.modified.*", - "value": "Packages.props", + "value": "Directory.Build.targets", }, Object { "path": "commits.*.added.*", - "value": "Directory.Build.props", + "value": "Packages.props", }, Object { "path": "commits.*.modified.*", - "value": "Directory.Build.props", + "value": "Packages.props", }, Object { "path": "commits.*.added.*", - "value": "Directory.Build.targets", + "value": "Directory.Build.props", }, Object { "path": "commits.*.modified.*", - "value": "Directory.Build.targets", + "value": "Directory.Build.props", }, Object { "path": "commits.*.added.*", @@ -31051,3856 +45206,4847 @@ Object { ], }, Object { - "//": "used for pushing up webhooks from github", - "method": "POST", - "path": "/webhook/github/:webhookId", + "//": "used for pushing up webhooks from github", + "method": "POST", + "path": "/webhook/github/:webhookId", + }, + ], +} +`; + +exports[`filter Rules Loading Injection of valid Git rules - Testing gitlab 1`] = ` +Object { + "private": Array [ + Object { + "//": "identify user", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/user", + }, + Object { + "//": "list the user's projects", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects", + }, + Object { + "//": "list the user's projects", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v3/projects", + }, + Object { + "//": "list the user's visible projects", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v3/projects/visible", + }, + Object { + "//": "get a user's project", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v3/projects/:project", + }, + Object { + "//": "get a user's project", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project", + }, + Object { + "//": "used to search all manifest files", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/tree", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/package.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpackage.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/package-lock.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpackage-lock.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Gemfile.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FGemfile.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Gemfile", }, - ], -} -`; - -exports[`filter Rules Loading Injection of valid Git rules - Testing github-enterprise 1`] = ` -Object { - "private": Array [ Object { - "//": "search for user's repos", + "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/search/repositories", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FGemfile", }, Object { - "//": "list the user's info, and validate their credentials", + "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/user", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/pom.xml", }, Object { - "//": "list the user's orgs", + "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/user/orgs", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpom.xml", }, Object { - "//": "list the logged in user's repos", + "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/user/repos", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*req*.txt", }, Object { - "//": "list a user's repos", + "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/users/:username/repos", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*req*.txt", }, Object { - "//": "list an orgs's repos", + "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/orgs/:username/repos", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/requirements/*.txt", }, Object { - "//": "get a user's repo", + "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:user/:repo", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Frequirements%2F*.txt", }, Object { - "//": "rate limit check", + "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/rate_limit", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/pyproject.toml", }, Object { - "//": "allow meta lookup on the api version", + "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpyproject.toml", }, Object { - "//": "allow webhooks to be added, to allow commits to be checked by Snyk. Rules for what is sent to Snyk are controlled in the \`public\` accept filters", - "method": "POST", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:user/:repo/hooks", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/poetry.lock", }, Object { - "//": "allow webhooks to be deleted, used to cleanup when a user deactivates or deletes a project", - "method": "DELETE", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:owner/:repo/hooks/:id", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpoetry.lock", }, Object { - "//": "used to create commit status messages", - "method": "POST", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:user/:repo/statuses/:sha", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Pipfile", }, Object { - "//": "used to list branches on a repo", + "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:user/:repo/branches", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FPipfile", }, Object { - "//": "used to get branch info", + "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:user/:repo/branches/:branch", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Pipfile.lock", }, Object { - "//": "used to get status checks on a branch", + "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:user/:repo/branches/:branch/protection/required_status_checks/contexts", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FPipfile.lock", }, Object { - "//": "used to create status checks on a branch", - "method": "POST", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:user/:repo/branches/:branch/protection/required_status_checks/contexts", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/yarn.lock", }, Object { - "//": "used to delete status checks on a branch", - "method": "DELETE", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:user/:repo/branches/:branch/protection/required_status_checks/contexts", + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fyarn.lock", }, Object { - "//": "check if repo is public", + "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB}", - "path": "/:user/:repo", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/build.gradle", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/package.json", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fbuild.gradle", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fpackage.json", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/gradle.lockfile", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/package-lock.json", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fgradle.lockfile", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fpackage-lock.json", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/gradle.properties", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Gemfile.lock", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fgradle.properties", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FGemfile.lock", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Directory.Build.targets", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Gemfile", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FDirectory.Build.targets", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FGemfile", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Directory.Build.props", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/pom.xml", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FDirectory.Build.props", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fpom.xml", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Packages.props", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/*req*.txt", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FPackages.props", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2F*req*.txt", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/build.sbt", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/requirements/*.txt", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fbuild.sbt", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Frequirements%2F*.txt", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/packages.config", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/pyproject.toml", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpackages.config", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fpyproject.toml", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*.csproj", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/poetry.lock", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*.csproj", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fpoetry.lock", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*.vbproj", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/yarn.lock", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*.vbproj", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fyarn.lock", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*.fsproj", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/build.gradle", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*.fsproj", }, Object { "//": "used to determine the full dependency tree", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fbuild.gradle", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/project.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fproject.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Gopkg.toml", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FGopkg.toml", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Gopkg.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FGopkg.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/vendor.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fvendor.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/composer.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fcomposer.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/composer.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fcomposer.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/project.assets.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fproject.assets.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Podfile", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FPodfile", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Podfile.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FPodfile.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/go.mod", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fgo.mod", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/go.sum", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fgo.sum", + }, + Object { + "//": "used to scan Dockerfile", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*Dockerfile*", + }, + Object { + "//": "used to scan Dockerfile", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*Dockerfile*", + }, + Object { + "//": "used to check if there's any ignore rules or existing patches", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/.snyk", + }, + Object { + "//": "used to check if there's any ignore rules or existing patches", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F.snyk", + }, + Object { + "//": "used to determine the full dependency tree for v3 protocol", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v3/projects/:project/repository/files", + "valid": Array [ + Object { + "queryParam": "file_path", + "values": Array [ + "**/package.json", + "**%2Fpackage.json", + "**/yarn.lock", + "**%2Fyarn.lock", + "**/package-lock.json", + "**%2Fpackage-lock.json", + "**/Gemfile", + "**%2FGemfile", + "**/Gemfile.lock", + "**%2FGemfile.lock", + "**/pom.xml", + "**%2Fpom.xml", + "**/*req*.txt", + "**%2F*req*.txt", + "**/requirements/*.txt", + "**%2Frequirements%2F*.txt", + "**/pyproject.toml", + "**%2Fpyproject.toml", + "**/poetry.lock", + "**%2Fpoetry.lock", + "**/build.gradle", + "**%2Fbuild.gradle", + "**/gradle.lockfile", + "**%2Fgradle.lockfile", + "**/build.sbt", + "**%2Fbuild.sbt", + "**/.snyk", + "**%2F.snyk", + "**/packages.config", + "**%2Fpackages.config", + "**/*.csproj", + "**%2F*.csproj", + "**/*.vbproj", + "**%2F*.vbproj", + "**/*.fsproj", + "**%2F*.fsproj", + "**/project.json", + "**%2Fproject.json", + "**/Gopkg.toml", + "**%2FGopkg.toml", + "**/Gopkg.lock", + "**%2FGopkg.lock", + "**/vendor.json", + "**%2Fvendor.json", + "**/composer.lock", + "**%2Fcomposer.lock", + "**/composer.json", + "**%2Fcomposer.json", + "**/project.assets.json", + "**%2Fproject.assets.json", + "**/Podfile", + "**%2FPodfile", + "**/Podfile.lock", + "**%2FPodfile.lock", + "**/go.mod", + "**%2Fgo.mod", + "**/go.sum", + "**%2Fgo.sum", + ], + }, + ], + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/package.json", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpackage.json", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/package-lock.json", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpackage-lock.json", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Gemfile.lock", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FGemfile.lock", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Gemfile", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FGemfile", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/pom.xml", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpom.xml", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*req*.txt", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*req*.txt", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/gradle.lockfile", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/pyproject.toml", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fgradle.lockfile", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpyproject.toml", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/gradle.properties", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/poetry.lock", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fgradle.properties", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpoetry.lock", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Packages.props", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/yarn.lock", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FPackages.props", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fyarn.lock", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Directory.Build.props", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/build.gradle", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FDirectory.Build.props", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fbuild.gradle", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Directory.Build.targets", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/gradle.lockfile", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FDirectory.Build.targets", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fgradle.lockfile", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/build.sbt", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/gradle.properties", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fbuild.sbt", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fgradle.properties", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/packages.config", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Directory.Build.targets", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fpackages.config", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FDirectory.Build.targets", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/*.csproj", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Directory.Build.props", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2F*.csproj", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FDirectory.Build.props", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/*.fsproj", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Packages.props", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2F*.fsproj", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FPackages.props", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/*.vbproj", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/build.sbt", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2F*.vbproj", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fbuild.sbt", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/project.json", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/packages.config", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fproject.json", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpackages.config", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Gopkg.toml", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*.csproj", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FGopkg.toml", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*.csproj", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Gopkg.lock", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*.vbproj", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FGopkg.lock", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*.vbproj", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/vendor.json", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*.fsproj", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fvendor.json", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*.fsproj", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/composer.lock", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/project.json", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fcomposer.lock", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fproject.json", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/composer.json", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Gopkg.toml", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fcomposer.json", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FGopkg.toml", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/project.assets.json", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Gopkg.lock", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fproject.assets.json", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FGopkg.lock", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Podfile", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/vendor.json", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FPodfile", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fvendor.json", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Podfile.lock", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/composer.lock", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FPodfile.lock", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fcomposer.lock", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/go.mod", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/composer.json", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fgo.mod", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fcomposer.json", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/go.mod", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/project.assets.json", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fgo.mod", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fproject.assets.json", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/go.sum", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Podfile", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fgo.sum", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FPodfile", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/go.sum", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Podfile.lock", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fgo.sum", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FPodfile.lock", }, Object { - "//": "used to scan Dockerfile", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/*Dockerfile*", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/go.mod", }, Object { - "//": "used to scan Dockerfile", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2F*Dockerfile*", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fgo.mod", }, Object { - "//": "used to scan Dockerfile", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/*Dockerfile*", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/go.sum", }, Object { - "//": "used to scan Dockerfile", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2F*Dockerfile*", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fgo.sum", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/package.json", + "//": "used to create Dockerfile", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*Dockerfile*", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fpackage.json", + "//": "used to create Dockerfile", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*Dockerfile*", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/package-lock.json", + "//": "used to create ignore rules or patches", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/.snyk", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fpackage-lock.json", + "//": "used to create ignore rules or patches", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F.snyk", }, Object { - "//": "used to update manifest or lock", - "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Gemfile.lock", + "//": "used to create manifest file for v3 protocol", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v3/projects/:project/repository/files", + "valid": Array [ + Object { + "queryParam": "file_path", + "values": Array [ + "**/package.json", + "**%2Fpackage.json", + "**/yarn.lock", + "**%2Fyarn.lock", + "**/package-lock.json", + "**%2Fpackage-lock.json", + "**/Gemfile", + "**%2FGemfile", + "**/Gemfile.lock", + "**%2FGemfile.lock", + "**/pom.xml", + "**%2Fpom.xml", + "**/*req*.txt", + "**%2F*req*.txt", + "**/pyproject.toml", + "**%2Fpyproject.toml", + "**/poetry.lock", + "**%2Fpoetry.lock", + "**/build.gradle", + "**%2Fbuild.gradle", + "**/gradle.lockfile", + "**%2Fgradle.lockfile", + "**/build.sbt", + "**%2Fbuild.sbt", + "**/.snyk", + "**%2F.snyk", + "**/packages.config", + "**%2Fpackages.config", + "**/*.csproj", + "**%2F*.csproj", + "**/*.vbproj", + "**%2F*.vbproj", + "**/*.fsproj", + "**%2F*.fsproj", + "**/project.json", + "**%2Fproject.json", + "**/Gopkg.toml", + "**%2FGopkg.toml", + "**/Gopkg.lock", + "**%2FGopkg.lock", + "**/vendor.json", + "**%2Fvendor.json", + "**/composer.lock", + "**%2Fcomposer.lock", + "**/composer.json", + "**%2Fcomposer.json", + "**/project.assets.json", + "**%2Fproject.assets.json", + "**/Podfile", + "**%2FPodfile", + "**/Podfile.lock", + "**%2FPodfile.lock", + "**/go.mod", + "**%2Fgo.mod", + "**/go.sum", + "**%2Fgo.sum", + ], + }, + ], }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FGemfile.lock", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/package.json", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Gemfile", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpackage.json", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FGemfile", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/package-lock.json", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/pom.xml", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpackage-lock.json", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fpom.xml", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Gemfile.lock", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/*req*.txt", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FGemfile.lock", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2F*req*.txt", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Gemfile", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/pyproject.toml", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FGemfile", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fpyproject.toml", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/pom.xml", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/poetry.lock", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpom.xml", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fpoetry.lock", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*req*.txt", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/yarn.lock", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*req*.txt", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fyarn.lock", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/pyproject.toml", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/build.gradle", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpyproject.toml", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fbuild.gradle", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/poetry.lock", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/gradle.lockfile", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpoetry.lock", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fgradle.lockfile", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/yarn.lock", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/gradle.properties", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fyarn.lock", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fgradle.properties", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/build.gradle", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Packages.props", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fbuild.gradle", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FPackages.props", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/gradle.lockfile", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Directory.Build.props", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fgradle.lockfile", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FDirectory.Build.props", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/gradle.properties", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Directory.Build.targets", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fgradle.properties", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FDirectory.Build.targets", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Directory.Build.targets", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/build.sbt", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FDirectory.Build.targets", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fbuild.sbt", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Directory.Build.props", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/packages.config", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FDirectory.Build.props", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fpackages.config", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Packages.props", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/*.csproj", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FPackages.props", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2F*.csproj", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/build.sbt", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/*.fsproj", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fbuild.sbt", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2F*.fsproj", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/packages.config", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/*.vbproj", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpackages.config", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2F*.vbproj", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*.csproj", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/project.json", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*.csproj", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fproject.json", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*.vbproj", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Gopkg.toml", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*.vbproj", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FGopkg.toml", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*.fsproj", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Gopkg.lock", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*.fsproj", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FGopkg.lock", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/project.json", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/vendor.json", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fproject.json", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fvendor.json", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Gopkg.toml", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/composer.lock", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FGopkg.toml", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fcomposer.lock", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Gopkg.lock", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/composer.json", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FGopkg.lock", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fcomposer.json", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/vendor.json", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/project.assets.json", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fvendor.json", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fproject.assets.json", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/composer.lock", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Podfile", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fcomposer.lock", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FPodfile", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/composer.json", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/Podfile.lock", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fcomposer.json", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2FPodfile.lock", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/project.assets.json", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/go.mod", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fproject.assets.json", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fgo.mod", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Podfile", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/go.mod", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FPodfile", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fgo.mod", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Podfile.lock", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/go.sum", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FPodfile.lock", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2Fgo.sum", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/go.mod", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/go.sum", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fgo.mod", }, Object { - "//": "used to update manifest or lock", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2Fgo.sum", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/go.sum", }, Object { - "//": "used to write or update ignore rules or existing patches", + "//": "used to update manifest file", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/.snyk", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fgo.sum", }, Object { - "//": "used to write or update ignore rules or existing patches", + "//": "used to update Dockerfile", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2F.snyk", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*Dockerfile*", }, Object { "//": "used to update Dockerfile", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/*Dockerfile*", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*Dockerfile*", }, Object { - "//": "used to update Dockerfile", + "//": "used to update ignore rules or existing patches", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2F*Dockerfile*", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/.snyk", }, Object { - "//": "used to update Dockerfile", + "//": "used to update ignore rules or existing patches", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*/*Dockerfile*", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F.snyk", }, Object { - "//": "used to update Dockerfile", + "//": "used to update manifest file for v3 protocol", "method": "PUT", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", - "path": "/:name/:repo/:path*%2F*Dockerfile*", + "origin": "https://\${GITLAB}", + "path": "/api/v3/projects/:project/repository/files", + "valid": Array [ + Object { + "queryParam": "file_path", + "values": Array [ + "**/package.json", + "**%2Fpackage.json", + "**/yarn.lock", + "**%2Fyarn.lock", + "**/package-lock.json", + "**%2Fpackage-lock.json", + "**/Gemfile", + "**%2FGemfile", + "**/Gemfile.lock", + "**%2FGemfile.lock", + "**/pom.xml", + "**%2Fpom.xml", + "**/*req*.txt", + "**%2F*req*.txt", + "**/pyproject.toml", + "**%2Fpyproject.toml", + "**/poetry.lock", + "**%2Fpoetry.lock", + "**/build.gradle", + "**%2Fbuild.gradle", + "**/gradle.lockfile", + "**%2Fgradle.lockfile", + "**/build.sbt", + "**%2Fbuild.sbt", + "**/.snyk", + "**%2F.snyk", + "**/packages.config", + "**%2Fpackages.config", + "**/*.csproj", + "**%2F*.csproj", + "**/*.vbproj", + "**%2F*.vbproj", + "**/*.fsproj", + "**%2F*.fsproj", + "**/project.json", + "**%2Fproject.json", + "**/Gopkg.toml", + "**%2FGopkg.toml", + "**/Gopkg.lock", + "**%2FGopkg.lock", + "**/vendor.json", + "**%2Fvendor.json", + "**/composer.lock", + "**%2Fcomposer.lock", + "**/composer.json", + "**%2Fcomposer.json", + "**/project.assets.json", + "**%2Fproject.assets.json", + "**/Podfile", + "**%2FPodfile", + "**/Podfile.lock", + "**%2FPodfile.lock", + "**/go.mod", + "**%2Fgo.mod", + "**/go.sum", + "**%2Fgo.sum", + ], + }, + ], }, Object { - "//": "used to check if there's any ignore rules or existing patches", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*/.snyk", + "//": "allow webhooks to be added, to allow commits to be checked by Snyk. Rules for what is sent to Snyk are controlled in the \`public\` accept filters", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/hooks", }, Object { - "//": "used to check if there's any ignore rules or existing patches", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path*%2F.snyk", + "//": "allow webhooks to be deleted, used to cleanup when a user deactivates or deletes a project", + "method": "DELETE", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/hooks/:id", }, Object { - "//": "get details of the repo", + "//": "used to create commit status messages", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/statuses/:sha", + }, + Object { + "//": "used to create branch for fix merge request", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/branches", + }, + Object { + "//": "used to create merge request for fix merge request", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/merge_requests", + }, + Object { + "//": "used to fetch fix merge request information", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/merge_requests", }, Object { - "//": "get the details of the commit to determine its SHA", + "//": "list the user's groups", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/commits/:ref", - "valid": Array [ - Object { - "header": "accept", - "values": Array [ - "application/vnd.github.v4.sha", - ], - }, - ], + "origin": "https://\${GITLAB}", + "path": "/api/v4/groups", }, Object { - "//": "get a list of all the refs to match find whether an existing PR is open", + "//": "list of projects in a group", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/git/refs", + "origin": "https://\${GITLAB}", + "path": "/api/v4/groups/:id/projects", }, Object { - "//": "get the head commit of an individual ref", + "//": "get current user. so we'll be able to fetch it's projects", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/git/refs/heads/:ref", + "origin": "https://\${GITLAB}", + "path": "/api/v4/user", }, Object { - "//": "get the details of an individual ref", + "//": "get user's projects", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/git/refs/:ref", + "origin": "https://\${GITLAB}", + "path": "/api/v4/users/:user/projects", }, Object { - "//": "compares two commits against each other", + "//": "get all users. so we'll be able to fetch projects that admin can access", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/compare/:base...:head", + "origin": "https://\${GITLAB}", + "path": "/api/v4/users", }, Object { - "//": "search for open snyk pull requests", + "//": "used to get repo's contributors list", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/pulls", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/commits", }, Object { - "//": "get pull request data for getting merge sha and tracking PR processing state", + "//": "get a specific commit identified by the commit hash or name of a branch or tag.", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/pulls/:pull_number", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/commits/:sha", }, Object { - "//": "get pull request file names", + "//": "get merge base of two commits for given project.", "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/pulls/:pull_number/files", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/merge_base", }, Object { - "//": "add commit data for new PR", - "method": "POST", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/git/refs", + "//": "used to redirect requests to snyk git client", + "method": "any", + "origin": "\${GIT_CLIENT_URL}", + "path": "/snykgit/*", }, Object { - "//": "create the pull request", - "method": "POST", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/pulls", + "//": "allow info refs (for git clone)", + "method": "GET", + "origin": "https://oauth2:\${GITLAB_TOKEN}@\${GITLAB}", + "path": "*/info/refs*", }, Object { - "//": "add pull request assignees", + "//": "allow git-upload-pack (for git clone)", "method": "POST", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/issues/:pull_number/assignees", + "origin": "https://oauth2:\${GITLAB_TOKEN}@\${GITLAB}", + "path": "*/git-upload-pack", }, Object { - "//": "update ref", - "method": "PATCH", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/git/refs/:sha", + "//": "needed to load code snippets", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files/:path", }, + ], + "public": Array [ Object { - "//": "update ref head", - "method": "PATCH", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/git/refs/heads/:ref", + "//": "used for pushing up webhooks from gitlab", + "method": "POST", + "path": "/webhook/gitlab/:webhookId", }, + ], +} +`; + +exports[`filter Rules Loading Injection of valid IAC extensions - Testing azure-repos 1`] = ` +Object { + "private": Array [ Object { - "//": "get list of all files in a repo", + "//": "get list of projects for given organisation", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/git/trees/:ref", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/_apis/projects", }, Object { - "//": "used to get repo's contributors list", + "//": "get specific repository for given organisation", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:owner/:repo/commits", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo", }, Object { - "//": "used to redirect requests to snyk git client", - "method": "any", - "origin": "\${GIT_CLIENT_URL}", - "path": "/snykgit/*", + "//": "get list of repositories for given organisation", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories", }, Object { - "//": "query graphql", - "method": "POST", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_GRAPHQL}", - "path": "/graphql", + "//": "get list of refs", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/refs", }, Object { - "//": "allow info refs (for git clone)", + "//": "search through repositories of given organisation", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, "method": "GET", - "origin": "https://pat:\${GITHUB_TOKEN}@\${GITHUB}", - "path": "*/info/refs*", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "_apis/git/repositories", }, Object { - "//": "allow git-upload-pack (for git clone)", + "//": "create hook", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, "method": "POST", - "origin": "https://pat:\${GITHUB_TOKEN}@\${GITHUB}", - "path": "*/git-upload-pack", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/_apis/hooks/subscriptions", }, Object { - "//": "needed to load code snippets", - "method": "GET", - "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", - "path": "/repos/:name/:repo/contents/:path", + "//": "delete hook", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "DELETE", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/_apis/hooks/subscriptions/:subscriptionId", }, - ], - "public": Array [ Object { - "//": "used for pushing up webhooks from github", - "method": "POST", - "path": "/webhook/github", + "//": "get file content. restrict by file types", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/items", "valid": Array [ Object { - "//": "accept all pull request state changes (these don't have files in them)", - "path": "pull_request.state", - "value": "open", - }, - Object { - "path": "commits.*.added.*", - "value": "package.json", - }, - Object { - "path": "commits.*.modified.*", - "value": "package.json", - }, - Object { - "path": "commits.*.added.*", - "value": "package-lock.json", - }, - Object { - "path": "commits.*.modified.*", - "value": "package-lock.json", - }, - Object { - "path": "commits.*.added.*", - "value": "Gemfile.lock", - }, - Object { - "path": "commits.*.modified.*", - "value": "Gemfile.lock", - }, - Object { - "path": "commits.*.added.*", - "value": "*req*.txt", - }, - Object { - "path": "commits.*.modified.*", - "value": "*req*.txt", - }, - Object { - "path": "commits.*.added.*", - "value": "requirements%2F*.txt", - }, - Object { - "path": "commits.*.modified.*", - "value": "requirements%2F*.txt", - }, - Object { - "path": "commits.*.added.*", - "value": "requirements/*.txt", - }, - Object { - "path": "commits.*.modified.*", - "value": "requirements/*.txt", - }, - Object { - "path": "commits.*.added.*", - "value": "pyproject.toml", - }, - Object { - "path": "commits.*.modified.*", - "value": "pyproject.toml", - }, - Object { - "path": "commits.*.added.*", - "value": "poetry.lock", - }, - Object { - "path": "commits.*.modified.*", - "value": "poetry.lock", - }, - Object { - "path": "commits.*.added.*", - "value": "Pipfile", - }, - Object { - "path": "commits.*.modified.*", - "value": "Pipfile", - }, - Object { - "path": "commits.*.added.*", - "value": "Pipfile.lock", - }, - Object { - "path": "commits.*.modified.*", - "value": "Pipfile.lock", - }, - Object { - "path": "commits.*.added.*", - "value": "pom.xml", - }, - Object { - "path": "commits.*.modified.*", - "value": "pom.xml", - }, - Object { - "path": "commits.*.added.*", - "value": "build.gradle", - }, - Object { - "path": "commits.*.modified.*", - "value": "build.gradle", - }, - Object { - "path": "commits.*.added.*", - "value": "gradle.lockfile", - }, - Object { - "path": "commits.*.modified.*", - "value": "gradle.lockfile", - }, - Object { - "path": "commits.*.added.*", - "value": "gradle.properties", - }, - Object { - "path": "commits.*.modified.*", - "value": "gradle.properties", - }, - Object { - "path": "commits.*.added.*", - "value": "Directory.Build.targets", - }, - Object { - "path": "commits.*.modified.*", - "value": "Directory.Build.targets", - }, - Object { - "path": "commits.*.added.*", - "value": "Packages.props", - }, - Object { - "path": "commits.*.modified.*", - "value": "Packages.props", - }, - Object { - "path": "commits.*.added.*", - "value": "Directory.Build.props", - }, - Object { - "path": "commits.*.modified.*", - "value": "Directory.Build.props", - }, - Object { - "path": "commits.*.added.*", - "value": "build.sbt", - }, - Object { - "path": "commits.*.modified.*", - "value": "build.sbt", - }, - Object { - "path": "commits.*.added.*", - "value": "yarn.lock", - }, - Object { - "path": "commits.*.modified.*", - "value": "yarn.lock", - }, - Object { - "path": "commits.*.added.*", - "value": ".snyk", - }, - Object { - "path": "commits.*.modified.*", - "value": ".snyk", - }, - Object { - "path": "commits.*.added.*", - "value": "packages.config", - }, - Object { - "path": "commits.*.modified.*", - "value": "packages.config", - }, - Object { - "path": "commits.*.added.*", - "value": "*.csproj", - }, - Object { - "path": "commits.*.modified.*", - "value": "*.csproj", - }, - Object { - "path": "commits.*.added.*", - "value": "*.vbproj", - }, - Object { - "path": "commits.*.modified.*", - "value": "*.vbproj", - }, - Object { - "path": "commits.*.added.*", - "value": "*.fsproj", - }, - Object { - "path": "commits.*.modified.*", - "value": "*.fsproj", - }, - Object { - "path": "commits.*.added.*", - "value": "project.json", - }, - Object { - "path": "commits.*.modified.*", - "value": "project.json", - }, - Object { - "path": "commits.*.added.*", - "value": "Gopkg.toml", - }, - Object { - "path": "commits.*.modified.*", - "value": "Gopkg.toml", - }, - Object { - "path": "commits.*.added.*", - "value": "Gopkg.lock", - }, - Object { - "path": "commits.*.modified.*", - "value": "Gopkg.lock", - }, - Object { - "path": "commits.*.added.*", - "value": "vendor.json", - }, - Object { - "path": "commits.*.modified.*", - "value": "vendor.json", - }, - Object { - "path": "commits.*.added.*", - "value": "composer.lock", - }, - Object { - "path": "commits.*.modified.*", - "value": "composer.lock", - }, - Object { - "path": "commits.*.added.*", - "value": "composer.json", - }, - Object { - "path": "commits.*.modified.*", - "value": "composer.json", - }, - Object { - "path": "commits.*.added.*", - "value": "project.assets.json", + "queryParam": "path", + "values": Array [ + "**/package.json", + "**%2Fpackage.json", + "**/yarn.lock", + "**%2Fyarn.lock", + "**/package-lock.json", + "**%2Fpackage-lock.json", + "**/Gemfile", + "**%2FGemfile", + "**/Gemfile.lock", + "**%2FGemfile.lock", + "**/pom.xml", + "**%2Fpom.xml", + "**/*req*.txt", + "**%2F*req*.txt", + "**/requirements/*.txt", + "**%2Frequirements%2F*.txt", + "**/pyproject.toml", + "**%2Fpyproject.toml", + "**/poetry.lock", + "**%2Fpoetry.lock", + "**/Pipfile", + "**%2FPipfile", + "**/Pipfile.lock", + "**%2FPipfile.lock", + "**/build.gradle", + "**%2Fbuild.gradle", + "**/gradle.lockfile", + "**%2Fgradle.lockfile", + "**/build.sbt", + "**%2Fbuild.sbt", + "**/.snyk", + "**%2F.snyk", + "**/packages.config", + "**%2Fpackages.config", + "**/*.csproj", + "**%2F*.csproj", + "**/*.vbproj", + "**%2F*.vbproj", + "**/*.fsproj", + "**%2F*.fsproj", + "**/project.json", + "**%2Fproject.json", + "**/Gopkg.toml", + "**%2FGopkg.toml", + "**/Gopkg.lock", + "**%2FGopkg.lock", + "**/vendor.json", + "**%2Fvendor.json", + "**/composer.lock", + "**%2Fcomposer.lock", + "**/composer.json", + "**%2Fcomposer.json", + "**/project.assets.json", + "**%2Fproject.assets.json", + "**/Podfile", + "**%2FPodfile", + "**/Podfile.lock", + "**%2FPodfile.lock", + "**/go.mod", + "**%2Fgo.mod", + "**/go.sum", + "**%2Fgo.sum", + "**/*Dockerfile*", + "**%2F*Dockerfile*", + "**/*.tf", + "**%2F*.tf", + "**/*.yaml", + "**%2F*.yaml", + "**/*.json", + "**%2F*.json", + "**/*.yml", + "**%2F*.yml", + "**/*.tpl", + "**%2F*.tpl", + ], }, Object { - "path": "commits.*.modified.*", - "value": "project.assets.json", + "queryParam": "recursionLevel", + "values": Array [ + "none", + ], }, Object { - "path": "commits.*.added.*", - "value": "Podfile", + "queryParam": "download", + "values": Array [ + "true", + ], }, Object { - "path": "commits.*.modified.*", - "value": "Podfile", + "queryParam": "includeContent", + "values": Array [ + "true", + ], }, + ], + }, + Object { + "//": "check file existence. restrict by file types", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/items", + "valid": Array [ Object { - "path": "commits.*.added.*", - "value": "Podfile.lock", + "queryParam": "path", + "values": Array [ + "**/package.json", + "**%2Fpackage.json", + "**/yarn.lock", + "**%2Fyarn.lock", + "**/package-lock.json", + "**%2Fpackage-lock.json", + "**/Gemfile", + "**%2FGemfile", + "**/Gemfile.lock", + "**%2FGemfile.lock", + "**/pom.xml", + "**%2Fpom.xml", + "**/*req*.txt", + "**%2F*req*.txt", + "**/requirements/*.txt", + "**%2Frequirements%2F*.txt", + "**/pyproject.toml", + "**%2Fpyproject.toml", + "**/poetry.lock", + "**%2Fpoetry.lock", + "**/Pipfile", + "**%2FPipfile", + "**/Pipfile.lock", + "**%2FPipfile.lock", + "**/build.gradle", + "**%2Fbuild.gradle", + "**/gradle.lockfile", + "**%2Fgradle.lockfile", + "**/build.sbt", + "**%2Fbuild.sbt", + "**/.snyk", + "**%2F.snyk", + "**/packages.config", + "**%2Fpackages.config", + "**/*.csproj", + "**%2F*.csproj", + "**/*.vbproj", + "**%2F*.vbproj", + "**/*.fsproj", + "**%2F*.fsproj", + "**/project.json", + "**%2Fproject.json", + "**/Gopkg.toml", + "**%2FGopkg.toml", + "**/Gopkg.lock", + "**%2FGopkg.lock", + "**/vendor.json", + "**%2Fvendor.json", + "**/composer.lock", + "**%2Fcomposer.lock", + "**/composer.json", + "**%2Fcomposer.json", + "**/project.assets.json", + "**%2Fproject.assets.json", + "**/Podfile", + "**%2FPodfile", + "**/Podfile.lock", + "**%2FPodfile.lock", + "**/go.mod", + "**%2Fgo.mod", + "**/go.sum", + "**%2Fgo.sum", + "**/*Dockerfile*", + "**%2F*Dockerfile*", + "**/*.tf", + "**%2F*.tf", + "**/*.yaml", + "**%2F*.yaml", + "**/*.json", + "**%2F*.json", + "**/*.yml", + "**%2F*.yml", + "**/*.tpl", + "**%2F*.tpl", + ], }, Object { - "path": "commits.*.modified.*", - "value": "Podfile.lock", + "queryParam": "versionDescriptor.versionType", + "values": Array [ + "branch", + ], }, Object { - "path": "commits.*.added.*", - "value": "go.mod", + "queryParam": "includeContentMetadata", + "values": Array [ + "true", + ], }, + ], + }, + Object { + "//": "get list of files for given repository", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/items", + "valid": Array [ Object { - "path": "commits.*.modified.*", - "value": "go.mod", + "queryParam": "recursionLevel", + "values": Array [ + "full", + ], }, Object { - "path": "commits.*.added.*", - "value": "go.sum", + "queryParam": "download", + "values": Array [ + "false", + ], }, Object { - "path": "commits.*.modified.*", - "value": "go.sum", + "queryParam": "includeContent", + "values": Array [ + "false", + ], }, ], }, Object { - "//": "used for pushing up webhooks from github", + "//": "get list of commits for given repository", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/commits", + }, + Object { + "//": "get merge base of two commits for given repository", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/commits/:commitId/mergebases", + }, + Object { + "//": "update status of given commit", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, "method": "POST", - "path": "/webhook/github/:webhookId", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/commits/:commitId/statuses", + }, + Object { + "//": "update status of given pull request", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "POST", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/pullRequests/:pullRef/statuses", + }, + Object { + "//": "find PR for given repository", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/pullrequests", + }, + Object { + "//": "create new PR in given repository", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "POST", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/pullrequests", + }, + Object { + "//": "update existing PR in given repository", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "PATCH", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/pullrequests/:pullRef", + }, + Object { + "//": "push new commit in given repository", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "POST", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/pushes", + }, + Object { + "//": "used to redirect requests to snyk git client", + "method": "any", + "origin": "\${GIT_CLIENT_URL}", + "path": "/snykgit/*", + }, + ], + "public": Array [ + Object { + "//": "used for pushing up webhooks from Azure", + "method": "POST", + "path": "/webhook/azure-repos/:webhookId", }, ], } `; -exports[`filter Rules Loading Injection of valid Git rules - Testing gitlab 1`] = ` +exports[`filter Rules Loading Injection of valid IAC extensions - Testing azure-repos 2`] = ` Object { "private": Array [ Object { - "//": "identify user", + "//": "get list of projects for given organisation", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/user", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/_apis/projects", }, Object { - "//": "list the user's projects", + "//": "get specific repository for given organisation", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo", }, Object { - "//": "list the user's projects", + "//": "get list of repositories for given organisation", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v3/projects", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories", }, Object { - "//": "list the user's visible projects", + "//": "get list of refs", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v3/projects/visible", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/refs", }, Object { - "//": "get a user's project", + "//": "search through repositories of given organisation", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v3/projects/:project", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "_apis/git/repositories", }, Object { - "//": "get a user's project", + "//": "create hook", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "POST", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/_apis/hooks/subscriptions", + }, + Object { + "//": "delete hook", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "DELETE", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/_apis/hooks/subscriptions/:subscriptionId", + }, + Object { + "//": "get file content. restrict by file types", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/items", + "valid": Array [ + Object { + "queryParam": "path", + "values": Array [ + "**/package.json", + "**%2Fpackage.json", + "**/yarn.lock", + "**%2Fyarn.lock", + "**/package-lock.json", + "**%2Fpackage-lock.json", + "**/Gemfile", + "**%2FGemfile", + "**/Gemfile.lock", + "**%2FGemfile.lock", + "**/pom.xml", + "**%2Fpom.xml", + "**/*req*.txt", + "**%2F*req*.txt", + "**/requirements/*.txt", + "**%2Frequirements%2F*.txt", + "**/pyproject.toml", + "**%2Fpyproject.toml", + "**/poetry.lock", + "**%2Fpoetry.lock", + "**/Pipfile", + "**%2FPipfile", + "**/Pipfile.lock", + "**%2FPipfile.lock", + "**/build.gradle", + "**%2Fbuild.gradle", + "**/gradle.lockfile", + "**%2Fgradle.lockfile", + "**/build.sbt", + "**%2Fbuild.sbt", + "**/.snyk", + "**%2F.snyk", + "**/packages.config", + "**%2Fpackages.config", + "**/*.csproj", + "**%2F*.csproj", + "**/*.vbproj", + "**%2F*.vbproj", + "**/*.fsproj", + "**%2F*.fsproj", + "**/project.json", + "**%2Fproject.json", + "**/Gopkg.toml", + "**%2FGopkg.toml", + "**/Gopkg.lock", + "**%2FGopkg.lock", + "**/vendor.json", + "**%2Fvendor.json", + "**/composer.lock", + "**%2Fcomposer.lock", + "**/composer.json", + "**%2Fcomposer.json", + "**/project.assets.json", + "**%2Fproject.assets.json", + "**/Podfile", + "**%2FPodfile", + "**/Podfile.lock", + "**%2FPodfile.lock", + "**/go.mod", + "**%2Fgo.mod", + "**/go.sum", + "**%2Fgo.sum", + "**/*Dockerfile*", + "**%2F*Dockerfile*", + "**/*.tf", + "**%2F*.tf", + "**/*.json", + "**%2F*.json", + ], + }, + Object { + "queryParam": "recursionLevel", + "values": Array [ + "none", + ], + }, + Object { + "queryParam": "download", + "values": Array [ + "true", + ], + }, + Object { + "queryParam": "includeContent", + "values": Array [ + "true", + ], + }, + ], }, Object { - "//": "used to search all manifest files", + "//": "check file existence. restrict by file types", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/tree", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/items", + "valid": Array [ + Object { + "queryParam": "path", + "values": Array [ + "**/package.json", + "**%2Fpackage.json", + "**/yarn.lock", + "**%2Fyarn.lock", + "**/package-lock.json", + "**%2Fpackage-lock.json", + "**/Gemfile", + "**%2FGemfile", + "**/Gemfile.lock", + "**%2FGemfile.lock", + "**/pom.xml", + "**%2Fpom.xml", + "**/*req*.txt", + "**%2F*req*.txt", + "**/requirements/*.txt", + "**%2Frequirements%2F*.txt", + "**/pyproject.toml", + "**%2Fpyproject.toml", + "**/poetry.lock", + "**%2Fpoetry.lock", + "**/Pipfile", + "**%2FPipfile", + "**/Pipfile.lock", + "**%2FPipfile.lock", + "**/build.gradle", + "**%2Fbuild.gradle", + "**/gradle.lockfile", + "**%2Fgradle.lockfile", + "**/build.sbt", + "**%2Fbuild.sbt", + "**/.snyk", + "**%2F.snyk", + "**/packages.config", + "**%2Fpackages.config", + "**/*.csproj", + "**%2F*.csproj", + "**/*.vbproj", + "**%2F*.vbproj", + "**/*.fsproj", + "**%2F*.fsproj", + "**/project.json", + "**%2Fproject.json", + "**/Gopkg.toml", + "**%2FGopkg.toml", + "**/Gopkg.lock", + "**%2FGopkg.lock", + "**/vendor.json", + "**%2Fvendor.json", + "**/composer.lock", + "**%2Fcomposer.lock", + "**/composer.json", + "**%2Fcomposer.json", + "**/project.assets.json", + "**%2Fproject.assets.json", + "**/Podfile", + "**%2FPodfile", + "**/Podfile.lock", + "**%2FPodfile.lock", + "**/go.mod", + "**%2Fgo.mod", + "**/go.sum", + "**%2Fgo.sum", + "**/*Dockerfile*", + "**%2F*Dockerfile*", + "**/*.tf", + "**%2F*.tf", + "**/*.json", + "**%2F*.json", + ], + }, + Object { + "queryParam": "versionDescriptor.versionType", + "values": Array [ + "branch", + ], + }, + Object { + "queryParam": "includeContentMetadata", + "values": Array [ + "true", + ], + }, + ], + }, + Object { + "//": "get list of files for given repository", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/items", + "valid": Array [ + Object { + "queryParam": "recursionLevel", + "values": Array [ + "full", + ], + }, + Object { + "queryParam": "download", + "values": Array [ + "false", + ], + }, + Object { + "queryParam": "includeContent", + "values": Array [ + "false", + ], + }, + ], }, Object { - "//": "used to determine the full dependency tree", + "//": "get list of commits for given repository", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/package.json", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/commits", }, Object { - "//": "used to determine the full dependency tree", + "//": "get merge base of two commits for given repository", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fpackage.json", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/commits/:commitId/mergebases", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/package-lock.json", + "//": "update status of given commit", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "POST", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/commits/:commitId/statuses", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fpackage-lock.json", + "//": "update status of given pull request", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "POST", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/pullRequests/:pullRef/statuses", }, Object { - "//": "used to determine the full dependency tree", + "//": "find PR for given repository", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Gemfile.lock", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/pullrequests", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FGemfile.lock", + "//": "create new PR in given repository", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "POST", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/pullrequests", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Gemfile", + "//": "update existing PR in given repository", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "PATCH", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/pullrequests/:pullRef", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FGemfile", + "//": "push new commit in given repository", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "POST", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/pushes", }, Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/pom.xml", + "//": "used to redirect requests to snyk git client", + "method": "any", + "origin": "\${GIT_CLIENT_URL}", + "path": "/snykgit/*", }, + ], + "public": Array [ Object { - "//": "used to determine the full dependency tree", - "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fpom.xml", + "//": "used for pushing up webhooks from Azure", + "method": "POST", + "path": "/webhook/azure-repos/:webhookId", }, + ], +} +`; + +exports[`filter Rules Loading Injection of valid IAC extensions - Testing bitbucket-server 1`] = ` +Object { + "private": Array [ Object { - "//": "used to determine the full dependency tree", + "//": "list the user's projects", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/*req*.txt", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects", }, Object { - "//": "used to determine the full dependency tree", + "//": "list the project's repos", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2F*req*.txt", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:projectKey/repos", }, Object { - "//": "used to determine the full dependency tree", + "//": "list the user's repos", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/requirements/*.txt", + "origin": "https://\${BITBUCKET_API}", + "path": "/repos", }, Object { - "//": "used to determine the full dependency tree", + "//": "fetch a given repo", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Frequirements%2F*.txt", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo", }, Object { - "//": "used to determine the full dependency tree", + "//": "read all file names to find manifests", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/pyproject.toml", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/files/:searchPath?", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fpyproject.toml", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/package.json", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/poetry.lock", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fpackage.json", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fpoetry.lock", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/package-lock.json", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Pipfile", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fpackage-lock.json", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FPipfile", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Gemfile.lock", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Pipfile.lock", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FGemfile.lock", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FPipfile.lock", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Gemfile", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/yarn.lock", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FGemfile", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fyarn.lock", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/pom.xml", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/build.gradle", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fpom.xml", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fbuild.gradle", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/*req*.txt", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/gradle.lockfile", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F*req*.txt", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fgradle.lockfile", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/requirements/*.txt", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/gradle.properties", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Frequirements%2F*.txt", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fgradle.properties", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/pyproject.toml", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Directory.Build.targets", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fpyproject.toml", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FDirectory.Build.targets", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/poetry.lock", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Directory.Build.props", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fpoetry.lock", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FDirectory.Build.props", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Pipfile", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Packages.props", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FPipfile", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FPackages.props", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Pipfile.lock", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/build.sbt", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FPipfile.lock", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fbuild.sbt", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/yarn.lock", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/packages.config", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fyarn.lock", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fpackages.config", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/build.gradle", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/*.csproj", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fbuild.gradle", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2F*.csproj", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/gradle.lockfile", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/*.vbproj", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fgradle.lockfile", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2F*.vbproj", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/gradle.properties", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/*.fsproj", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fgradle.properties", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2F*.fsproj", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Packages.props", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/project.json", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FPackages.props", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fproject.json", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Directory.Build.props", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Gopkg.toml", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FDirectory.Build.props", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FGopkg.toml", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Directory.Build.targets", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Gopkg.lock", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FDirectory.Build.targets", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FGopkg.lock", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/build.sbt", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/vendor.json", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fbuild.sbt", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fvendor.json", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/packages.config", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/composer.lock", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fpackages.config", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fcomposer.lock", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/*.csproj", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/composer.json", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F*.csproj", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fcomposer.json", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/*.vbproj", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/project.assets.json", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F*.vbproj", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fproject.assets.json", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/*.fsproj", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Podfile", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F*.fsproj", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FPodfile", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/project.json", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Podfile.lock", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fproject.json", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FPodfile.lock", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Gopkg.toml", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/go.mod", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FGopkg.toml", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fgo.mod", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Gopkg.lock", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/go.sum", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FGopkg.lock", }, Object { "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fgo.sum", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/vendor.json", }, Object { - "//": "used to scan Dockerfile", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/*Dockerfile*", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fvendor.json", }, Object { - "//": "used to scan Dockerfile", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2F*Dockerfile*", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/composer.lock", }, Object { - "//": "used to check if there's any ignore rules or existing patches", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/.snyk", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fcomposer.lock", }, Object { - "//": "used to check if there's any ignore rules or existing patches", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2F.snyk", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/composer.json", }, Object { - "//": "used to determine the full dependency tree for v3 protocol", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v3/projects/:project/repository/files", - "valid": Array [ - Object { - "queryParam": "file_path", - "values": Array [ - "**/package.json", - "**%2Fpackage.json", - "**/yarn.lock", - "**%2Fyarn.lock", - "**/package-lock.json", - "**%2Fpackage-lock.json", - "**/Gemfile", - "**%2FGemfile", - "**/Gemfile.lock", - "**%2FGemfile.lock", - "**/pom.xml", - "**%2Fpom.xml", - "**/*req*.txt", - "**%2F*req*.txt", - "**/requirements/*.txt", - "**%2Frequirements%2F*.txt", - "**/pyproject.toml", - "**%2Fpyproject.toml", - "**/poetry.lock", - "**%2Fpoetry.lock", - "**/build.gradle", - "**%2Fbuild.gradle", - "**/gradle.lockfile", - "**%2Fgradle.lockfile", - "**/build.sbt", - "**%2Fbuild.sbt", - "**/.snyk", - "**%2F.snyk", - "**/packages.config", - "**%2Fpackages.config", - "**/*.csproj", - "**%2F*.csproj", - "**/*.vbproj", - "**%2F*.vbproj", - "**/*.fsproj", - "**%2F*.fsproj", - "**/project.json", - "**%2Fproject.json", - "**/Gopkg.toml", - "**%2FGopkg.toml", - "**/Gopkg.lock", - "**%2FGopkg.lock", - "**/vendor.json", - "**%2Fvendor.json", - "**/composer.lock", - "**%2Fcomposer.lock", - "**/composer.json", - "**%2Fcomposer.json", - "**/project.assets.json", - "**%2Fproject.assets.json", - "**/Podfile", - "**%2FPodfile", - "**/Podfile.lock", - "**%2FPodfile.lock", - "**/go.mod", - "**%2Fgo.mod", - "**/go.sum", - "**%2Fgo.sum", - ], - }, - ], - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/package.json", - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fpackage.json", - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/package-lock.json", - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fpackage-lock.json", - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Gemfile.lock", - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FGemfile.lock", - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Gemfile", - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FGemfile", - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/pom.xml", - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fpom.xml", - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/*req*.txt", - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2F*req*.txt", - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/pyproject.toml", - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fpyproject.toml", - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/poetry.lock", - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fpoetry.lock", - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/yarn.lock", - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fyarn.lock", - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/build.gradle", - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fbuild.gradle", - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/gradle.lockfile", - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fgradle.lockfile", - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/gradle.properties", - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fgradle.properties", - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Directory.Build.targets", - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FDirectory.Build.targets", - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Directory.Build.props", - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FDirectory.Build.props", - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Packages.props", - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FPackages.props", - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/build.sbt", - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fbuild.sbt", - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/packages.config", - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fpackages.config", - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/*.csproj", - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2F*.csproj", - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/*.vbproj", - }, - Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2F*.vbproj", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fcomposer.json", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/*.fsproj", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/project.assets.json", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2F*.fsproj", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fproject.assets.json", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/project.json", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Podfile", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fproject.json", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FPodfile", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Gopkg.toml", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Podfile.lock", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FGopkg.toml", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FPodfile.lock", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Gopkg.lock", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/go.mod", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FGopkg.lock", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fgo.mod", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/vendor.json", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/go.sum", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fvendor.json", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fgo.sum", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/composer.lock", + "//": "used to scan Dockerfile", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/*Dockerfile*", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fcomposer.lock", + "//": "used to scan Dockerfile", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F*Dockerfile*", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/composer.json", + "//": "used to check if there's any ignore rules or existing patches", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/.snyk", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fcomposer.json", + "//": "used to check if there's any ignore rules or existing patches", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F.snyk", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/project.assets.json", + "//": "get list of API capabilities", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/capabilities", }, Object { - "//": "used to create manifest file", + "//": "allow webhooks to be added, to allow commits to be checked by Snyk. Rules for what is sent to Snyk are controlled in the \`public\` accept filters", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fproject.assets.json", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/webhooks", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Podfile", + "//": "allow webhooks to be deleted, used to cleanup when a user deactivates or deletes a project", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "DELETE", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/webhooks/:webhookId", }, Object { - "//": "used to create manifest file", + "//": "used to create commit status messages", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FPodfile", + "origin": "https://\${BITBUCKET}", + "path": "/rest/build-status/1.0/commits/:sha", }, Object { - "//": "used to create manifest file", + "//": "used to create a new branch for fix PRs", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Podfile.lock", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/branches", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FPodfile.lock", + "//": "used to create or update a file for fix PRs", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "PUT", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/browse/*", }, Object { - "//": "used to create manifest file", + "//": "used to create a pull request for fix PRs", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/go.mod", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/pull-requests", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fgo.mod", + "//": "used to query for open pull requests by branch", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/pull-requests", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/go.sum", + "//": "used to query for a merge-base for a pull request", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/pull-requests/:pullRequestId/changes", }, Object { - "//": "used to create manifest file", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fgo.sum", + "//": "used to check for a repo's default branch", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/branches/default", }, Object { - "//": "used to create Dockerfile", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/*Dockerfile*", + "//": "Used to get a branch specified by query string", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/branches:filterText?", }, Object { - "//": "used to create Dockerfile", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2F*Dockerfile*", + "//": "get a specific commit identified by the commit hash or name of a branch", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/commits/:sha", }, Object { - "//": "used to create ignore rules or patches", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/.snyk", + "//": "used to create a Code Insights report", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "PUT", + "origin": "https://\${BITBUCKET}", + "path": "/rest/insights/:apiVersion/projects/:project/repos/:repo/commits/:sha/reports/:report", }, Object { - "//": "used to create ignore rules or patches", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2F.snyk", + "//": "used to remove a Code Insights report", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "DELETE", + "origin": "https://\${BITBUCKET}", + "path": "/rest/insights/:apiVersion/projects/:project/repos/:repo/commits/:sha/reports/:report", }, Object { - "//": "used to create manifest file for v3 protocol", + "//": "used to add Code Insights annotations to a report", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v3/projects/:project/repository/files", - "valid": Array [ - Object { - "queryParam": "file_path", - "values": Array [ - "**/package.json", - "**%2Fpackage.json", - "**/yarn.lock", - "**%2Fyarn.lock", - "**/package-lock.json", - "**%2Fpackage-lock.json", - "**/Gemfile", - "**%2FGemfile", - "**/Gemfile.lock", - "**%2FGemfile.lock", - "**/pom.xml", - "**%2Fpom.xml", - "**/*req*.txt", - "**%2F*req*.txt", - "**/pyproject.toml", - "**%2Fpyproject.toml", - "**/poetry.lock", - "**%2Fpoetry.lock", - "**/build.gradle", - "**%2Fbuild.gradle", - "**/gradle.lockfile", - "**%2Fgradle.lockfile", - "**/build.sbt", - "**%2Fbuild.sbt", - "**/.snyk", - "**%2F.snyk", - "**/packages.config", - "**%2Fpackages.config", - "**/*.csproj", - "**%2F*.csproj", - "**/*.vbproj", - "**%2F*.vbproj", - "**/*.fsproj", - "**%2F*.fsproj", - "**/project.json", - "**%2Fproject.json", - "**/Gopkg.toml", - "**%2FGopkg.toml", - "**/Gopkg.lock", - "**%2FGopkg.lock", - "**/vendor.json", - "**%2Fvendor.json", - "**/composer.lock", - "**%2Fcomposer.lock", - "**/composer.json", - "**%2Fcomposer.json", - "**/project.assets.json", - "**%2Fproject.assets.json", - "**/Podfile", - "**%2FPodfile", - "**/Podfile.lock", - "**%2FPodfile.lock", - "**/go.mod", - "**%2Fgo.mod", - "**/go.sum", - "**%2Fgo.sum", - ], - }, - ], + "origin": "https://\${BITBUCKET}", + "path": "/rest/insights/:apiVersion/projects/:project/repos/:repo/commits/:sha/reports/:report/annotations", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/package.json", + "//": "get list of API capabilities for Code Insights", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/insights/:apiVersion/capabilities", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fpackage.json", + "//": "used to remove Code Insights annotations for a report", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "DELETE", + "origin": "https://\${BITBUCKET}", + "path": "/rest/insights/:apiVersion/projects/:project/repos/:repo/commits/:sha/reports/:report/annotations", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/package-lock.json", + "//": "used to get current user. so we'll be able to fetch current user's repos, that are not part of any project.", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/application-properties", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fpackage-lock.json", + "//": "used to get current user. so we'll be able to fetch current user's repos, that are not part of any project - this is using atlassian's SDK api.", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/plugins/servlet/applinks/whoami", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Gemfile.lock", + "//": "used to get the current user's project-like structure. So we'll be able to bind all user's private repos (that are not included in different project)", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:projectKey", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FGemfile.lock", + "//": "used to check if the user has admin or higher permissions", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/admin/permissions/users", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Gemfile", + "//": "used to get all the users. it's called only for admin permissioned user. to retrieve all the repos they can access", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/users", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FGemfile", + "//": "used to redirect requests to snyk git client", + "method": "any", + "origin": "\${GIT_CLIENT_URL}", + "path": "/snykgit/*", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/pom.xml", + "//": "used to fetch a given repo from API", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fpom.xml", + "//": "used to get default reviewers for a pull request", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/default-reviewers/1.0/projects/:projectKey/repos/:repo/reviewers", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/*req*.txt", + "//": "used to scan IAC files", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/*.tf", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2F*req*.txt", + "//": "used to scan IAC files", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F*.tf", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/pyproject.toml", + "//": "used to scan IAC files", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/*.yaml", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fpyproject.toml", + "//": "used to scan IAC files", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F*.yaml", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/poetry.lock", + "//": "used to scan IAC files", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/*.json", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fpoetry.lock", + "//": "used to scan IAC files", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F*.json", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/yarn.lock", + "//": "used to scan IAC files", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/*.yml", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fyarn.lock", + "//": "used to scan IAC files", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F*.yml", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/build.gradle", + "//": "used to scan IAC files", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/*.tpl", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fbuild.gradle", + "//": "used to scan IAC files", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F*.tpl", }, + ], + "public": Array [ Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/gradle.lockfile", + "//": "used for pushing up webhooks from bitbucket-server", + "method": "POST", + "path": "/webhook/bitbucket-server/:webhookId", }, + ], +} +`; + +exports[`filter Rules Loading Injection of valid IAC extensions - Testing bitbucket-server 2`] = ` +Object { + "private": Array [ Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fgradle.lockfile", + "//": "list the user's projects", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/gradle.properties", + "//": "list the project's repos", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:projectKey/repos", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fgradle.properties", + "//": "list the user's repos", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/repos", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Directory.Build.targets", + "//": "fetch a given repo", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FDirectory.Build.targets", + "//": "read all file names to find manifests", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/files/:searchPath?", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Directory.Build.props", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/package.json", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FDirectory.Build.props", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fpackage.json", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Packages.props", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/package-lock.json", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FPackages.props", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fpackage-lock.json", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/build.sbt", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Gemfile.lock", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fbuild.sbt", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FGemfile.lock", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/packages.config", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Gemfile", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fpackages.config", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FGemfile", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/*.csproj", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/pom.xml", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2F*.csproj", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fpom.xml", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/*.vbproj", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/*req*.txt", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2F*.vbproj", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F*req*.txt", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/*.fsproj", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/requirements/*.txt", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2F*.fsproj", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Frequirements%2F*.txt", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/project.json", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/pyproject.toml", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fproject.json", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fpyproject.toml", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Gopkg.toml", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/poetry.lock", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FGopkg.toml", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fpoetry.lock", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Gopkg.lock", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Pipfile", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FGopkg.lock", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FPipfile", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Pipfile.lock", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/vendor.json", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FPipfile.lock", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fvendor.json", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/yarn.lock", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/composer.lock", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fyarn.lock", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fcomposer.lock", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/build.gradle", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/composer.json", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fbuild.gradle", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fcomposer.json", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/gradle.lockfile", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/project.assets.json", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fgradle.lockfile", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fproject.assets.json", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/gradle.properties", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Podfile", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fgradle.properties", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FPodfile", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Packages.props", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Podfile.lock", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FPackages.props", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FPodfile.lock", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Directory.Build.props", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/go.mod", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FDirectory.Build.props", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fgo.mod", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Directory.Build.targets", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/go.sum", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FDirectory.Build.targets", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fgo.sum", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/build.sbt", }, Object { - "//": "used to update Dockerfile", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/*Dockerfile*", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fbuild.sbt", }, Object { - "//": "used to update Dockerfile", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2F*Dockerfile*", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/packages.config", }, Object { - "//": "used to update ignore rules or existing patches", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/.snyk", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fpackages.config", }, Object { - "//": "used to update ignore rules or existing patches", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2F.snyk", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/*.csproj", }, Object { - "//": "used to update manifest file for v3 protocol", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v3/projects/:project/repository/files", - "valid": Array [ - Object { - "queryParam": "file_path", - "values": Array [ - "**/package.json", - "**%2Fpackage.json", - "**/yarn.lock", - "**%2Fyarn.lock", - "**/package-lock.json", - "**%2Fpackage-lock.json", - "**/Gemfile", - "**%2FGemfile", - "**/Gemfile.lock", - "**%2FGemfile.lock", - "**/pom.xml", - "**%2Fpom.xml", - "**/*req*.txt", - "**%2F*req*.txt", - "**/pyproject.toml", - "**%2Fpyproject.toml", - "**/poetry.lock", - "**%2Fpoetry.lock", - "**/build.gradle", - "**%2Fbuild.gradle", - "**/gradle.lockfile", - "**%2Fgradle.lockfile", - "**/build.sbt", - "**%2Fbuild.sbt", - "**/.snyk", - "**%2F.snyk", - "**/packages.config", - "**%2Fpackages.config", - "**/*.csproj", - "**%2F*.csproj", - "**/*.vbproj", - "**%2F*.vbproj", - "**/*.fsproj", - "**%2F*.fsproj", - "**/project.json", - "**%2Fproject.json", - "**/Gopkg.toml", - "**%2FGopkg.toml", - "**/Gopkg.lock", - "**%2FGopkg.lock", - "**/vendor.json", - "**%2Fvendor.json", - "**/composer.lock", - "**%2Fcomposer.lock", - "**/composer.json", - "**%2Fcomposer.json", - "**/project.assets.json", - "**%2Fproject.assets.json", - "**/Podfile", - "**%2FPodfile", - "**/Podfile.lock", - "**%2FPodfile.lock", - "**/go.mod", - "**%2Fgo.mod", - "**/go.sum", - "**%2Fgo.sum", - ], - }, - ], + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F*.csproj", }, Object { - "//": "allow webhooks to be added, to allow commits to be checked by Snyk. Rules for what is sent to Snyk are controlled in the \`public\` accept filters", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/hooks", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/*.vbproj", }, Object { - "//": "allow webhooks to be deleted, used to cleanup when a user deactivates or deletes a project", - "method": "DELETE", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/hooks/:id", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F*.vbproj", }, Object { - "//": "used to create commit status messages", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/statuses/:sha", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/*.fsproj", }, Object { - "//": "used to create branch for fix merge request", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/branches", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F*.fsproj", }, Object { - "//": "used to create merge request for fix merge request", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/merge_requests", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/project.json", }, Object { - "//": "used to fetch fix merge request information", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/merge_requests", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fproject.json", }, Object { - "//": "list the user's groups", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/groups", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Gopkg.toml", }, Object { - "//": "list of projects in a group", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/groups/:id/projects", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FGopkg.toml", }, Object { - "//": "get current user. so we'll be able to fetch it's projects", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/user", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Gopkg.lock", }, Object { - "//": "get user's projects", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/users/:user/projects", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FGopkg.lock", }, Object { - "//": "get all users. so we'll be able to fetch projects that admin can access", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/users", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/vendor.json", }, Object { - "//": "used to get repo's contributors list", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/commits", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fvendor.json", }, Object { - "//": "get a specific commit identified by the commit hash or name of a branch or tag.", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/commits/:sha", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/composer.lock", }, Object { - "//": "get merge base of two commits for given project.", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/merge_base", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fcomposer.lock", }, Object { - "//": "used to redirect requests to snyk git client", - "method": "any", - "origin": "\${GIT_CLIENT_URL}", - "path": "/snykgit/*", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/composer.json", }, Object { - "//": "allow info refs (for git clone)", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://oauth2:\${GITLAB_TOKEN}@\${GITLAB}", - "path": "*/info/refs*", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fcomposer.json", }, Object { - "//": "allow git-upload-pack (for git clone)", - "method": "POST", - "origin": "https://oauth2:\${GITLAB_TOKEN}@\${GITLAB}", - "path": "*/git-upload-pack", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/project.assets.json", }, Object { - "//": "needed to load code snippets", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files/:path", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fproject.assets.json", }, - ], - "public": Array [ Object { - "//": "used for pushing up webhooks from gitlab", - "method": "POST", - "path": "/webhook/gitlab/:webhookId", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Podfile", }, - ], -} -`; - -exports[`filter Rules Loading Injection of valid IAC extensions - Testing azure-repos 1`] = ` -Object { - "private": Array [ Object { - "//": "get list of projects for given organisation", + "//": "used to determine the full dependency tree", "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + "username": "\${BITBUCKET_USERNAME}", }, "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/_apis/projects", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FPodfile", }, Object { - "//": "get specific repository for given organisation", + "//": "used to determine the full dependency tree", "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + "username": "\${BITBUCKET_USERNAME}", }, "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Podfile.lock", }, Object { - "//": "get list of repositories for given organisation", + "//": "used to determine the full dependency tree", "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + "username": "\${BITBUCKET_USERNAME}", }, "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FPodfile.lock", }, Object { - "//": "get list of refs", + "//": "used to determine the full dependency tree", "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + "username": "\${BITBUCKET_USERNAME}", }, "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/refs", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/go.mod", }, Object { - "//": "search through repositories of given organisation", + "//": "used to determine the full dependency tree", "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + "username": "\${BITBUCKET_USERNAME}", }, "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "_apis/git/repositories", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fgo.mod", }, Object { - "//": "create hook", + "//": "used to determine the full dependency tree", "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + "username": "\${BITBUCKET_USERNAME}", }, - "method": "POST", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/_apis/hooks/subscriptions", + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/go.sum", }, Object { - "//": "delete hook", + "//": "used to determine the full dependency tree", "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + "username": "\${BITBUCKET_USERNAME}", }, - "method": "DELETE", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/_apis/hooks/subscriptions/:subscriptionId", + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fgo.sum", }, Object { - "//": "get file content. restrict by file types", + "//": "used to scan Dockerfile", "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + "username": "\${BITBUCKET_USERNAME}", }, "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/items", - "valid": Array [ - Object { - "queryParam": "path", - "values": Array [ - "**/package.json", - "**%2Fpackage.json", - "**/yarn.lock", - "**%2Fyarn.lock", - "**/package-lock.json", - "**%2Fpackage-lock.json", - "**/Gemfile", - "**%2FGemfile", - "**/Gemfile.lock", - "**%2FGemfile.lock", - "**/pom.xml", - "**%2Fpom.xml", - "**/*req*.txt", - "**%2F*req*.txt", - "**/requirements/*.txt", - "**%2Frequirements%2F*.txt", - "**/pyproject.toml", - "**%2Fpyproject.toml", - "**/poetry.lock", - "**%2Fpoetry.lock", - "**/Pipfile", - "**%2FPipfile", - "**/Pipfile.lock", - "**%2FPipfile.lock", - "**/build.gradle", - "**%2Fbuild.gradle", - "**/gradle.lockfile", - "**%2Fgradle.lockfile", - "**/build.sbt", - "**%2Fbuild.sbt", - "**/.snyk", - "**%2F.snyk", - "**/packages.config", - "**%2Fpackages.config", - "**/*.csproj", - "**%2F*.csproj", - "**/*.vbproj", - "**%2F*.vbproj", - "**/*.fsproj", - "**%2F*.fsproj", - "**/project.json", - "**%2Fproject.json", - "**/Gopkg.toml", - "**%2FGopkg.toml", - "**/Gopkg.lock", - "**%2FGopkg.lock", - "**/vendor.json", - "**%2Fvendor.json", - "**/composer.lock", - "**%2Fcomposer.lock", - "**/composer.json", - "**%2Fcomposer.json", - "**/project.assets.json", - "**%2Fproject.assets.json", - "**/Podfile", - "**%2FPodfile", - "**/Podfile.lock", - "**%2FPodfile.lock", - "**/go.mod", - "**%2Fgo.mod", - "**/go.sum", - "**%2Fgo.sum", - "**/*Dockerfile*", - "**%2F*Dockerfile*", - "**/*.tf", - "**%2F*.tf", - "**/*.yaml", - "**%2F*.yaml", - "**/*.json", - "**%2F*.json", - "**/*.yml", - "**%2F*.yml", - "**/*.tpl", - "**%2F*.tpl", - ], - }, - Object { - "queryParam": "recursionLevel", - "values": Array [ - "none", - ], - }, - Object { - "queryParam": "download", - "values": Array [ - "true", - ], - }, - Object { - "queryParam": "includeContent", - "values": Array [ - "true", - ], - }, - ], + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/*Dockerfile*", }, Object { - "//": "check file existence. restrict by file types", + "//": "used to scan Dockerfile", "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + "username": "\${BITBUCKET_USERNAME}", }, "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/items", - "valid": Array [ - Object { - "queryParam": "path", - "values": Array [ - "**/package.json", - "**%2Fpackage.json", - "**/yarn.lock", - "**%2Fyarn.lock", - "**/package-lock.json", - "**%2Fpackage-lock.json", - "**/Gemfile", - "**%2FGemfile", - "**/Gemfile.lock", - "**%2FGemfile.lock", - "**/pom.xml", - "**%2Fpom.xml", - "**/*req*.txt", - "**%2F*req*.txt", - "**/requirements/*.txt", - "**%2Frequirements%2F*.txt", - "**/pyproject.toml", - "**%2Fpyproject.toml", - "**/poetry.lock", - "**%2Fpoetry.lock", - "**/Pipfile", - "**%2FPipfile", - "**/Pipfile.lock", - "**%2FPipfile.lock", - "**/build.gradle", - "**%2Fbuild.gradle", - "**/gradle.lockfile", - "**%2Fgradle.lockfile", - "**/build.sbt", - "**%2Fbuild.sbt", - "**/.snyk", - "**%2F.snyk", - "**/packages.config", - "**%2Fpackages.config", - "**/*.csproj", - "**%2F*.csproj", - "**/*.vbproj", - "**%2F*.vbproj", - "**/*.fsproj", - "**%2F*.fsproj", - "**/project.json", - "**%2Fproject.json", - "**/Gopkg.toml", - "**%2FGopkg.toml", - "**/Gopkg.lock", - "**%2FGopkg.lock", - "**/vendor.json", - "**%2Fvendor.json", - "**/composer.lock", - "**%2Fcomposer.lock", - "**/composer.json", - "**%2Fcomposer.json", - "**/project.assets.json", - "**%2Fproject.assets.json", - "**/Podfile", - "**%2FPodfile", - "**/Podfile.lock", - "**%2FPodfile.lock", - "**/go.mod", - "**%2Fgo.mod", - "**/go.sum", - "**%2Fgo.sum", - "**/*Dockerfile*", - "**%2F*Dockerfile*", - "**/*.tf", - "**%2F*.tf", - "**/*.yaml", - "**%2F*.yaml", - "**/*.json", - "**%2F*.json", - "**/*.yml", - "**%2F*.yml", - "**/*.tpl", - "**%2F*.tpl", - ], - }, - Object { - "queryParam": "versionDescriptor.versionType", - "values": Array [ - "branch", - ], - }, - Object { - "queryParam": "includeContentMetadata", - "values": Array [ - "true", - ], - }, - ], + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F*Dockerfile*", }, Object { - "//": "get list of files for given repository", + "//": "used to check if there's any ignore rules or existing patches", "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + "username": "\${BITBUCKET_USERNAME}", }, "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/items", - "valid": Array [ - Object { - "queryParam": "recursionLevel", - "values": Array [ - "full", - ], - }, - Object { - "queryParam": "download", - "values": Array [ - "false", - ], - }, - Object { - "queryParam": "includeContent", - "values": Array [ - "false", - ], - }, - ], + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/.snyk", }, Object { - "//": "get list of commits for given repository", + "//": "used to check if there's any ignore rules or existing patches", "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + "username": "\${BITBUCKET_USERNAME}", }, "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/commits", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F.snyk", }, Object { - "//": "get merge base of two commits for given repository", + "//": "get list of API capabilities", "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + "username": "\${BITBUCKET_USERNAME}", }, "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/commits/:commitId/mergebases", + "origin": "https://\${BITBUCKET}", + "path": "/rest/capabilities", }, Object { - "//": "update status of given commit", + "//": "allow webhooks to be added, to allow commits to be checked by Snyk. Rules for what is sent to Snyk are controlled in the \`public\` accept filters", "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + "username": "\${BITBUCKET_USERNAME}", }, "method": "POST", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/commits/:commitId/statuses", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/webhooks", }, Object { - "//": "update status of given pull request", + "//": "allow webhooks to be deleted, used to cleanup when a user deactivates or deletes a project", "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + "username": "\${BITBUCKET_USERNAME}", }, - "method": "POST", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/pullRequests/:pullRef/statuses", + "method": "DELETE", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/webhooks/:webhookId", }, Object { - "//": "find PR for given repository", + "//": "used to create commit status messages", "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + "username": "\${BITBUCKET_USERNAME}", }, - "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/pullrequests", + "method": "POST", + "origin": "https://\${BITBUCKET}", + "path": "/rest/build-status/1.0/commits/:sha", }, Object { - "//": "create new PR in given repository", + "//": "used to create a new branch for fix PRs", "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + "username": "\${BITBUCKET_USERNAME}", }, "method": "POST", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/pullrequests", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/branches", }, Object { - "//": "update existing PR in given repository", + "//": "used to create or update a file for fix PRs", "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + "username": "\${BITBUCKET_USERNAME}", }, - "method": "PATCH", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/pullrequests/:pullRef", + "method": "PUT", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/browse/*", }, Object { - "//": "push new commit in given repository", + "//": "used to create a pull request for fix PRs", "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + "username": "\${BITBUCKET_USERNAME}", }, "method": "POST", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/pushes", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/pull-requests", }, Object { - "//": "used to redirect requests to snyk git client", - "method": "any", - "origin": "\${GIT_CLIENT_URL}", - "path": "/snykgit/*", + "//": "used to query for open pull requests by branch", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/pull-requests", }, - ], - "public": Array [ Object { - "//": "used for pushing up webhooks from Azure", - "method": "POST", - "path": "/webhook/azure-repos/:webhookId", + "//": "used to query for a merge-base for a pull request", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/pull-requests/:pullRequestId/changes", }, - ], -} -`; - -exports[`filter Rules Loading Injection of valid IAC extensions - Testing azure-repos 2`] = ` -Object { - "private": Array [ Object { - "//": "get list of projects for given organisation", + "//": "used to check for a repo's default branch", "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + "username": "\${BITBUCKET_USERNAME}", }, "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/_apis/projects", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/branches/default", }, Object { - "//": "get specific repository for given organisation", + "//": "Used to get a branch specified by query string", "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + "username": "\${BITBUCKET_USERNAME}", }, "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/branches:filterText?", }, Object { - "//": "get list of repositories for given organisation", + "//": "get a specific commit identified by the commit hash or name of a branch", "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + "username": "\${BITBUCKET_USERNAME}", }, "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/commits/:sha", + }, + Object { + "//": "used to create a Code Insights report", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "PUT", + "origin": "https://\${BITBUCKET}", + "path": "/rest/insights/:apiVersion/projects/:project/repos/:repo/commits/:sha/reports/:report", }, Object { - "//": "get list of refs", + "//": "used to remove a Code Insights report", "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + "username": "\${BITBUCKET_USERNAME}", }, - "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/refs", + "method": "DELETE", + "origin": "https://\${BITBUCKET}", + "path": "/rest/insights/:apiVersion/projects/:project/repos/:repo/commits/:sha/reports/:report", }, Object { - "//": "search through repositories of given organisation", + "//": "used to add Code Insights annotations to a report", "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + "username": "\${BITBUCKET_USERNAME}", }, - "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "_apis/git/repositories", + "method": "POST", + "origin": "https://\${BITBUCKET}", + "path": "/rest/insights/:apiVersion/projects/:project/repos/:repo/commits/:sha/reports/:report/annotations", }, Object { - "//": "create hook", + "//": "get list of API capabilities for Code Insights", "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + "username": "\${BITBUCKET_USERNAME}", }, - "method": "POST", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/_apis/hooks/subscriptions", + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/insights/:apiVersion/capabilities", }, Object { - "//": "delete hook", + "//": "used to remove Code Insights annotations for a report", "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + "username": "\${BITBUCKET_USERNAME}", }, "method": "DELETE", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/_apis/hooks/subscriptions/:subscriptionId", + "origin": "https://\${BITBUCKET}", + "path": "/rest/insights/:apiVersion/projects/:project/repos/:repo/commits/:sha/reports/:report/annotations", }, Object { - "//": "get file content. restrict by file types", + "//": "used to get current user. so we'll be able to fetch current user's repos, that are not part of any project.", "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + "username": "\${BITBUCKET_USERNAME}", }, "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/items", - "valid": Array [ - Object { - "queryParam": "path", - "values": Array [ - "**/package.json", - "**%2Fpackage.json", - "**/yarn.lock", - "**%2Fyarn.lock", - "**/package-lock.json", - "**%2Fpackage-lock.json", - "**/Gemfile", - "**%2FGemfile", - "**/Gemfile.lock", - "**%2FGemfile.lock", - "**/pom.xml", - "**%2Fpom.xml", - "**/*req*.txt", - "**%2F*req*.txt", - "**/requirements/*.txt", - "**%2Frequirements%2F*.txt", - "**/pyproject.toml", - "**%2Fpyproject.toml", - "**/poetry.lock", - "**%2Fpoetry.lock", - "**/Pipfile", - "**%2FPipfile", - "**/Pipfile.lock", - "**%2FPipfile.lock", - "**/build.gradle", - "**%2Fbuild.gradle", - "**/gradle.lockfile", - "**%2Fgradle.lockfile", - "**/build.sbt", - "**%2Fbuild.sbt", - "**/.snyk", - "**%2F.snyk", - "**/packages.config", - "**%2Fpackages.config", - "**/*.csproj", - "**%2F*.csproj", - "**/*.vbproj", - "**%2F*.vbproj", - "**/*.fsproj", - "**%2F*.fsproj", - "**/project.json", - "**%2Fproject.json", - "**/Gopkg.toml", - "**%2FGopkg.toml", - "**/Gopkg.lock", - "**%2FGopkg.lock", - "**/vendor.json", - "**%2Fvendor.json", - "**/composer.lock", - "**%2Fcomposer.lock", - "**/composer.json", - "**%2Fcomposer.json", - "**/project.assets.json", - "**%2Fproject.assets.json", - "**/Podfile", - "**%2FPodfile", - "**/Podfile.lock", - "**%2FPodfile.lock", - "**/go.mod", - "**%2Fgo.mod", - "**/go.sum", - "**%2Fgo.sum", - "**/*Dockerfile*", - "**%2F*Dockerfile*", - "**/*.tf", - "**%2F*.tf", - "**/*.json", - "**%2F*.json", - ], - }, - Object { - "queryParam": "recursionLevel", - "values": Array [ - "none", - ], - }, - Object { - "queryParam": "download", - "values": Array [ - "true", - ], - }, - Object { - "queryParam": "includeContent", - "values": Array [ - "true", - ], - }, - ], + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/application-properties", }, Object { - "//": "check file existence. restrict by file types", + "//": "used to get current user. so we'll be able to fetch current user's repos, that are not part of any project - this is using atlassian's SDK api.", "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + "username": "\${BITBUCKET_USERNAME}", }, "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/items", - "valid": Array [ - Object { - "queryParam": "path", - "values": Array [ - "**/package.json", - "**%2Fpackage.json", - "**/yarn.lock", - "**%2Fyarn.lock", - "**/package-lock.json", - "**%2Fpackage-lock.json", - "**/Gemfile", - "**%2FGemfile", - "**/Gemfile.lock", - "**%2FGemfile.lock", - "**/pom.xml", - "**%2Fpom.xml", - "**/*req*.txt", - "**%2F*req*.txt", - "**/requirements/*.txt", - "**%2Frequirements%2F*.txt", - "**/pyproject.toml", - "**%2Fpyproject.toml", - "**/poetry.lock", - "**%2Fpoetry.lock", - "**/Pipfile", - "**%2FPipfile", - "**/Pipfile.lock", - "**%2FPipfile.lock", - "**/build.gradle", - "**%2Fbuild.gradle", - "**/gradle.lockfile", - "**%2Fgradle.lockfile", - "**/build.sbt", - "**%2Fbuild.sbt", - "**/.snyk", - "**%2F.snyk", - "**/packages.config", - "**%2Fpackages.config", - "**/*.csproj", - "**%2F*.csproj", - "**/*.vbproj", - "**%2F*.vbproj", - "**/*.fsproj", - "**%2F*.fsproj", - "**/project.json", - "**%2Fproject.json", - "**/Gopkg.toml", - "**%2FGopkg.toml", - "**/Gopkg.lock", - "**%2FGopkg.lock", - "**/vendor.json", - "**%2Fvendor.json", - "**/composer.lock", - "**%2Fcomposer.lock", - "**/composer.json", - "**%2Fcomposer.json", - "**/project.assets.json", - "**%2Fproject.assets.json", - "**/Podfile", - "**%2FPodfile", - "**/Podfile.lock", - "**%2FPodfile.lock", - "**/go.mod", - "**%2Fgo.mod", - "**/go.sum", - "**%2Fgo.sum", - "**/*Dockerfile*", - "**%2F*Dockerfile*", - "**/*.tf", - "**%2F*.tf", - "**/*.json", - "**%2F*.json", - ], - }, - Object { - "queryParam": "versionDescriptor.versionType", - "values": Array [ - "branch", - ], - }, - Object { - "queryParam": "includeContentMetadata", - "values": Array [ - "true", - ], - }, - ], + "origin": "https://\${BITBUCKET}", + "path": "/plugins/servlet/applinks/whoami", }, Object { - "//": "get list of files for given repository", + "//": "used to get the current user's project-like structure. So we'll be able to bind all user's private repos (that are not included in different project)", "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + "username": "\${BITBUCKET_USERNAME}", }, "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/items", - "valid": Array [ - Object { - "queryParam": "recursionLevel", - "values": Array [ - "full", - ], - }, - Object { - "queryParam": "download", - "values": Array [ - "false", - ], - }, - Object { - "queryParam": "includeContent", - "values": Array [ - "false", - ], - }, - ], + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:projectKey", }, Object { - "//": "get list of commits for given repository", + "//": "used to check if the user has admin or higher permissions", "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + "username": "\${BITBUCKET_USERNAME}", }, "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/commits", + "origin": "https://\${BITBUCKET_API}", + "path": "/admin/permissions/users", }, Object { - "//": "get merge base of two commits for given repository", + "//": "used to get all the users. it's called only for admin permissioned user. to retrieve all the repos they can access", "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + "username": "\${BITBUCKET_USERNAME}", }, "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/commits/:commitId/mergebases", + "origin": "https://\${BITBUCKET_API}", + "path": "/users", }, Object { - "//": "update status of given commit", + "//": "used to redirect requests to snyk git client", + "method": "any", + "origin": "\${GIT_CLIENT_URL}", + "path": "/snykgit/*", + }, + Object { + "//": "used to fetch a given repo from API", "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + "username": "\${BITBUCKET_USERNAME}", }, - "method": "POST", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/commits/:commitId/statuses", + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo", }, Object { - "//": "update status of given pull request", + "//": "used to get default reviewers for a pull request", "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + "username": "\${BITBUCKET_USERNAME}", }, - "method": "POST", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/pullRequests/:pullRef/statuses", + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/default-reviewers/1.0/projects/:projectKey/repos/:repo/reviewers", }, Object { - "//": "find PR for given repository", + "//": "used to scan IAC files", "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + "username": "\${BITBUCKET_USERNAME}", }, "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/pullrequests", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/*.tf", }, Object { - "//": "create new PR in given repository", + "//": "used to scan IAC files", "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + "username": "\${BITBUCKET_USERNAME}", }, - "method": "POST", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/pullrequests", + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F*.tf", }, Object { - "//": "update existing PR in given repository", + "//": "used to scan IAC files", "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + "username": "\${BITBUCKET_USERNAME}", }, - "method": "PATCH", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/pullrequests/:pullRef", + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/*.json", }, Object { - "//": "push new commit in given repository", + "//": "used to scan IAC files", "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + "username": "\${BITBUCKET_USERNAME}", }, - "method": "POST", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/pushes", - }, - Object { - "//": "used to redirect requests to snyk git client", - "method": "any", - "origin": "\${GIT_CLIENT_URL}", - "path": "/snykgit/*", + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F*.json", }, ], "public": Array [ Object { - "//": "used for pushing up webhooks from Azure", + "//": "used for pushing up webhooks from bitbucket-server", "method": "POST", - "path": "/webhook/azure-repos/:webhookId", + "path": "/webhook/bitbucket-server/:webhookId", }, ], } `; -exports[`filter Rules Loading Injection of valid IAC extensions - Testing bitbucket-server 1`] = ` +exports[`filter Rules Loading Injection of valid IAC extensions - Testing bitbucket-server-bearer-auth 1`] = ` Object { "private": Array [ Object { "//": "list the user's projects", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -34909,9 +50055,8 @@ Object { Object { "//": "list the project's repos", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -34920,9 +50065,8 @@ Object { Object { "//": "list the user's repos", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -34931,9 +50075,8 @@ Object { Object { "//": "fetch a given repo", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -34942,9 +50085,8 @@ Object { Object { "//": "read all file names to find manifests", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET}", @@ -34953,9 +50095,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -34964,9 +50105,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -34975,9 +50115,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -34986,9 +50125,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -34997,9 +50135,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -35008,9 +50145,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -35019,9 +50155,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -35030,9 +50165,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -35041,9 +50175,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -35052,9 +50185,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -35063,9 +50195,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -35074,9 +50205,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -35085,9 +50215,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -35096,9 +50225,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -35107,9 +50235,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -35118,9 +50245,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -35129,9 +50255,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -35140,9 +50265,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -35151,9 +50275,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -35162,9 +50285,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -35173,9 +50295,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -35184,9 +50305,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -35195,9 +50315,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -35206,9 +50325,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -35217,9 +50335,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -35228,9 +50345,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -35239,9 +50355,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -35250,9 +50365,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -35261,9 +50375,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -35272,9 +50385,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -35283,9 +50395,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -35294,9 +50405,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -35305,9 +50415,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -35316,9 +50425,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -35327,9 +50435,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -35338,9 +50445,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -35349,9 +50455,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -35360,9 +50465,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -35371,9 +50475,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -35382,9 +50485,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -35392,10 +50494,9 @@ Object { }, Object { "//": "used to determine the full dependency tree", - "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "auth": Object { + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -35404,9 +50505,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -35415,9 +50515,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -35426,9 +50525,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -35437,9 +50535,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -35448,9 +50545,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -35459,9 +50555,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -35470,9 +50565,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -35481,9 +50575,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -35492,9 +50585,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -35503,9 +50595,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -35514,9 +50605,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -35525,9 +50615,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -35536,9 +50625,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -35547,9 +50635,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -35558,9 +50645,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -35569,9 +50655,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -35580,9 +50665,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -35591,9 +50675,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -35602,9 +50685,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -35613,9 +50695,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -35624,9 +50705,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -35635,9 +50715,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -35646,9 +50725,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -35657,9 +50735,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -35668,9 +50745,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -35679,9 +50755,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -35690,9 +50765,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -35701,9 +50775,8 @@ Object { Object { "//": "used to scan Dockerfile", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -35712,9 +50785,8 @@ Object { Object { "//": "used to scan Dockerfile", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -35723,9 +50795,8 @@ Object { Object { "//": "used to check if there's any ignore rules or existing patches", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -35734,9 +50805,8 @@ Object { Object { "//": "used to check if there's any ignore rules or existing patches", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -35745,9 +50815,8 @@ Object { Object { "//": "get list of API capabilities", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET}", @@ -35756,9 +50825,8 @@ Object { Object { "//": "allow webhooks to be added, to allow commits to be checked by Snyk. Rules for what is sent to Snyk are controlled in the \`public\` accept filters", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "POST", "origin": "https://\${BITBUCKET}", @@ -35767,9 +50835,8 @@ Object { Object { "//": "allow webhooks to be deleted, used to cleanup when a user deactivates or deletes a project", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "DELETE", "origin": "https://\${BITBUCKET}", @@ -35778,9 +50845,8 @@ Object { Object { "//": "used to create commit status messages", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "POST", "origin": "https://\${BITBUCKET}", @@ -35789,9 +50855,8 @@ Object { Object { "//": "used to create a new branch for fix PRs", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "POST", "origin": "https://\${BITBUCKET}", @@ -35800,9 +50865,8 @@ Object { Object { "//": "used to create or update a file for fix PRs", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "PUT", "origin": "https://\${BITBUCKET}", @@ -35811,9 +50875,8 @@ Object { Object { "//": "used to create a pull request for fix PRs", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "POST", "origin": "https://\${BITBUCKET}", @@ -35822,9 +50885,8 @@ Object { Object { "//": "used to query for open pull requests by branch", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET}", @@ -35833,9 +50895,8 @@ Object { Object { "//": "used to query for a merge-base for a pull request", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET}", @@ -35844,9 +50905,8 @@ Object { Object { "//": "used to check for a repo's default branch", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET}", @@ -35855,9 +50915,8 @@ Object { Object { "//": "Used to get a branch specified by query string", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET}", @@ -35866,9 +50925,8 @@ Object { Object { "//": "get a specific commit identified by the commit hash or name of a branch", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET}", @@ -35877,9 +50935,8 @@ Object { Object { "//": "used to create a Code Insights report", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "PUT", "origin": "https://\${BITBUCKET}", @@ -35888,9 +50945,8 @@ Object { Object { "//": "used to remove a Code Insights report", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "DELETE", "origin": "https://\${BITBUCKET}", @@ -35899,9 +50955,8 @@ Object { Object { "//": "used to add Code Insights annotations to a report", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "POST", "origin": "https://\${BITBUCKET}", @@ -35910,9 +50965,8 @@ Object { Object { "//": "get list of API capabilities for Code Insights", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET}", @@ -35921,9 +50975,8 @@ Object { Object { "//": "used to remove Code Insights annotations for a report", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "DELETE", "origin": "https://\${BITBUCKET}", @@ -35932,9 +50985,8 @@ Object { Object { "//": "used to get current user. so we'll be able to fetch current user's repos, that are not part of any project.", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET}", @@ -35943,9 +50995,8 @@ Object { Object { "//": "used to get current user. so we'll be able to fetch current user's repos, that are not part of any project - this is using atlassian's SDK api.", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET}", @@ -35954,9 +51005,8 @@ Object { Object { "//": "used to get the current user's project-like structure. So we'll be able to bind all user's private repos (that are not included in different project)", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -35965,9 +51015,8 @@ Object { Object { "//": "used to check if the user has admin or higher permissions", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -35976,9 +51025,8 @@ Object { Object { "//": "used to get all the users. it's called only for admin permissioned user. to retrieve all the repos they can access", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -35993,9 +51041,8 @@ Object { Object { "//": "used to fetch a given repo from API", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET}", @@ -36004,9 +51051,8 @@ Object { Object { "//": "used to get default reviewers for a pull request", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET}", @@ -36015,9 +51061,8 @@ Object { Object { "//": "used to scan IAC files", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -36026,9 +51071,8 @@ Object { Object { "//": "used to scan IAC files", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -36037,9 +51081,8 @@ Object { Object { "//": "used to scan IAC files", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -36048,9 +51091,8 @@ Object { Object { "//": "used to scan IAC files", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -36059,9 +51101,8 @@ Object { Object { "//": "used to scan IAC files", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -36070,9 +51111,8 @@ Object { Object { "//": "used to scan IAC files", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -36081,9 +51121,8 @@ Object { Object { "//": "used to scan IAC files", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -36092,9 +51131,8 @@ Object { Object { "//": "used to scan IAC files", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -36103,9 +51141,8 @@ Object { Object { "//": "used to scan IAC files", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -36114,9 +51151,8 @@ Object { Object { "//": "used to scan IAC files", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -36133,15 +51169,14 @@ Object { } `; -exports[`filter Rules Loading Injection of valid IAC extensions - Testing bitbucket-server 2`] = ` +exports[`filter Rules Loading Injection of valid IAC extensions - Testing bitbucket-server-bearer-auth 2`] = ` Object { "private": Array [ Object { "//": "list the user's projects", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -36150,9 +51185,8 @@ Object { Object { "//": "list the project's repos", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -36161,9 +51195,8 @@ Object { Object { "//": "list the user's repos", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -36172,9 +51205,8 @@ Object { Object { "//": "fetch a given repo", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -36183,9 +51215,8 @@ Object { Object { "//": "read all file names to find manifests", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET}", @@ -36194,9 +51225,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -36205,9 +51235,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -36216,9 +51245,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -36227,9 +51255,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -36238,9 +51265,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -36249,9 +51275,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -36260,9 +51285,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -36271,9 +51295,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -36282,9 +51305,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -36293,9 +51315,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -36304,9 +51325,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -36315,9 +51335,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -36326,9 +51345,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -36337,9 +51355,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -36348,9 +51365,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -36359,9 +51375,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -36370,9 +51385,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -36381,9 +51395,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -36392,9 +51405,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -36403,9 +51415,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -36414,9 +51425,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -36425,9 +51435,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -36436,9 +51445,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -36447,9 +51455,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -36458,9 +51465,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -36469,9 +51475,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -36480,9 +51485,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -36491,9 +51495,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -36502,9 +51505,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -36513,9 +51515,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -36524,9 +51525,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -36535,9 +51535,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -36546,9 +51545,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -36557,9 +51555,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -36568,9 +51565,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -36579,9 +51575,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -36590,9 +51585,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -36601,9 +51595,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -36612,9 +51605,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -36623,9 +51615,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -36634,9 +51625,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -36645,9 +51635,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -36656,9 +51645,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -36667,9 +51655,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -36678,9 +51665,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -36689,9 +51675,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -36700,9 +51685,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -36711,9 +51695,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -36722,9 +51705,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -36733,9 +51715,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -36744,9 +51725,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -36755,9 +51735,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -36766,9 +51745,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -36777,9 +51755,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -36788,9 +51765,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -36799,9 +51775,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -36810,9 +51785,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -36821,9 +51795,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -36832,9 +51805,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -36843,9 +51815,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -36854,9 +51825,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -36865,9 +51835,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -36876,9 +51845,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -36887,9 +51855,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -36898,9 +51865,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -36909,9 +51875,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -36920,9 +51885,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -36931,9 +51895,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -36942,9 +51905,8 @@ Object { Object { "//": "used to scan Dockerfile", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -36953,9 +51915,8 @@ Object { Object { "//": "used to scan Dockerfile", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -36964,9 +51925,8 @@ Object { Object { "//": "used to check if there's any ignore rules or existing patches", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -36975,9 +51935,8 @@ Object { Object { "//": "used to check if there's any ignore rules or existing patches", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -36986,9 +51945,8 @@ Object { Object { "//": "get list of API capabilities", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET}", @@ -36997,9 +51955,8 @@ Object { Object { "//": "allow webhooks to be added, to allow commits to be checked by Snyk. Rules for what is sent to Snyk are controlled in the \`public\` accept filters", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "POST", "origin": "https://\${BITBUCKET}", @@ -37008,9 +51965,8 @@ Object { Object { "//": "allow webhooks to be deleted, used to cleanup when a user deactivates or deletes a project", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "DELETE", "origin": "https://\${BITBUCKET}", @@ -37019,9 +51975,8 @@ Object { Object { "//": "used to create commit status messages", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "POST", "origin": "https://\${BITBUCKET}", @@ -37030,9 +51985,8 @@ Object { Object { "//": "used to create a new branch for fix PRs", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "POST", "origin": "https://\${BITBUCKET}", @@ -37041,9 +51995,8 @@ Object { Object { "//": "used to create or update a file for fix PRs", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "PUT", "origin": "https://\${BITBUCKET}", @@ -37052,9 +52005,8 @@ Object { Object { "//": "used to create a pull request for fix PRs", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "POST", "origin": "https://\${BITBUCKET}", @@ -37063,9 +52015,8 @@ Object { Object { "//": "used to query for open pull requests by branch", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET}", @@ -37074,9 +52025,8 @@ Object { Object { "//": "used to query for a merge-base for a pull request", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET}", @@ -37085,9 +52035,8 @@ Object { Object { "//": "used to check for a repo's default branch", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET}", @@ -37096,9 +52045,8 @@ Object { Object { "//": "Used to get a branch specified by query string", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET}", @@ -37107,9 +52055,8 @@ Object { Object { "//": "get a specific commit identified by the commit hash or name of a branch", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET}", @@ -37118,9 +52065,8 @@ Object { Object { "//": "used to create a Code Insights report", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "PUT", "origin": "https://\${BITBUCKET}", @@ -37129,9 +52075,8 @@ Object { Object { "//": "used to remove a Code Insights report", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "DELETE", "origin": "https://\${BITBUCKET}", @@ -37140,9 +52085,8 @@ Object { Object { "//": "used to add Code Insights annotations to a report", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "POST", "origin": "https://\${BITBUCKET}", @@ -37151,9 +52095,8 @@ Object { Object { "//": "get list of API capabilities for Code Insights", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET}", @@ -37162,9 +52105,8 @@ Object { Object { "//": "used to remove Code Insights annotations for a report", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "DELETE", "origin": "https://\${BITBUCKET}", @@ -37173,9 +52115,8 @@ Object { Object { "//": "used to get current user. so we'll be able to fetch current user's repos, that are not part of any project.", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET}", @@ -37184,9 +52125,8 @@ Object { Object { "//": "used to get current user. so we'll be able to fetch current user's repos, that are not part of any project - this is using atlassian's SDK api.", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET}", @@ -37195,9 +52135,8 @@ Object { Object { "//": "used to get the current user's project-like structure. So we'll be able to bind all user's private repos (that are not included in different project)", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -37206,9 +52145,8 @@ Object { Object { "//": "used to check if the user has admin or higher permissions", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -37217,9 +52155,8 @@ Object { Object { "//": "used to get all the users. it's called only for admin permissioned user. to retrieve all the repos they can access", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -37234,9 +52171,8 @@ Object { Object { "//": "used to fetch a given repo from API", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET}", @@ -37245,9 +52181,8 @@ Object { Object { "//": "used to get default reviewers for a pull request", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET}", @@ -37256,9 +52191,8 @@ Object { Object { "//": "used to scan IAC files", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -37267,9 +52201,8 @@ Object { Object { "//": "used to scan IAC files", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -37278,9 +52211,8 @@ Object { Object { "//": "used to scan IAC files", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -37289,9 +52221,8 @@ Object { Object { "//": "used to scan IAC files", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -46812,325 +61743,1160 @@ Object { "path": "/api/v4/projects/:project/repository/files*%2Fpyproject.toml", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/poetry.lock", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpoetry.lock", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/yarn.lock", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fyarn.lock", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/build.gradle", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fbuild.gradle", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/gradle.lockfile", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fgradle.lockfile", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/gradle.properties", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fgradle.properties", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Directory.Build.targets", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FDirectory.Build.targets", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Directory.Build.props", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FDirectory.Build.props", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Packages.props", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FPackages.props", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/build.sbt", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fbuild.sbt", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/packages.config", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpackages.config", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*.csproj", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*.csproj", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*.vbproj", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*.vbproj", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*.fsproj", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*.fsproj", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/project.json", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fproject.json", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Gopkg.toml", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FGopkg.toml", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Gopkg.lock", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FGopkg.lock", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/vendor.json", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fvendor.json", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/composer.lock", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fcomposer.lock", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/composer.json", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fcomposer.json", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/project.assets.json", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fproject.assets.json", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Podfile", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FPodfile", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Podfile.lock", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FPodfile.lock", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/go.mod", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fgo.mod", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/go.sum", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fgo.sum", + }, + Object { + "//": "used to create Dockerfile", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*Dockerfile*", + }, + Object { + "//": "used to create Dockerfile", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*Dockerfile*", + }, + Object { + "//": "used to create ignore rules or patches", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/.snyk", + }, + Object { + "//": "used to create ignore rules or patches", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F.snyk", + }, + Object { + "//": "used to create manifest file for v3 protocol", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v3/projects/:project/repository/files", + "valid": Array [ + Object { + "queryParam": "file_path", + "values": Array [ + "**/package.json", + "**%2Fpackage.json", + "**/yarn.lock", + "**%2Fyarn.lock", + "**/package-lock.json", + "**%2Fpackage-lock.json", + "**/Gemfile", + "**%2FGemfile", + "**/Gemfile.lock", + "**%2FGemfile.lock", + "**/pom.xml", + "**%2Fpom.xml", + "**/*req*.txt", + "**%2F*req*.txt", + "**/pyproject.toml", + "**%2Fpyproject.toml", + "**/poetry.lock", + "**%2Fpoetry.lock", + "**/build.gradle", + "**%2Fbuild.gradle", + "**/gradle.lockfile", + "**%2Fgradle.lockfile", + "**/build.sbt", + "**%2Fbuild.sbt", + "**/.snyk", + "**%2F.snyk", + "**/packages.config", + "**%2Fpackages.config", + "**/*.csproj", + "**%2F*.csproj", + "**/*.vbproj", + "**%2F*.vbproj", + "**/*.fsproj", + "**%2F*.fsproj", + "**/project.json", + "**%2Fproject.json", + "**/Gopkg.toml", + "**%2FGopkg.toml", + "**/Gopkg.lock", + "**%2FGopkg.lock", + "**/vendor.json", + "**%2Fvendor.json", + "**/composer.lock", + "**%2Fcomposer.lock", + "**/composer.json", + "**%2Fcomposer.json", + "**/project.assets.json", + "**%2Fproject.assets.json", + "**/Podfile", + "**%2FPodfile", + "**/Podfile.lock", + "**%2FPodfile.lock", + "**/go.mod", + "**%2Fgo.mod", + "**/go.sum", + "**%2Fgo.sum", + ], + }, + ], + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/package.json", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpackage.json", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/package-lock.json", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpackage-lock.json", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Gemfile.lock", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FGemfile.lock", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Gemfile", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FGemfile", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/pom.xml", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpom.xml", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*req*.txt", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*req*.txt", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/pyproject.toml", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpyproject.toml", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*/poetry.lock", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*%2Fpoetry.lock", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*/yarn.lock", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*%2Fyarn.lock", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*/build.gradle", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*%2Fbuild.gradle", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*/gradle.lockfile", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*%2Fgradle.lockfile", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*/gradle.properties", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*%2Fgradle.properties", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*/Directory.Build.targets", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*%2FDirectory.Build.targets", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*/Directory.Build.props", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*%2FDirectory.Build.props", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*/Packages.props", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*%2FPackages.props", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*/build.sbt", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*%2Fbuild.sbt", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*/packages.config", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*%2Fpackages.config", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*/*.csproj", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*%2F*.csproj", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*/*.vbproj", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*%2F*.vbproj", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*/*.fsproj", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*%2F*.fsproj", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*/project.json", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*%2Fproject.json", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*/Gopkg.toml", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*%2FGopkg.toml", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*/Gopkg.lock", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*%2FGopkg.lock", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*/vendor.json", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*%2Fvendor.json", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*/composer.lock", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*%2Fcomposer.lock", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*/composer.json", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*%2Fcomposer.json", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*/project.assets.json", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*%2Fproject.assets.json", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*/Podfile", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*%2FPodfile", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*/Podfile.lock", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*%2FPodfile.lock", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*/go.mod", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*%2Fgo.mod", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*/go.sum", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*%2Fgo.sum", }, Object { - "//": "used to create Dockerfile", - "method": "POST", + "//": "used to update Dockerfile", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*/*Dockerfile*", }, Object { - "//": "used to create Dockerfile", - "method": "POST", + "//": "used to update Dockerfile", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*%2F*Dockerfile*", }, Object { - "//": "used to create ignore rules or patches", - "method": "POST", + "//": "used to update ignore rules or existing patches", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*/.snyk", }, Object { - "//": "used to create ignore rules or patches", - "method": "POST", + "//": "used to update ignore rules or existing patches", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*%2F.snyk", }, Object { - "//": "used to create manifest file for v3 protocol", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v3/projects/:project/repository/files", + "//": "used to update manifest file for v3 protocol", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v3/projects/:project/repository/files", + "valid": Array [ + Object { + "queryParam": "file_path", + "values": Array [ + "**/package.json", + "**%2Fpackage.json", + "**/yarn.lock", + "**%2Fyarn.lock", + "**/package-lock.json", + "**%2Fpackage-lock.json", + "**/Gemfile", + "**%2FGemfile", + "**/Gemfile.lock", + "**%2FGemfile.lock", + "**/pom.xml", + "**%2Fpom.xml", + "**/*req*.txt", + "**%2F*req*.txt", + "**/pyproject.toml", + "**%2Fpyproject.toml", + "**/poetry.lock", + "**%2Fpoetry.lock", + "**/build.gradle", + "**%2Fbuild.gradle", + "**/gradle.lockfile", + "**%2Fgradle.lockfile", + "**/build.sbt", + "**%2Fbuild.sbt", + "**/.snyk", + "**%2F.snyk", + "**/packages.config", + "**%2Fpackages.config", + "**/*.csproj", + "**%2F*.csproj", + "**/*.vbproj", + "**%2F*.vbproj", + "**/*.fsproj", + "**%2F*.fsproj", + "**/project.json", + "**%2Fproject.json", + "**/Gopkg.toml", + "**%2FGopkg.toml", + "**/Gopkg.lock", + "**%2FGopkg.lock", + "**/vendor.json", + "**%2Fvendor.json", + "**/composer.lock", + "**%2Fcomposer.lock", + "**/composer.json", + "**%2Fcomposer.json", + "**/project.assets.json", + "**%2Fproject.assets.json", + "**/Podfile", + "**%2FPodfile", + "**/Podfile.lock", + "**%2FPodfile.lock", + "**/go.mod", + "**%2Fgo.mod", + "**/go.sum", + "**%2Fgo.sum", + ], + }, + ], + }, + Object { + "//": "allow webhooks to be added, to allow commits to be checked by Snyk. Rules for what is sent to Snyk are controlled in the \`public\` accept filters", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/hooks", + }, + Object { + "//": "allow webhooks to be deleted, used to cleanup when a user deactivates or deletes a project", + "method": "DELETE", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/hooks/:id", + }, + Object { + "//": "used to create commit status messages", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/statuses/:sha", + }, + Object { + "//": "used to create branch for fix merge request", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/branches", + }, + Object { + "//": "used to create merge request for fix merge request", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/merge_requests", + }, + Object { + "//": "used to fetch fix merge request information", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/merge_requests", + }, + Object { + "//": "list the user's groups", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/groups", + }, + Object { + "//": "list of projects in a group", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/groups/:id/projects", + }, + Object { + "//": "get current user. so we'll be able to fetch it's projects", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/user", + }, + Object { + "//": "get user's projects", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/users/:user/projects", + }, + Object { + "//": "get all users. so we'll be able to fetch projects that admin can access", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/users", + }, + Object { + "//": "used to get repo's contributors list", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/commits", + }, + Object { + "//": "get a specific commit identified by the commit hash or name of a branch or tag.", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/commits/:sha", + }, + Object { + "//": "get merge base of two commits for given project.", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/merge_base", + }, + Object { + "//": "used to redirect requests to snyk git client", + "method": "any", + "origin": "\${GIT_CLIENT_URL}", + "path": "/snykgit/*", + }, + Object { + "//": "used to scan IAC files", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*.tf", + }, + Object { + "//": "used to scan IAC files", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*.tf", + }, + Object { + "//": "used to scan IAC files", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*.json", + }, + Object { + "//": "used to scan IAC files", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*.json", + }, + ], + "public": Array [ + Object { + "//": "used for pushing up webhooks from gitlab", + "method": "POST", + "path": "/webhook/gitlab/:webhookId", + }, + ], +} +`; + +exports[`filter Rules Loading Loads normal accept file - Testing azure-repos 1`] = ` +Object { + "private": Array [ + Object { + "//": "get list of projects for given organisation", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/_apis/projects", + }, + Object { + "//": "get specific repository for given organisation", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo", + }, + Object { + "//": "get list of repositories for given organisation", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories", + }, + Object { + "//": "get list of refs", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/refs", + }, + Object { + "//": "search through repositories of given organisation", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "_apis/git/repositories", + }, + Object { + "//": "create hook", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "POST", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/_apis/hooks/subscriptions", + }, + Object { + "//": "delete hook", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "DELETE", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/_apis/hooks/subscriptions/:subscriptionId", + }, + Object { + "//": "get file content. restrict by file types", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/items", + "valid": Array [ + Object { + "queryParam": "path", + "values": Array [ + "**/package.json", + "**%2Fpackage.json", + "**/yarn.lock", + "**%2Fyarn.lock", + "**/package-lock.json", + "**%2Fpackage-lock.json", + "**/Gemfile", + "**%2FGemfile", + "**/Gemfile.lock", + "**%2FGemfile.lock", + "**/pom.xml", + "**%2Fpom.xml", + "**/*req*.txt", + "**%2F*req*.txt", + "**/requirements/*.txt", + "**%2Frequirements%2F*.txt", + "**/pyproject.toml", + "**%2Fpyproject.toml", + "**/poetry.lock", + "**%2Fpoetry.lock", + "**/Pipfile", + "**%2FPipfile", + "**/Pipfile.lock", + "**%2FPipfile.lock", + "**/build.gradle", + "**%2Fbuild.gradle", + "**/gradle.lockfile", + "**%2Fgradle.lockfile", + "**/build.sbt", + "**%2Fbuild.sbt", + "**/.snyk", + "**%2F.snyk", + "**/packages.config", + "**%2Fpackages.config", + "**/*.csproj", + "**%2F*.csproj", + "**/*.vbproj", + "**%2F*.vbproj", + "**/*.fsproj", + "**%2F*.fsproj", + "**/project.json", + "**%2Fproject.json", + "**/Gopkg.toml", + "**%2FGopkg.toml", + "**/Gopkg.lock", + "**%2FGopkg.lock", + "**/vendor.json", + "**%2Fvendor.json", + "**/composer.lock", + "**%2Fcomposer.lock", + "**/composer.json", + "**%2Fcomposer.json", + "**/project.assets.json", + "**%2Fproject.assets.json", + "**/Podfile", + "**%2FPodfile", + "**/Podfile.lock", + "**%2FPodfile.lock", + "**/go.mod", + "**%2Fgo.mod", + "**/go.sum", + "**%2Fgo.sum", + "**/*Dockerfile*", + "**%2F*Dockerfile*", + ], + }, + Object { + "queryParam": "recursionLevel", + "values": Array [ + "none", + ], + }, + Object { + "queryParam": "download", + "values": Array [ + "true", + ], + }, + Object { + "queryParam": "includeContent", + "values": Array [ + "true", + ], + }, + ], + }, + Object { + "//": "check file existence. restrict by file types", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/items", "valid": Array [ Object { - "queryParam": "file_path", + "queryParam": "path", "values": Array [ "**/package.json", "**%2Fpackage.json", @@ -47146,10 +62912,16 @@ Object { "**%2Fpom.xml", "**/*req*.txt", "**%2F*req*.txt", + "**/requirements/*.txt", + "**%2Frequirements%2F*.txt", "**/pyproject.toml", "**%2Fpyproject.toml", "**/poetry.lock", "**%2Fpoetry.lock", + "**/Pipfile", + "**%2FPipfile", + "**/Pipfile.lock", + "**%2FPipfile.lock", "**/build.gradle", "**%2Fbuild.gradle", "**/gradle.lockfile", @@ -47188,974 +62960,1242 @@ Object { "**%2Fgo.mod", "**/go.sum", "**%2Fgo.sum", + "**/*Dockerfile*", + "**%2F*Dockerfile*", + ], + }, + Object { + "queryParam": "versionDescriptor.versionType", + "values": Array [ + "branch", + ], + }, + Object { + "queryParam": "includeContentMetadata", + "values": Array [ + "true", ], }, ], }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/package.json", - }, - Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fpackage.json", - }, - Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/package-lock.json", - }, - Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fpackage-lock.json", - }, - Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Gemfile.lock", + "//": "get list of files for given repository", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/items", + "valid": Array [ + Object { + "queryParam": "recursionLevel", + "values": Array [ + "full", + ], + }, + Object { + "queryParam": "download", + "values": Array [ + "false", + ], + }, + Object { + "queryParam": "includeContent", + "values": Array [ + "false", + ], + }, + ], }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FGemfile.lock", + "//": "get list of commits for given repository", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/commits", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Gemfile", + "//": "get merge base of two commits for given repository", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/commits/:commitId/mergebases", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FGemfile", + "//": "update status of given commit", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "POST", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/commits/:commitId/statuses", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/pom.xml", + "//": "update status of given pull request", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "POST", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/pullRequests/:pullRef/statuses", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fpom.xml", + "//": "find PR for given repository", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/pullrequests", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/*req*.txt", + "//": "create new PR in given repository", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "POST", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/pullrequests", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2F*req*.txt", + "//": "update existing PR in given repository", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "PATCH", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/pullrequests/:pullRef", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/pyproject.toml", + "//": "push new commit in given repository", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "POST", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/pushes", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fpyproject.toml", + "//": "used to redirect requests to snyk git client", + "method": "any", + "origin": "\${GIT_CLIENT_URL}", + "path": "/snykgit/*", }, + ], + "public": Array [ Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/poetry.lock", + "//": "used for pushing up webhooks from Azure", + "method": "POST", + "path": "/webhook/azure-repos/:webhookId", }, + ], +} +`; + +exports[`filter Rules Loading Loads normal accept file - Testing bitbucket-server 1`] = ` +Object { + "private": Array [ Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fpoetry.lock", + "//": "list the user's projects", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/yarn.lock", + "//": "list the project's repos", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:projectKey/repos", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fyarn.lock", + "//": "list the user's repos", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/repos", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/build.gradle", + "//": "fetch a given repo", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fbuild.gradle", + "//": "read all file names to find manifests", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/files/:searchPath?", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/gradle.lockfile", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/package.json", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fgradle.lockfile", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fpackage.json", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/gradle.properties", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/package-lock.json", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fgradle.properties", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fpackage-lock.json", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Directory.Build.targets", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Gemfile.lock", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FDirectory.Build.targets", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FGemfile.lock", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Directory.Build.props", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Gemfile", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FDirectory.Build.props", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FGemfile", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Packages.props", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/pom.xml", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FPackages.props", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fpom.xml", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/build.sbt", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/*req*.txt", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fbuild.sbt", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F*req*.txt", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/packages.config", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/requirements/*.txt", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fpackages.config", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Frequirements%2F*.txt", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/*.csproj", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/pyproject.toml", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2F*.csproj", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fpyproject.toml", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/*.vbproj", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/poetry.lock", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2F*.vbproj", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fpoetry.lock", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/*.fsproj", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Pipfile", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2F*.fsproj", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FPipfile", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/project.json", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Pipfile.lock", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fproject.json", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FPipfile.lock", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Gopkg.toml", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/yarn.lock", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FGopkg.toml", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fyarn.lock", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Gopkg.lock", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/build.gradle", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FGopkg.lock", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fbuild.gradle", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/vendor.json", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/gradle.lockfile", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fvendor.json", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fgradle.lockfile", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/composer.lock", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/gradle.properties", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fcomposer.lock", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fgradle.properties", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/composer.json", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Packages.props", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fcomposer.json", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FPackages.props", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/project.assets.json", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Directory.Build.props", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fproject.assets.json", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FDirectory.Build.props", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Podfile", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Directory.Build.targets", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FPodfile", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FDirectory.Build.targets", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Podfile.lock", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/build.sbt", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FPodfile.lock", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fbuild.sbt", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/go.mod", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/packages.config", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fgo.mod", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fpackages.config", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/go.sum", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/*.csproj", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fgo.sum", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F*.csproj", }, Object { - "//": "used to update Dockerfile", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/*Dockerfile*", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/*.vbproj", }, Object { - "//": "used to update Dockerfile", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2F*Dockerfile*", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F*.vbproj", }, Object { - "//": "used to update ignore rules or existing patches", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/.snyk", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/*.fsproj", }, Object { - "//": "used to update ignore rules or existing patches", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2F.snyk", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F*.fsproj", }, Object { - "//": "used to update manifest file for v3 protocol", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v3/projects/:project/repository/files", - "valid": Array [ - Object { - "queryParam": "file_path", - "values": Array [ - "**/package.json", - "**%2Fpackage.json", - "**/yarn.lock", - "**%2Fyarn.lock", - "**/package-lock.json", - "**%2Fpackage-lock.json", - "**/Gemfile", - "**%2FGemfile", - "**/Gemfile.lock", - "**%2FGemfile.lock", - "**/pom.xml", - "**%2Fpom.xml", - "**/*req*.txt", - "**%2F*req*.txt", - "**/pyproject.toml", - "**%2Fpyproject.toml", - "**/poetry.lock", - "**%2Fpoetry.lock", - "**/build.gradle", - "**%2Fbuild.gradle", - "**/gradle.lockfile", - "**%2Fgradle.lockfile", - "**/build.sbt", - "**%2Fbuild.sbt", - "**/.snyk", - "**%2F.snyk", - "**/packages.config", - "**%2Fpackages.config", - "**/*.csproj", - "**%2F*.csproj", - "**/*.vbproj", - "**%2F*.vbproj", - "**/*.fsproj", - "**%2F*.fsproj", - "**/project.json", - "**%2Fproject.json", - "**/Gopkg.toml", - "**%2FGopkg.toml", - "**/Gopkg.lock", - "**%2FGopkg.lock", - "**/vendor.json", - "**%2Fvendor.json", - "**/composer.lock", - "**%2Fcomposer.lock", - "**/composer.json", - "**%2Fcomposer.json", - "**/project.assets.json", - "**%2Fproject.assets.json", - "**/Podfile", - "**%2FPodfile", - "**/Podfile.lock", - "**%2FPodfile.lock", - "**/go.mod", - "**%2Fgo.mod", - "**/go.sum", - "**%2Fgo.sum", - ], - }, - ], + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/project.json", }, Object { - "//": "allow webhooks to be added, to allow commits to be checked by Snyk. Rules for what is sent to Snyk are controlled in the \`public\` accept filters", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/hooks", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fproject.json", }, Object { - "//": "allow webhooks to be deleted, used to cleanup when a user deactivates or deletes a project", - "method": "DELETE", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/hooks/:id", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Gopkg.toml", }, Object { - "//": "used to create commit status messages", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/statuses/:sha", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FGopkg.toml", }, Object { - "//": "used to create branch for fix merge request", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/branches", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Gopkg.lock", }, Object { - "//": "used to create merge request for fix merge request", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/merge_requests", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FGopkg.lock", }, Object { - "//": "used to fetch fix merge request information", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/merge_requests", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/vendor.json", }, Object { - "//": "list the user's groups", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/groups", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fvendor.json", }, Object { - "//": "list of projects in a group", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/groups/:id/projects", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/composer.lock", }, Object { - "//": "get current user. so we'll be able to fetch it's projects", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/user", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fcomposer.lock", }, Object { - "//": "get user's projects", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/users/:user/projects", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/composer.json", }, Object { - "//": "get all users. so we'll be able to fetch projects that admin can access", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/users", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fcomposer.json", }, Object { - "//": "used to get repo's contributors list", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/commits", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/project.assets.json", }, Object { - "//": "get a specific commit identified by the commit hash or name of a branch or tag.", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/commits/:sha", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fproject.assets.json", }, Object { - "//": "get merge base of two commits for given project.", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/merge_base", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Podfile", }, Object { - "//": "used to redirect requests to snyk git client", - "method": "any", - "origin": "\${GIT_CLIENT_URL}", - "path": "/snykgit/*", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FPodfile", }, Object { - "//": "used to scan IAC files", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/*.tf", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Podfile.lock", }, Object { - "//": "used to scan IAC files", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2F*.tf", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FPodfile.lock", }, Object { - "//": "used to scan IAC files", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/*.json", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/go.mod", }, Object { - "//": "used to scan IAC files", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2F*.json", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fgo.mod", }, - ], - "public": Array [ Object { - "//": "used for pushing up webhooks from gitlab", - "method": "POST", - "path": "/webhook/gitlab/:webhookId", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/go.sum", }, - ], -} -`; - -exports[`filter Rules Loading Loads normal accept file - Testing azure-repos 1`] = ` -Object { - "private": Array [ Object { - "//": "get list of projects for given organisation", + "//": "used to determine the full dependency tree", "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + "username": "\${BITBUCKET_USERNAME}", }, "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/_apis/projects", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fgo.sum", }, Object { - "//": "get specific repository for given organisation", + "//": "used to scan Dockerfile", "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + "username": "\${BITBUCKET_USERNAME}", }, "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/*Dockerfile*", }, Object { - "//": "get list of repositories for given organisation", + "//": "used to scan Dockerfile", "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + "username": "\${BITBUCKET_USERNAME}", }, "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F*Dockerfile*", }, Object { - "//": "get list of refs", + "//": "used to check if there's any ignore rules or existing patches", "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + "username": "\${BITBUCKET_USERNAME}", }, "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/refs", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/.snyk", }, Object { - "//": "search through repositories of given organisation", + "//": "used to check if there's any ignore rules or existing patches", "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + "username": "\${BITBUCKET_USERNAME}", }, "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "_apis/git/repositories", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F.snyk", }, Object { - "//": "create hook", + "//": "get list of API capabilities", "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/capabilities", + }, + Object { + "//": "allow webhooks to be added, to allow commits to be checked by Snyk. Rules for what is sent to Snyk are controlled in the \`public\` accept filters", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", }, "method": "POST", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/_apis/hooks/subscriptions", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/webhooks", }, Object { - "//": "delete hook", + "//": "allow webhooks to be deleted, used to cleanup when a user deactivates or deletes a project", "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + "username": "\${BITBUCKET_USERNAME}", }, "method": "DELETE", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/_apis/hooks/subscriptions/:subscriptionId", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/webhooks/:webhookId", }, Object { - "//": "get file content. restrict by file types", + "//": "used to create commit status messages", "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + "username": "\${BITBUCKET_USERNAME}", }, - "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/items", - "valid": Array [ - Object { - "queryParam": "path", - "values": Array [ - "**/package.json", - "**%2Fpackage.json", - "**/yarn.lock", - "**%2Fyarn.lock", - "**/package-lock.json", - "**%2Fpackage-lock.json", - "**/Gemfile", - "**%2FGemfile", - "**/Gemfile.lock", - "**%2FGemfile.lock", - "**/pom.xml", - "**%2Fpom.xml", - "**/*req*.txt", - "**%2F*req*.txt", - "**/requirements/*.txt", - "**%2Frequirements%2F*.txt", - "**/pyproject.toml", - "**%2Fpyproject.toml", - "**/poetry.lock", - "**%2Fpoetry.lock", - "**/Pipfile", - "**%2FPipfile", - "**/Pipfile.lock", - "**%2FPipfile.lock", - "**/build.gradle", - "**%2Fbuild.gradle", - "**/gradle.lockfile", - "**%2Fgradle.lockfile", - "**/build.sbt", - "**%2Fbuild.sbt", - "**/.snyk", - "**%2F.snyk", - "**/packages.config", - "**%2Fpackages.config", - "**/*.csproj", - "**%2F*.csproj", - "**/*.vbproj", - "**%2F*.vbproj", - "**/*.fsproj", - "**%2F*.fsproj", - "**/project.json", - "**%2Fproject.json", - "**/Gopkg.toml", - "**%2FGopkg.toml", - "**/Gopkg.lock", - "**%2FGopkg.lock", - "**/vendor.json", - "**%2Fvendor.json", - "**/composer.lock", - "**%2Fcomposer.lock", - "**/composer.json", - "**%2Fcomposer.json", - "**/project.assets.json", - "**%2Fproject.assets.json", - "**/Podfile", - "**%2FPodfile", - "**/Podfile.lock", - "**%2FPodfile.lock", - "**/go.mod", - "**%2Fgo.mod", - "**/go.sum", - "**%2Fgo.sum", - "**/*Dockerfile*", - "**%2F*Dockerfile*", - ], - }, - Object { - "queryParam": "recursionLevel", - "values": Array [ - "none", - ], - }, - Object { - "queryParam": "download", - "values": Array [ - "true", - ], - }, - Object { - "queryParam": "includeContent", - "values": Array [ - "true", - ], - }, - ], + "method": "POST", + "origin": "https://\${BITBUCKET}", + "path": "/rest/build-status/1.0/commits/:sha", }, Object { - "//": "check file existence. restrict by file types", + "//": "used to create a new branch for fix PRs", "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + "username": "\${BITBUCKET_USERNAME}", }, - "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/items", - "valid": Array [ - Object { - "queryParam": "path", - "values": Array [ - "**/package.json", - "**%2Fpackage.json", - "**/yarn.lock", - "**%2Fyarn.lock", - "**/package-lock.json", - "**%2Fpackage-lock.json", - "**/Gemfile", - "**%2FGemfile", - "**/Gemfile.lock", - "**%2FGemfile.lock", - "**/pom.xml", - "**%2Fpom.xml", - "**/*req*.txt", - "**%2F*req*.txt", - "**/requirements/*.txt", - "**%2Frequirements%2F*.txt", - "**/pyproject.toml", - "**%2Fpyproject.toml", - "**/poetry.lock", - "**%2Fpoetry.lock", - "**/Pipfile", - "**%2FPipfile", - "**/Pipfile.lock", - "**%2FPipfile.lock", - "**/build.gradle", - "**%2Fbuild.gradle", - "**/gradle.lockfile", - "**%2Fgradle.lockfile", - "**/build.sbt", - "**%2Fbuild.sbt", - "**/.snyk", - "**%2F.snyk", - "**/packages.config", - "**%2Fpackages.config", - "**/*.csproj", - "**%2F*.csproj", - "**/*.vbproj", - "**%2F*.vbproj", - "**/*.fsproj", - "**%2F*.fsproj", - "**/project.json", - "**%2Fproject.json", - "**/Gopkg.toml", - "**%2FGopkg.toml", - "**/Gopkg.lock", - "**%2FGopkg.lock", - "**/vendor.json", - "**%2Fvendor.json", - "**/composer.lock", - "**%2Fcomposer.lock", - "**/composer.json", - "**%2Fcomposer.json", - "**/project.assets.json", - "**%2Fproject.assets.json", - "**/Podfile", - "**%2FPodfile", - "**/Podfile.lock", - "**%2FPodfile.lock", - "**/go.mod", - "**%2Fgo.mod", - "**/go.sum", - "**%2Fgo.sum", - "**/*Dockerfile*", - "**%2F*Dockerfile*", - ], - }, - Object { - "queryParam": "versionDescriptor.versionType", - "values": Array [ - "branch", - ], - }, - Object { - "queryParam": "includeContentMetadata", - "values": Array [ - "true", - ], - }, - ], + "method": "POST", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/branches", + }, + Object { + "//": "used to create or update a file for fix PRs", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "PUT", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/browse/*", + }, + Object { + "//": "used to create a pull request for fix PRs", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "POST", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/pull-requests", }, Object { - "//": "get list of files for given repository", + "//": "used to query for open pull requests by branch", "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + "username": "\${BITBUCKET_USERNAME}", }, "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/items", - "valid": Array [ - Object { - "queryParam": "recursionLevel", - "values": Array [ - "full", - ], - }, - Object { - "queryParam": "download", - "values": Array [ - "false", - ], - }, - Object { - "queryParam": "includeContent", - "values": Array [ - "false", - ], - }, - ], + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/pull-requests", }, Object { - "//": "get list of commits for given repository", + "//": "used to query for a merge-base for a pull request", "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + "username": "\${BITBUCKET_USERNAME}", }, "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/commits", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/pull-requests/:pullRequestId/changes", }, Object { - "//": "get merge base of two commits for given repository", + "//": "used to check for a repo's default branch", "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + "username": "\${BITBUCKET_USERNAME}", }, "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/commits/:commitId/mergebases", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/branches/default", }, Object { - "//": "update status of given commit", + "//": "Used to get a branch specified by query string", "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + "username": "\${BITBUCKET_USERNAME}", }, - "method": "POST", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/commits/:commitId/statuses", + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/branches:filterText?", }, Object { - "//": "update status of given pull request", + "//": "get a specific commit identified by the commit hash or name of a branch", "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/commits/:sha", + }, + Object { + "//": "used to create a Code Insights report", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "PUT", + "origin": "https://\${BITBUCKET}", + "path": "/rest/insights/:apiVersion/projects/:project/repos/:repo/commits/:sha/reports/:report", + }, + Object { + "//": "used to remove a Code Insights report", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "DELETE", + "origin": "https://\${BITBUCKET}", + "path": "/rest/insights/:apiVersion/projects/:project/repos/:repo/commits/:sha/reports/:report", + }, + Object { + "//": "used to add Code Insights annotations to a report", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", }, "method": "POST", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/pullRequests/:pullRef/statuses", + "origin": "https://\${BITBUCKET}", + "path": "/rest/insights/:apiVersion/projects/:project/repos/:repo/commits/:sha/reports/:report/annotations", }, Object { - "//": "find PR for given repository", + "//": "get list of API capabilities for Code Insights", "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + "username": "\${BITBUCKET_USERNAME}", }, "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/pullrequests", + "origin": "https://\${BITBUCKET}", + "path": "/rest/insights/:apiVersion/capabilities", }, Object { - "//": "create new PR in given repository", + "//": "used to remove Code Insights annotations for a report", "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + "username": "\${BITBUCKET_USERNAME}", }, - "method": "POST", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/pullrequests", + "method": "DELETE", + "origin": "https://\${BITBUCKET}", + "path": "/rest/insights/:apiVersion/projects/:project/repos/:repo/commits/:sha/reports/:report/annotations", }, Object { - "//": "update existing PR in given repository", + "//": "used to get current user. so we'll be able to fetch current user's repos, that are not part of any project.", "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + "username": "\${BITBUCKET_USERNAME}", }, - "method": "PATCH", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/pullrequests/:pullRef", + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/application-properties", }, Object { - "//": "push new commit in given repository", + "//": "used to get current user. so we'll be able to fetch current user's repos, that are not part of any project - this is using atlassian's SDK api.", "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + "username": "\${BITBUCKET_USERNAME}", }, - "method": "POST", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/pushes", + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/plugins/servlet/applinks/whoami", + }, + Object { + "//": "used to get the current user's project-like structure. So we'll be able to bind all user's private repos (that are not included in different project)", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:projectKey", + }, + Object { + "//": "used to check if the user has admin or higher permissions", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/admin/permissions/users", + }, + Object { + "//": "used to get all the users. it's called only for admin permissioned user. to retrieve all the repos they can access", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/users", }, Object { "//": "used to redirect requests to snyk git client", @@ -48163,26 +64203,47 @@ Object { "origin": "\${GIT_CLIENT_URL}", "path": "/snykgit/*", }, + Object { + "//": "used to fetch a given repo from API", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo", + }, + Object { + "//": "used to get default reviewers for a pull request", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/default-reviewers/1.0/projects/:projectKey/repos/:repo/reviewers", + }, ], "public": Array [ Object { - "//": "used for pushing up webhooks from Azure", + "//": "used for pushing up webhooks from bitbucket-server", "method": "POST", - "path": "/webhook/azure-repos/:webhookId", + "path": "/webhook/bitbucket-server/:webhookId", }, ], } `; -exports[`filter Rules Loading Loads normal accept file - Testing bitbucket-server 1`] = ` +exports[`filter Rules Loading Loads normal accept file - Testing bitbucket-server-bearer-auth 1`] = ` Object { "private": Array [ Object { "//": "list the user's projects", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -48191,9 +64252,8 @@ Object { Object { "//": "list the project's repos", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -48202,9 +64262,8 @@ Object { Object { "//": "list the user's repos", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -48213,9 +64272,8 @@ Object { Object { "//": "fetch a given repo", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -48224,9 +64282,8 @@ Object { Object { "//": "read all file names to find manifests", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET}", @@ -48235,9 +64292,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -48246,9 +64302,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -48257,9 +64312,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -48268,9 +64322,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -48279,9 +64332,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -48290,9 +64342,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -48301,9 +64352,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -48312,9 +64362,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -48323,9 +64372,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -48334,9 +64382,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -48345,9 +64392,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -48356,9 +64402,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -48367,9 +64412,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -48378,9 +64422,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -48389,9 +64432,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -48400,9 +64442,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -48411,9 +64452,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -48422,9 +64462,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -48433,9 +64472,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -48444,9 +64482,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -48455,9 +64492,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -48466,9 +64502,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -48477,9 +64512,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -48488,9 +64522,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -48499,9 +64532,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -48510,9 +64542,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -48521,9 +64552,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -48532,9 +64562,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -48543,9 +64572,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -48554,9 +64582,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -48565,9 +64592,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -48576,9 +64602,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -48587,9 +64612,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -48598,9 +64622,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -48609,9 +64632,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -48620,9 +64642,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -48631,9 +64652,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -48642,9 +64662,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -48653,9 +64672,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -48664,9 +64682,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -48675,9 +64692,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -48686,9 +64702,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -48697,9 +64712,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -48708,9 +64722,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -48719,9 +64732,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -48730,9 +64742,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -48741,9 +64752,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -48752,9 +64762,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -48763,9 +64772,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -48774,9 +64782,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -48785,9 +64792,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -48796,9 +64802,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -48807,9 +64812,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -48818,9 +64822,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -48829,9 +64832,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -48840,9 +64842,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -48851,9 +64852,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -48862,9 +64862,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -48873,9 +64872,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -48884,9 +64882,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -48895,9 +64892,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -48906,9 +64902,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -48917,9 +64912,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -48928,9 +64922,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -48939,9 +64932,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -48950,9 +64942,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -48961,9 +64952,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -48972,9 +64962,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -48983,9 +64972,8 @@ Object { Object { "//": "used to scan Dockerfile", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -48994,9 +64982,8 @@ Object { Object { "//": "used to scan Dockerfile", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -49005,9 +64992,8 @@ Object { Object { "//": "used to check if there's any ignore rules or existing patches", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -49016,9 +65002,8 @@ Object { Object { "//": "used to check if there's any ignore rules or existing patches", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -49027,9 +65012,8 @@ Object { Object { "//": "get list of API capabilities", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET}", @@ -49038,9 +65022,8 @@ Object { Object { "//": "allow webhooks to be added, to allow commits to be checked by Snyk. Rules for what is sent to Snyk are controlled in the \`public\` accept filters", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "POST", "origin": "https://\${BITBUCKET}", @@ -49049,9 +65032,8 @@ Object { Object { "//": "allow webhooks to be deleted, used to cleanup when a user deactivates or deletes a project", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "DELETE", "origin": "https://\${BITBUCKET}", @@ -49060,9 +65042,8 @@ Object { Object { "//": "used to create commit status messages", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "POST", "origin": "https://\${BITBUCKET}", @@ -49071,9 +65052,8 @@ Object { Object { "//": "used to create a new branch for fix PRs", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "POST", "origin": "https://\${BITBUCKET}", @@ -49082,9 +65062,8 @@ Object { Object { "//": "used to create or update a file for fix PRs", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "PUT", "origin": "https://\${BITBUCKET}", @@ -49093,9 +65072,8 @@ Object { Object { "//": "used to create a pull request for fix PRs", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "POST", "origin": "https://\${BITBUCKET}", @@ -49104,9 +65082,8 @@ Object { Object { "//": "used to query for open pull requests by branch", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET}", @@ -49115,9 +65092,8 @@ Object { Object { "//": "used to query for a merge-base for a pull request", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET}", @@ -49126,9 +65102,8 @@ Object { Object { "//": "used to check for a repo's default branch", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET}", @@ -49137,9 +65112,8 @@ Object { Object { "//": "Used to get a branch specified by query string", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET}", @@ -49148,9 +65122,8 @@ Object { Object { "//": "get a specific commit identified by the commit hash or name of a branch", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET}", @@ -49159,9 +65132,8 @@ Object { Object { "//": "used to create a Code Insights report", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "PUT", "origin": "https://\${BITBUCKET}", @@ -49170,9 +65142,8 @@ Object { Object { "//": "used to remove a Code Insights report", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "DELETE", "origin": "https://\${BITBUCKET}", @@ -49181,9 +65152,8 @@ Object { Object { "//": "used to add Code Insights annotations to a report", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "POST", "origin": "https://\${BITBUCKET}", @@ -49192,9 +65162,8 @@ Object { Object { "//": "get list of API capabilities for Code Insights", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET}", @@ -49203,9 +65172,8 @@ Object { Object { "//": "used to remove Code Insights annotations for a report", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "DELETE", "origin": "https://\${BITBUCKET}", @@ -49214,9 +65182,8 @@ Object { Object { "//": "used to get current user. so we'll be able to fetch current user's repos, that are not part of any project.", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET}", @@ -49225,9 +65192,8 @@ Object { Object { "//": "used to get current user. so we'll be able to fetch current user's repos, that are not part of any project - this is using atlassian's SDK api.", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET}", @@ -49236,9 +65202,8 @@ Object { Object { "//": "used to get the current user's project-like structure. So we'll be able to bind all user's private repos (that are not included in different project)", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -49247,9 +65212,8 @@ Object { Object { "//": "used to check if the user has admin or higher permissions", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -49258,9 +65222,8 @@ Object { Object { "//": "used to get all the users. it's called only for admin permissioned user. to retrieve all the repos they can access", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -49275,9 +65238,8 @@ Object { Object { "//": "used to fetch a given repo from API", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET}", @@ -49286,9 +65248,8 @@ Object { Object { "//": "used to get default reviewers for a pull request", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET}", @@ -53422,373 +69383,1184 @@ Object { "path": "/api/v4/projects/:project/repository/files*%2FGemfile.lock", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Gemfile", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FGemfile", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/pom.xml", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpom.xml", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*req*.txt", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*req*.txt", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/pyproject.toml", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpyproject.toml", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/poetry.lock", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpoetry.lock", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/yarn.lock", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fyarn.lock", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/build.gradle", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fbuild.gradle", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/gradle.lockfile", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fgradle.lockfile", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/gradle.properties", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fgradle.properties", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Directory.Build.targets", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FDirectory.Build.targets", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Directory.Build.props", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FDirectory.Build.props", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Packages.props", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FPackages.props", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/build.sbt", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fbuild.sbt", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/packages.config", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpackages.config", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*.csproj", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*.csproj", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*.vbproj", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*.vbproj", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*.fsproj", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*.fsproj", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/project.json", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fproject.json", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Gopkg.toml", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FGopkg.toml", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Gopkg.lock", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FGopkg.lock", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/vendor.json", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fvendor.json", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/composer.lock", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fcomposer.lock", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/composer.json", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fcomposer.json", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/project.assets.json", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fproject.assets.json", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Podfile", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FPodfile", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Podfile.lock", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FPodfile.lock", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/go.mod", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fgo.mod", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/go.sum", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fgo.sum", + }, + Object { + "//": "used to create Dockerfile", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*Dockerfile*", + }, + Object { + "//": "used to create Dockerfile", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*Dockerfile*", + }, + Object { + "//": "used to create ignore rules or patches", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/.snyk", + }, + Object { + "//": "used to create ignore rules or patches", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F.snyk", + }, + Object { + "//": "used to create manifest file for v3 protocol", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v3/projects/:project/repository/files", + "valid": Array [ + Object { + "queryParam": "file_path", + "values": Array [ + "**/package.json", + "**%2Fpackage.json", + "**/yarn.lock", + "**%2Fyarn.lock", + "**/package-lock.json", + "**%2Fpackage-lock.json", + "**/Gemfile", + "**%2FGemfile", + "**/Gemfile.lock", + "**%2FGemfile.lock", + "**/pom.xml", + "**%2Fpom.xml", + "**/*req*.txt", + "**%2F*req*.txt", + "**/pyproject.toml", + "**%2Fpyproject.toml", + "**/poetry.lock", + "**%2Fpoetry.lock", + "**/build.gradle", + "**%2Fbuild.gradle", + "**/gradle.lockfile", + "**%2Fgradle.lockfile", + "**/build.sbt", + "**%2Fbuild.sbt", + "**/.snyk", + "**%2F.snyk", + "**/packages.config", + "**%2Fpackages.config", + "**/*.csproj", + "**%2F*.csproj", + "**/*.vbproj", + "**%2F*.vbproj", + "**/*.fsproj", + "**%2F*.fsproj", + "**/project.json", + "**%2Fproject.json", + "**/Gopkg.toml", + "**%2FGopkg.toml", + "**/Gopkg.lock", + "**%2FGopkg.lock", + "**/vendor.json", + "**%2Fvendor.json", + "**/composer.lock", + "**%2Fcomposer.lock", + "**/composer.json", + "**%2Fcomposer.json", + "**/project.assets.json", + "**%2Fproject.assets.json", + "**/Podfile", + "**%2FPodfile", + "**/Podfile.lock", + "**%2FPodfile.lock", + "**/go.mod", + "**%2Fgo.mod", + "**/go.sum", + "**%2Fgo.sum", + ], + }, + ], + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/package.json", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpackage.json", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/package-lock.json", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpackage-lock.json", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Gemfile.lock", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FGemfile.lock", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*/Gemfile", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*%2FGemfile", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*/pom.xml", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*%2Fpom.xml", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*/*req*.txt", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*%2F*req*.txt", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*/pyproject.toml", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*%2Fpyproject.toml", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*/poetry.lock", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*%2Fpoetry.lock", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*/yarn.lock", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*%2Fyarn.lock", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*/build.gradle", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*%2Fbuild.gradle", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*/gradle.lockfile", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*%2Fgradle.lockfile", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*/gradle.properties", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*%2Fgradle.properties", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*/Directory.Build.targets", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*%2FDirectory.Build.targets", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*/Directory.Build.props", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*%2FDirectory.Build.props", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*/Packages.props", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*%2FPackages.props", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*/build.sbt", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*%2Fbuild.sbt", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*/packages.config", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*%2Fpackages.config", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*/*.csproj", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*%2F*.csproj", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*/*.vbproj", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*%2F*.vbproj", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*/*.fsproj", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*%2F*.fsproj", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*/project.json", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*%2Fproject.json", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*/Gopkg.toml", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*%2FGopkg.toml", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*/Gopkg.lock", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*%2FGopkg.lock", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*/vendor.json", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*%2Fvendor.json", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*/composer.lock", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*%2Fcomposer.lock", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*/composer.json", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*%2Fcomposer.json", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*/project.assets.json", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*%2Fproject.assets.json", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*/Podfile", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*%2FPodfile", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*/Podfile.lock", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*%2FPodfile.lock", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*/go.mod", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*%2Fgo.mod", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*/go.sum", }, Object { - "//": "used to create manifest file", - "method": "POST", + "//": "used to update manifest file", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*%2Fgo.sum", }, Object { - "//": "used to create Dockerfile", - "method": "POST", + "//": "used to update Dockerfile", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*/*Dockerfile*", }, Object { - "//": "used to create Dockerfile", - "method": "POST", + "//": "used to update Dockerfile", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*%2F*Dockerfile*", }, Object { - "//": "used to create ignore rules or patches", - "method": "POST", + "//": "used to update ignore rules or existing patches", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*/.snyk", }, Object { - "//": "used to create ignore rules or patches", - "method": "POST", + "//": "used to update ignore rules or existing patches", + "method": "PUT", "origin": "https://\${GITLAB}", "path": "/api/v4/projects/:project/repository/files*%2F.snyk", }, Object { - "//": "used to create manifest file for v3 protocol", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v3/projects/:project/repository/files", + "//": "used to update manifest file for v3 protocol", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v3/projects/:project/repository/files", + "valid": Array [ + Object { + "queryParam": "file_path", + "values": Array [ + "**/package.json", + "**%2Fpackage.json", + "**/yarn.lock", + "**%2Fyarn.lock", + "**/package-lock.json", + "**%2Fpackage-lock.json", + "**/Gemfile", + "**%2FGemfile", + "**/Gemfile.lock", + "**%2FGemfile.lock", + "**/pom.xml", + "**%2Fpom.xml", + "**/*req*.txt", + "**%2F*req*.txt", + "**/pyproject.toml", + "**%2Fpyproject.toml", + "**/poetry.lock", + "**%2Fpoetry.lock", + "**/build.gradle", + "**%2Fbuild.gradle", + "**/gradle.lockfile", + "**%2Fgradle.lockfile", + "**/build.sbt", + "**%2Fbuild.sbt", + "**/.snyk", + "**%2F.snyk", + "**/packages.config", + "**%2Fpackages.config", + "**/*.csproj", + "**%2F*.csproj", + "**/*.vbproj", + "**%2F*.vbproj", + "**/*.fsproj", + "**%2F*.fsproj", + "**/project.json", + "**%2Fproject.json", + "**/Gopkg.toml", + "**%2FGopkg.toml", + "**/Gopkg.lock", + "**%2FGopkg.lock", + "**/vendor.json", + "**%2Fvendor.json", + "**/composer.lock", + "**%2Fcomposer.lock", + "**/composer.json", + "**%2Fcomposer.json", + "**/project.assets.json", + "**%2Fproject.assets.json", + "**/Podfile", + "**%2FPodfile", + "**/Podfile.lock", + "**%2FPodfile.lock", + "**/go.mod", + "**%2Fgo.mod", + "**/go.sum", + "**%2Fgo.sum", + ], + }, + ], + }, + Object { + "//": "allow webhooks to be added, to allow commits to be checked by Snyk. Rules for what is sent to Snyk are controlled in the \`public\` accept filters", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/hooks", + }, + Object { + "//": "allow webhooks to be deleted, used to cleanup when a user deactivates or deletes a project", + "method": "DELETE", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/hooks/:id", + }, + Object { + "//": "used to create commit status messages", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/statuses/:sha", + }, + Object { + "//": "used to create branch for fix merge request", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/branches", + }, + Object { + "//": "used to create merge request for fix merge request", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/merge_requests", + }, + Object { + "//": "used to fetch fix merge request information", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/merge_requests", + }, + Object { + "//": "list the user's groups", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/groups", + }, + Object { + "//": "list of projects in a group", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/groups/:id/projects", + }, + Object { + "//": "get current user. so we'll be able to fetch it's projects", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/user", + }, + Object { + "//": "get user's projects", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/users/:user/projects", + }, + Object { + "//": "get all users. so we'll be able to fetch projects that admin can access", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/users", + }, + Object { + "//": "used to get repo's contributors list", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/commits", + }, + Object { + "//": "get a specific commit identified by the commit hash or name of a branch or tag.", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/commits/:sha", + }, + Object { + "//": "get merge base of two commits for given project.", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/merge_base", + }, + Object { + "//": "used to redirect requests to snyk git client", + "method": "any", + "origin": "\${GIT_CLIENT_URL}", + "path": "/snykgit/*", + }, + ], + "public": Array [ + Object { + "//": "used for pushing up webhooks from gitlab", + "method": "POST", + "path": "/webhook/gitlab/:webhookId", + }, + ], +} +`; + +exports[`filter Rules Loading Skip injection if no or invalid IAC extensions - Testing azure-repos 1`] = ` +Object { + "private": Array [ + Object { + "//": "get list of projects for given organisation", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/_apis/projects", + }, + Object { + "//": "get specific repository for given organisation", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo", + }, + Object { + "//": "get list of repositories for given organisation", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories", + }, + Object { + "//": "get list of refs", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/refs", + }, + Object { + "//": "search through repositories of given organisation", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "_apis/git/repositories", + }, + Object { + "//": "create hook", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "POST", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/_apis/hooks/subscriptions", + }, + Object { + "//": "delete hook", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "DELETE", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/_apis/hooks/subscriptions/:subscriptionId", + }, + Object { + "//": "get file content. restrict by file types", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/items", + "valid": Array [ + Object { + "queryParam": "path", + "values": Array [ + "**/package.json", + "**%2Fpackage.json", + "**/yarn.lock", + "**%2Fyarn.lock", + "**/package-lock.json", + "**%2Fpackage-lock.json", + "**/Gemfile", + "**%2FGemfile", + "**/Gemfile.lock", + "**%2FGemfile.lock", + "**/pom.xml", + "**%2Fpom.xml", + "**/*req*.txt", + "**%2F*req*.txt", + "**/requirements/*.txt", + "**%2Frequirements%2F*.txt", + "**/pyproject.toml", + "**%2Fpyproject.toml", + "**/poetry.lock", + "**%2Fpoetry.lock", + "**/Pipfile", + "**%2FPipfile", + "**/Pipfile.lock", + "**%2FPipfile.lock", + "**/build.gradle", + "**%2Fbuild.gradle", + "**/gradle.lockfile", + "**%2Fgradle.lockfile", + "**/build.sbt", + "**%2Fbuild.sbt", + "**/.snyk", + "**%2F.snyk", + "**/packages.config", + "**%2Fpackages.config", + "**/*.csproj", + "**%2F*.csproj", + "**/*.vbproj", + "**%2F*.vbproj", + "**/*.fsproj", + "**%2F*.fsproj", + "**/project.json", + "**%2Fproject.json", + "**/Gopkg.toml", + "**%2FGopkg.toml", + "**/Gopkg.lock", + "**%2FGopkg.lock", + "**/vendor.json", + "**%2Fvendor.json", + "**/composer.lock", + "**%2Fcomposer.lock", + "**/composer.json", + "**%2Fcomposer.json", + "**/project.assets.json", + "**%2Fproject.assets.json", + "**/Podfile", + "**%2FPodfile", + "**/Podfile.lock", + "**%2FPodfile.lock", + "**/go.mod", + "**%2Fgo.mod", + "**/go.sum", + "**%2Fgo.sum", + "**/*Dockerfile*", + "**%2F*Dockerfile*", + ], + }, + Object { + "queryParam": "recursionLevel", + "values": Array [ + "none", + ], + }, + Object { + "queryParam": "download", + "values": Array [ + "true", + ], + }, + Object { + "queryParam": "includeContent", + "values": Array [ + "true", + ], + }, + ], + }, + Object { + "//": "check file existence. restrict by file types", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/items", "valid": Array [ Object { - "queryParam": "file_path", + "queryParam": "path", "values": Array [ "**/package.json", "**%2Fpackage.json", @@ -53804,10 +70576,16 @@ Object { "**%2Fpom.xml", "**/*req*.txt", "**%2F*req*.txt", + "**/requirements/*.txt", + "**%2Frequirements%2F*.txt", "**/pyproject.toml", "**%2Fpyproject.toml", "**/poetry.lock", "**%2Fpoetry.lock", + "**/Pipfile", + "**%2FPipfile", + "**/Pipfile.lock", + "**%2FPipfile.lock", "**/build.gradle", "**%2Fbuild.gradle", "**/gradle.lockfile", @@ -53846,950 +70624,1242 @@ Object { "**%2Fgo.mod", "**/go.sum", "**%2Fgo.sum", + "**/*Dockerfile*", + "**%2F*Dockerfile*", + ], + }, + Object { + "queryParam": "versionDescriptor.versionType", + "values": Array [ + "branch", + ], + }, + Object { + "queryParam": "includeContentMetadata", + "values": Array [ + "true", ], }, ], }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/package.json", - }, - Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fpackage.json", - }, - Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/package-lock.json", + "//": "get list of files for given repository", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/items", + "valid": Array [ + Object { + "queryParam": "recursionLevel", + "values": Array [ + "full", + ], + }, + Object { + "queryParam": "download", + "values": Array [ + "false", + ], + }, + Object { + "queryParam": "includeContent", + "values": Array [ + "false", + ], + }, + ], }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fpackage-lock.json", + "//": "get list of commits for given repository", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/commits", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Gemfile.lock", + "//": "get merge base of two commits for given repository", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/commits/:commitId/mergebases", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FGemfile.lock", + "//": "update status of given commit", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "POST", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/commits/:commitId/statuses", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Gemfile", + "//": "update status of given pull request", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "POST", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/pullRequests/:pullRef/statuses", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FGemfile", + "//": "find PR for given repository", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/pullrequests", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/pom.xml", + "//": "create new PR in given repository", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "POST", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/pullrequests", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fpom.xml", + "//": "update existing PR in given repository", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "PATCH", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/pullrequests/:pullRef", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/*req*.txt", + "//": "push new commit in given repository", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "POST", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/pushes", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2F*req*.txt", + "//": "used to redirect requests to snyk git client", + "method": "any", + "origin": "\${GIT_CLIENT_URL}", + "path": "/snykgit/*", }, + ], + "public": Array [ Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/pyproject.toml", + "//": "used for pushing up webhooks from Azure", + "method": "POST", + "path": "/webhook/azure-repos/:webhookId", }, + ], +} +`; + +exports[`filter Rules Loading Skip injection if no or invalid IAC extensions - Testing bitbucket-server 1`] = ` +Object { + "private": Array [ Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fpyproject.toml", + "//": "list the user's projects", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/poetry.lock", + "//": "list the project's repos", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:projectKey/repos", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fpoetry.lock", + "//": "list the user's repos", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/repos", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/yarn.lock", + "//": "fetch a given repo", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fyarn.lock", + "//": "read all file names to find manifests", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/files/:searchPath?", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/build.gradle", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/package.json", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fbuild.gradle", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fpackage.json", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/gradle.lockfile", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/package-lock.json", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fgradle.lockfile", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fpackage-lock.json", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/gradle.properties", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Gemfile.lock", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fgradle.properties", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FGemfile.lock", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Directory.Build.targets", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Gemfile", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FDirectory.Build.targets", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FGemfile", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Directory.Build.props", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/pom.xml", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FDirectory.Build.props", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fpom.xml", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Packages.props", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/*req*.txt", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FPackages.props", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F*req*.txt", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/build.sbt", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/requirements/*.txt", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fbuild.sbt", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Frequirements%2F*.txt", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/packages.config", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/pyproject.toml", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fpackages.config", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fpyproject.toml", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/*.csproj", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/poetry.lock", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2F*.csproj", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fpoetry.lock", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/*.vbproj", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Pipfile", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2F*.vbproj", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FPipfile", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/*.fsproj", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Pipfile.lock", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2F*.fsproj", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FPipfile.lock", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/project.json", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/yarn.lock", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fproject.json", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fyarn.lock", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Gopkg.toml", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/build.gradle", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FGopkg.toml", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fbuild.gradle", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Gopkg.lock", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/gradle.lockfile", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FGopkg.lock", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fgradle.lockfile", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/vendor.json", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/gradle.properties", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fvendor.json", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fgradle.properties", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/composer.lock", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Packages.props", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fcomposer.lock", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FPackages.props", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/composer.json", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Directory.Build.props", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fcomposer.json", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FDirectory.Build.props", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/project.assets.json", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Directory.Build.targets", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fproject.assets.json", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FDirectory.Build.targets", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Podfile", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/build.sbt", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FPodfile", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fbuild.sbt", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/Podfile.lock", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/packages.config", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2FPodfile.lock", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fpackages.config", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/go.mod", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/*.csproj", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fgo.mod", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F*.csproj", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/go.sum", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/*.vbproj", }, Object { - "//": "used to update manifest file", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2Fgo.sum", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F*.vbproj", }, Object { - "//": "used to update Dockerfile", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/*Dockerfile*", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/*.fsproj", }, Object { - "//": "used to update Dockerfile", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2F*Dockerfile*", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F*.fsproj", }, Object { - "//": "used to update ignore rules or existing patches", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*/.snyk", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/project.json", }, Object { - "//": "used to update ignore rules or existing patches", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/files*%2F.snyk", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fproject.json", }, Object { - "//": "used to update manifest file for v3 protocol", - "method": "PUT", - "origin": "https://\${GITLAB}", - "path": "/api/v3/projects/:project/repository/files", - "valid": Array [ - Object { - "queryParam": "file_path", - "values": Array [ - "**/package.json", - "**%2Fpackage.json", - "**/yarn.lock", - "**%2Fyarn.lock", - "**/package-lock.json", - "**%2Fpackage-lock.json", - "**/Gemfile", - "**%2FGemfile", - "**/Gemfile.lock", - "**%2FGemfile.lock", - "**/pom.xml", - "**%2Fpom.xml", - "**/*req*.txt", - "**%2F*req*.txt", - "**/pyproject.toml", - "**%2Fpyproject.toml", - "**/poetry.lock", - "**%2Fpoetry.lock", - "**/build.gradle", - "**%2Fbuild.gradle", - "**/gradle.lockfile", - "**%2Fgradle.lockfile", - "**/build.sbt", - "**%2Fbuild.sbt", - "**/.snyk", - "**%2F.snyk", - "**/packages.config", - "**%2Fpackages.config", - "**/*.csproj", - "**%2F*.csproj", - "**/*.vbproj", - "**%2F*.vbproj", - "**/*.fsproj", - "**%2F*.fsproj", - "**/project.json", - "**%2Fproject.json", - "**/Gopkg.toml", - "**%2FGopkg.toml", - "**/Gopkg.lock", - "**%2FGopkg.lock", - "**/vendor.json", - "**%2Fvendor.json", - "**/composer.lock", - "**%2Fcomposer.lock", - "**/composer.json", - "**%2Fcomposer.json", - "**/project.assets.json", - "**%2Fproject.assets.json", - "**/Podfile", - "**%2FPodfile", - "**/Podfile.lock", - "**%2FPodfile.lock", - "**/go.mod", - "**%2Fgo.mod", - "**/go.sum", - "**%2Fgo.sum", - ], - }, - ], + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Gopkg.toml", }, Object { - "//": "allow webhooks to be added, to allow commits to be checked by Snyk. Rules for what is sent to Snyk are controlled in the \`public\` accept filters", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/hooks", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FGopkg.toml", }, Object { - "//": "allow webhooks to be deleted, used to cleanup when a user deactivates or deletes a project", - "method": "DELETE", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/hooks/:id", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Gopkg.lock", }, Object { - "//": "used to create commit status messages", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/statuses/:sha", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FGopkg.lock", }, Object { - "//": "used to create branch for fix merge request", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/branches", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/vendor.json", }, Object { - "//": "used to create merge request for fix merge request", - "method": "POST", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/merge_requests", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fvendor.json", }, Object { - "//": "used to fetch fix merge request information", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/merge_requests", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/composer.lock", }, Object { - "//": "list the user's groups", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/groups", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fcomposer.lock", }, Object { - "//": "list of projects in a group", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/groups/:id/projects", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/composer.json", }, Object { - "//": "get current user. so we'll be able to fetch it's projects", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/user", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fcomposer.json", }, Object { - "//": "get user's projects", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/users/:user/projects", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/project.assets.json", }, Object { - "//": "get all users. so we'll be able to fetch projects that admin can access", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/users", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fproject.assets.json", }, Object { - "//": "used to get repo's contributors list", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/commits", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Podfile", }, Object { - "//": "get a specific commit identified by the commit hash or name of a branch or tag.", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/commits/:sha", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FPodfile", }, Object { - "//": "get merge base of two commits for given project.", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, "method": "GET", - "origin": "https://\${GITLAB}", - "path": "/api/v4/projects/:project/repository/merge_base", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Podfile.lock", }, Object { - "//": "used to redirect requests to snyk git client", - "method": "any", - "origin": "\${GIT_CLIENT_URL}", - "path": "/snykgit/*", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FPodfile.lock", }, - ], - "public": Array [ Object { - "//": "used for pushing up webhooks from gitlab", - "method": "POST", - "path": "/webhook/gitlab/:webhookId", + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/go.mod", }, - ], -} -`; - -exports[`filter Rules Loading Skip injection if no or invalid IAC extensions - Testing azure-repos 1`] = ` -Object { - "private": Array [ Object { - "//": "get list of projects for given organisation", + "//": "used to determine the full dependency tree", "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + "username": "\${BITBUCKET_USERNAME}", }, "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/_apis/projects", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fgo.mod", }, Object { - "//": "get specific repository for given organisation", + "//": "used to determine the full dependency tree", "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + "username": "\${BITBUCKET_USERNAME}", }, "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/go.sum", }, Object { - "//": "get list of repositories for given organisation", + "//": "used to determine the full dependency tree", "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + "username": "\${BITBUCKET_USERNAME}", }, "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fgo.sum", }, Object { - "//": "get list of refs", + "//": "used to scan Dockerfile", "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + "username": "\${BITBUCKET_USERNAME}", }, "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/refs", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/*Dockerfile*", }, Object { - "//": "search through repositories of given organisation", + "//": "used to scan Dockerfile", "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + "username": "\${BITBUCKET_USERNAME}", }, "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "_apis/git/repositories", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F*Dockerfile*", }, Object { - "//": "create hook", + "//": "used to check if there's any ignore rules or existing patches", "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/.snyk", + }, + Object { + "//": "used to check if there's any ignore rules or existing patches", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F.snyk", + }, + Object { + "//": "get list of API capabilities", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/capabilities", + }, + Object { + "//": "allow webhooks to be added, to allow commits to be checked by Snyk. Rules for what is sent to Snyk are controlled in the \`public\` accept filters", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", }, "method": "POST", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/_apis/hooks/subscriptions", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/webhooks", }, Object { - "//": "delete hook", + "//": "allow webhooks to be deleted, used to cleanup when a user deactivates or deletes a project", "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + "username": "\${BITBUCKET_USERNAME}", }, "method": "DELETE", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/_apis/hooks/subscriptions/:subscriptionId", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/webhooks/:webhookId", }, Object { - "//": "get file content. restrict by file types", + "//": "used to create commit status messages", "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + "username": "\${BITBUCKET_USERNAME}", }, - "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/items", - "valid": Array [ - Object { - "queryParam": "path", - "values": Array [ - "**/package.json", - "**%2Fpackage.json", - "**/yarn.lock", - "**%2Fyarn.lock", - "**/package-lock.json", - "**%2Fpackage-lock.json", - "**/Gemfile", - "**%2FGemfile", - "**/Gemfile.lock", - "**%2FGemfile.lock", - "**/pom.xml", - "**%2Fpom.xml", - "**/*req*.txt", - "**%2F*req*.txt", - "**/requirements/*.txt", - "**%2Frequirements%2F*.txt", - "**/pyproject.toml", - "**%2Fpyproject.toml", - "**/poetry.lock", - "**%2Fpoetry.lock", - "**/Pipfile", - "**%2FPipfile", - "**/Pipfile.lock", - "**%2FPipfile.lock", - "**/build.gradle", - "**%2Fbuild.gradle", - "**/gradle.lockfile", - "**%2Fgradle.lockfile", - "**/build.sbt", - "**%2Fbuild.sbt", - "**/.snyk", - "**%2F.snyk", - "**/packages.config", - "**%2Fpackages.config", - "**/*.csproj", - "**%2F*.csproj", - "**/*.vbproj", - "**%2F*.vbproj", - "**/*.fsproj", - "**%2F*.fsproj", - "**/project.json", - "**%2Fproject.json", - "**/Gopkg.toml", - "**%2FGopkg.toml", - "**/Gopkg.lock", - "**%2FGopkg.lock", - "**/vendor.json", - "**%2Fvendor.json", - "**/composer.lock", - "**%2Fcomposer.lock", - "**/composer.json", - "**%2Fcomposer.json", - "**/project.assets.json", - "**%2Fproject.assets.json", - "**/Podfile", - "**%2FPodfile", - "**/Podfile.lock", - "**%2FPodfile.lock", - "**/go.mod", - "**%2Fgo.mod", - "**/go.sum", - "**%2Fgo.sum", - "**/*Dockerfile*", - "**%2F*Dockerfile*", - ], - }, - Object { - "queryParam": "recursionLevel", - "values": Array [ - "none", - ], - }, - Object { - "queryParam": "download", - "values": Array [ - "true", - ], - }, - Object { - "queryParam": "includeContent", - "values": Array [ - "true", - ], - }, - ], + "method": "POST", + "origin": "https://\${BITBUCKET}", + "path": "/rest/build-status/1.0/commits/:sha", }, Object { - "//": "check file existence. restrict by file types", + "//": "used to create a new branch for fix PRs", "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + "username": "\${BITBUCKET_USERNAME}", }, - "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/items", - "valid": Array [ - Object { - "queryParam": "path", - "values": Array [ - "**/package.json", - "**%2Fpackage.json", - "**/yarn.lock", - "**%2Fyarn.lock", - "**/package-lock.json", - "**%2Fpackage-lock.json", - "**/Gemfile", - "**%2FGemfile", - "**/Gemfile.lock", - "**%2FGemfile.lock", - "**/pom.xml", - "**%2Fpom.xml", - "**/*req*.txt", - "**%2F*req*.txt", - "**/requirements/*.txt", - "**%2Frequirements%2F*.txt", - "**/pyproject.toml", - "**%2Fpyproject.toml", - "**/poetry.lock", - "**%2Fpoetry.lock", - "**/Pipfile", - "**%2FPipfile", - "**/Pipfile.lock", - "**%2FPipfile.lock", - "**/build.gradle", - "**%2Fbuild.gradle", - "**/gradle.lockfile", - "**%2Fgradle.lockfile", - "**/build.sbt", - "**%2Fbuild.sbt", - "**/.snyk", - "**%2F.snyk", - "**/packages.config", - "**%2Fpackages.config", - "**/*.csproj", - "**%2F*.csproj", - "**/*.vbproj", - "**%2F*.vbproj", - "**/*.fsproj", - "**%2F*.fsproj", - "**/project.json", - "**%2Fproject.json", - "**/Gopkg.toml", - "**%2FGopkg.toml", - "**/Gopkg.lock", - "**%2FGopkg.lock", - "**/vendor.json", - "**%2Fvendor.json", - "**/composer.lock", - "**%2Fcomposer.lock", - "**/composer.json", - "**%2Fcomposer.json", - "**/project.assets.json", - "**%2Fproject.assets.json", - "**/Podfile", - "**%2FPodfile", - "**/Podfile.lock", - "**%2FPodfile.lock", - "**/go.mod", - "**%2Fgo.mod", - "**/go.sum", - "**%2Fgo.sum", - "**/*Dockerfile*", - "**%2F*Dockerfile*", - ], - }, - Object { - "queryParam": "versionDescriptor.versionType", - "values": Array [ - "branch", - ], - }, - Object { - "queryParam": "includeContentMetadata", - "values": Array [ - "true", - ], - }, - ], + "method": "POST", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/branches", + }, + Object { + "//": "used to create or update a file for fix PRs", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "PUT", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/browse/*", + }, + Object { + "//": "used to create a pull request for fix PRs", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "POST", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/pull-requests", }, Object { - "//": "get list of files for given repository", + "//": "used to query for open pull requests by branch", "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + "username": "\${BITBUCKET_USERNAME}", }, "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/items", - "valid": Array [ - Object { - "queryParam": "recursionLevel", - "values": Array [ - "full", - ], - }, - Object { - "queryParam": "download", - "values": Array [ - "false", - ], - }, - Object { - "queryParam": "includeContent", - "values": Array [ - "false", - ], - }, - ], + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/pull-requests", }, Object { - "//": "get list of commits for given repository", + "//": "used to query for a merge-base for a pull request", "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + "username": "\${BITBUCKET_USERNAME}", }, "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/commits", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/pull-requests/:pullRequestId/changes", }, Object { - "//": "get merge base of two commits for given repository", + "//": "used to check for a repo's default branch", "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + "username": "\${BITBUCKET_USERNAME}", }, "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/commits/:commitId/mergebases", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/branches/default", }, Object { - "//": "update status of given commit", + "//": "Used to get a branch specified by query string", "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + "username": "\${BITBUCKET_USERNAME}", }, - "method": "POST", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/commits/:commitId/statuses", + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/branches:filterText?", }, Object { - "//": "update status of given pull request", + "//": "get a specific commit identified by the commit hash or name of a branch", "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/commits/:sha", + }, + Object { + "//": "used to create a Code Insights report", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "PUT", + "origin": "https://\${BITBUCKET}", + "path": "/rest/insights/:apiVersion/projects/:project/repos/:repo/commits/:sha/reports/:report", + }, + Object { + "//": "used to remove a Code Insights report", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "DELETE", + "origin": "https://\${BITBUCKET}", + "path": "/rest/insights/:apiVersion/projects/:project/repos/:repo/commits/:sha/reports/:report", + }, + Object { + "//": "used to add Code Insights annotations to a report", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", }, "method": "POST", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/pullRequests/:pullRef/statuses", + "origin": "https://\${BITBUCKET}", + "path": "/rest/insights/:apiVersion/projects/:project/repos/:repo/commits/:sha/reports/:report/annotations", }, Object { - "//": "find PR for given repository", + "//": "get list of API capabilities for Code Insights", "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + "username": "\${BITBUCKET_USERNAME}", }, "method": "GET", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/pullrequests", + "origin": "https://\${BITBUCKET}", + "path": "/rest/insights/:apiVersion/capabilities", }, Object { - "//": "create new PR in given repository", + "//": "used to remove Code Insights annotations for a report", "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + "username": "\${BITBUCKET_USERNAME}", }, - "method": "POST", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/pullrequests", + "method": "DELETE", + "origin": "https://\${BITBUCKET}", + "path": "/rest/insights/:apiVersion/projects/:project/repos/:repo/commits/:sha/reports/:report/annotations", }, Object { - "//": "update existing PR in given repository", + "//": "used to get current user. so we'll be able to fetch current user's repos, that are not part of any project.", "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + "username": "\${BITBUCKET_USERNAME}", }, - "method": "PATCH", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/pullrequests/:pullRef", + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/application-properties", }, Object { - "//": "push new commit in given repository", + "//": "used to get current user. so we'll be able to fetch current user's repos, that are not part of any project - this is using atlassian's SDK api.", "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", "scheme": "basic", - "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + "username": "\${BITBUCKET_USERNAME}", }, - "method": "POST", - "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", - "path": "/:owner/_apis/git/repositories/:repo/pushes", + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/plugins/servlet/applinks/whoami", + }, + Object { + "//": "used to get the current user's project-like structure. So we'll be able to bind all user's private repos (that are not included in different project)", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:projectKey", + }, + Object { + "//": "used to check if the user has admin or higher permissions", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/admin/permissions/users", + }, + Object { + "//": "used to get all the users. it's called only for admin permissioned user. to retrieve all the repos they can access", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/users", }, Object { "//": "used to redirect requests to snyk git client", @@ -54797,26 +71867,47 @@ Object { "origin": "\${GIT_CLIENT_URL}", "path": "/snykgit/*", }, + Object { + "//": "used to fetch a given repo from API", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo", + }, + Object { + "//": "used to get default reviewers for a pull request", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/default-reviewers/1.0/projects/:projectKey/repos/:repo/reviewers", + }, ], "public": Array [ Object { - "//": "used for pushing up webhooks from Azure", + "//": "used for pushing up webhooks from bitbucket-server", "method": "POST", - "path": "/webhook/azure-repos/:webhookId", + "path": "/webhook/bitbucket-server/:webhookId", }, ], } `; -exports[`filter Rules Loading Skip injection if no or invalid IAC extensions - Testing bitbucket-server 1`] = ` +exports[`filter Rules Loading Skip injection if no or invalid IAC extensions - Testing bitbucket-server-bearer-auth 1`] = ` Object { "private": Array [ Object { "//": "list the user's projects", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -54825,9 +71916,8 @@ Object { Object { "//": "list the project's repos", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -54836,9 +71926,8 @@ Object { Object { "//": "list the user's repos", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -54847,9 +71936,8 @@ Object { Object { "//": "fetch a given repo", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -54858,9 +71946,8 @@ Object { Object { "//": "read all file names to find manifests", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET}", @@ -54869,9 +71956,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -54880,9 +71966,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -54891,9 +71976,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -54902,9 +71986,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -54913,9 +71996,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -54924,9 +72006,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -54935,9 +72016,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -54946,9 +72026,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -54957,9 +72036,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -54968,9 +72046,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -54979,9 +72056,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -54990,9 +72066,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -55001,9 +72076,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -55012,9 +72086,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -55023,9 +72096,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -55034,9 +72106,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -55045,9 +72116,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -55056,9 +72126,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -55067,9 +72136,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -55078,9 +72146,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -55089,9 +72156,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -55100,9 +72166,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -55111,9 +72176,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -55122,9 +72186,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -55133,9 +72196,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -55144,9 +72206,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -55155,9 +72216,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -55166,9 +72226,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -55177,9 +72236,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -55188,9 +72246,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -55199,9 +72256,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -55210,9 +72266,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -55221,9 +72276,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -55232,9 +72286,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -55243,9 +72296,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -55254,9 +72306,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -55265,9 +72316,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -55276,9 +72326,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -55287,9 +72336,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -55298,9 +72346,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -55309,9 +72356,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -55320,9 +72366,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -55331,9 +72376,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -55342,9 +72386,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -55353,9 +72396,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -55364,9 +72406,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -55375,9 +72416,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -55386,9 +72426,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -55397,9 +72436,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -55408,9 +72446,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -55419,9 +72456,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -55430,9 +72466,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -55441,9 +72476,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -55452,9 +72486,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -55463,9 +72496,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -55474,9 +72506,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -55485,9 +72516,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -55496,9 +72526,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -55507,9 +72536,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -55518,9 +72546,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -55529,9 +72556,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -55540,9 +72566,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -55551,9 +72576,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -55562,9 +72586,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -55573,9 +72596,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -55584,9 +72606,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -55595,9 +72616,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -55606,9 +72626,8 @@ Object { Object { "//": "used to determine the full dependency tree", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -55617,9 +72636,8 @@ Object { Object { "//": "used to scan Dockerfile", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -55628,9 +72646,8 @@ Object { Object { "//": "used to scan Dockerfile", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -55639,9 +72656,8 @@ Object { Object { "//": "used to check if there's any ignore rules or existing patches", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -55650,9 +72666,8 @@ Object { Object { "//": "used to check if there's any ignore rules or existing patches", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -55661,9 +72676,8 @@ Object { Object { "//": "get list of API capabilities", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET}", @@ -55672,9 +72686,8 @@ Object { Object { "//": "allow webhooks to be added, to allow commits to be checked by Snyk. Rules for what is sent to Snyk are controlled in the \`public\` accept filters", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "POST", "origin": "https://\${BITBUCKET}", @@ -55683,9 +72696,8 @@ Object { Object { "//": "allow webhooks to be deleted, used to cleanup when a user deactivates or deletes a project", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "DELETE", "origin": "https://\${BITBUCKET}", @@ -55694,9 +72706,8 @@ Object { Object { "//": "used to create commit status messages", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "POST", "origin": "https://\${BITBUCKET}", @@ -55705,9 +72716,8 @@ Object { Object { "//": "used to create a new branch for fix PRs", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "POST", "origin": "https://\${BITBUCKET}", @@ -55716,9 +72726,8 @@ Object { Object { "//": "used to create or update a file for fix PRs", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "PUT", "origin": "https://\${BITBUCKET}", @@ -55727,9 +72736,8 @@ Object { Object { "//": "used to create a pull request for fix PRs", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "POST", "origin": "https://\${BITBUCKET}", @@ -55738,9 +72746,8 @@ Object { Object { "//": "used to query for open pull requests by branch", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET}", @@ -55749,9 +72756,8 @@ Object { Object { "//": "used to query for a merge-base for a pull request", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET}", @@ -55760,9 +72766,8 @@ Object { Object { "//": "used to check for a repo's default branch", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET}", @@ -55771,9 +72776,8 @@ Object { Object { "//": "Used to get a branch specified by query string", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET}", @@ -55782,9 +72786,8 @@ Object { Object { "//": "get a specific commit identified by the commit hash or name of a branch", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET}", @@ -55793,9 +72796,8 @@ Object { Object { "//": "used to create a Code Insights report", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "PUT", "origin": "https://\${BITBUCKET}", @@ -55804,9 +72806,8 @@ Object { Object { "//": "used to remove a Code Insights report", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "DELETE", "origin": "https://\${BITBUCKET}", @@ -55815,9 +72816,8 @@ Object { Object { "//": "used to add Code Insights annotations to a report", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "POST", "origin": "https://\${BITBUCKET}", @@ -55826,9 +72826,8 @@ Object { Object { "//": "get list of API capabilities for Code Insights", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET}", @@ -55837,9 +72836,8 @@ Object { Object { "//": "used to remove Code Insights annotations for a report", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "DELETE", "origin": "https://\${BITBUCKET}", @@ -55848,9 +72846,8 @@ Object { Object { "//": "used to get current user. so we'll be able to fetch current user's repos, that are not part of any project.", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET}", @@ -55859,9 +72856,8 @@ Object { Object { "//": "used to get current user. so we'll be able to fetch current user's repos, that are not part of any project - this is using atlassian's SDK api.", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET}", @@ -55870,9 +72866,8 @@ Object { Object { "//": "used to get the current user's project-like structure. So we'll be able to bind all user's private repos (that are not included in different project)", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -55881,9 +72876,8 @@ Object { Object { "//": "used to check if the user has admin or higher permissions", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -55892,9 +72886,8 @@ Object { Object { "//": "used to get all the users. it's called only for admin permissioned user. to retrieve all the repos they can access", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET_API}", @@ -55909,9 +72902,8 @@ Object { Object { "//": "used to fetch a given repo from API", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET}", @@ -55920,9 +72912,8 @@ Object { Object { "//": "used to get default reviewers for a pull request", "auth": Object { - "password": "\${BITBUCKET_PASSWORD}", - "scheme": "basic", - "username": "\${BITBUCKET_USERNAME}", + "scheme": "bearer", + "token": "\${BITBUCKET_PAT}", }, "method": "GET", "origin": "https://\${BITBUCKET}", diff --git a/test/unit/runtime-rules-hotloading.test.ts b/test/unit/runtime-rules-hotloading.test.ts index d0399207a..5f9ca9fc0 100644 --- a/test/unit/runtime-rules-hotloading.test.ts +++ b/test/unit/runtime-rules-hotloading.test.ts @@ -6,6 +6,7 @@ import camelcase from 'camelcase'; const scmRulesToTest = [ 'azure-repos', 'bitbucket-server', + 'bitbucket-server-bearer-auth', 'github', 'github-enterprise', 'gitlab', @@ -205,4 +206,29 @@ describe('filter Rules Loading', () => { delete process.env.ACCEPT; }, ); + + test.each(scmRulesToTest)( + 'Injection of valid ACCEPT_CUSTOM_PR_TEMPLATES rules - Testing %s', + (folder) => { + process.env.ACCEPT_CUSTOM_PR_TEMPLATES = 'true'; + process.env.ACCEPT = 'accept.json'; + process.env[`BROKER_DOWNSTREAM_TYPE_${folder}`] = 'true'; + const config: CONFIGURATION = { + brokerType: 'client', + supportedBrokerTypes: scmRulesToTest, + accept: 'accept.json.sample', + filterRulesPath: {}, + }; + config[camelcase(`BROKER_DOWNSTREAM_TYPE_${folder}`)] = 'true'; + const loadedRules = loadFilterRules( + config, + path.join(__dirname, '../..', `client-templates/${folder}`), + ); + + expect(loadedRules).toMatchSnapshot(); + delete process.env.ACCEPT_CUSTOM_PR_TEMPLATES; + delete process.env[`BROKER_DOWNSTREAM_TYPE_${folder}`]; + delete process.env.ACCEPT; + }, + ); });