diff --git a/README.md b/README.md index b4c991e4b..535727027 100644 --- a/README.md +++ b/README.md @@ -475,7 +475,22 @@ docker run --restart=always \ #### Infrastructure as Code (IaC) -By default, some file types used by Infrastructure-as-Code (IaC) are not enabled. To grant the Broker access to IaC files in your repository, such as Terraform for example, edit your `accept.json` and add the relevant IaC specific rules. +By default, some file types used by Infrastructure-as-Code (IaC) are not enabled. To grant the Broker access to IaC files in your repository, such as Terraform for example, you can simply add an environment variable ACCEPT_IAC with any combination of tf,yaml,yml,json,tpl + +Example: + +```console +docker run --restart=always \ + -p 8000:8000 \ + -e BROKER_TOKEN=secret-broker-token \ + -e GITHUB_TOKEN=secret-github-token \ + -e PORT=8000 \ + -e BROKER_CLIENT_URL=http://my.broker.client:8000 \ + -e ACCEPT_IAC=tf,yaml,yml,json,tpl + snyk/broker:github-com +``` + +You can otherwise edit your `accept.json`, add the relevant IaC specific rules and load the customized accept file into the container. Note that if a custom accept file is used (using ACCEPT environment variable), the ACCEPT_IAC mechanism is then disabled. For example, if you are using GitHub and you would like to give the Broker access to your Terraform files, you should add the following rules to your `accept.json`: @@ -497,6 +512,22 @@ For example, if you are using GitHub and you would like to give the Broker acces More details can be found here: [Detecting infrastructure as code files using a broker](https://docs.snyk.io/products/snyk-infrastructure-as-code/detecting-infrastructure-as-code-files-using-a-broker) +#### Snyk Code +By default, git clone capabilities required by Snyk Code are disabled. To grant the Broker access to performa a git clone of your repo, you can simply add an environment variable ACCEPT_CODE=true + +Example: + +```console +docker run --restart=always \ + -p 8000:8000 \ + -e BROKER_TOKEN=secret-broker-token \ + -e GITHUB_TOKEN=secret-github-token \ + -e PORT=8000 \ + -e BROKER_CLIENT_URL=http://my.broker.client:8000 \ + -e ACCEPT_CODE=true + snyk/broker:github-com +``` + #### Changing the Auth Method Each integration has an auth method set by default, with the exact method varying by service. diff --git a/lib/filter-rules-loading.js b/lib/filter-rules-loading.js index 4dfcefe81..4521d12c9 100644 --- a/lib/filter-rules-loading.js +++ b/lib/filter-rules-loading.js @@ -2,6 +2,121 @@ const path = require('path'); const yaml = require('js-yaml'); const fs = require('fs'); +const logger = require('./log'); + +const SUPPORTED_IAC_EXTENSIONS = ['tf', 'yaml', 'yml', 'tpl', 'json']; +const IAC_SCM_ORIGINS = [ + 'GITLAB', + 'AZURE_REPOS_HOST', + 'GITHUB_API', + 'BITBUCKET_API', +]; +const CODE_SCM_ORIGINS = ['GITLAB', 'AZURE_REPOS_HOST', 'GITHUB', 'BITBUCKET']; + +function nestedCopy(array) { + return JSON.parse(JSON.stringify(array)); +} + +function injectRulesAtRuntime(filters) { + if (process.env.ACCEPT_IAC) { + logger.info( + { accept: process.env.ACCEPT_IAC }, + 'Injecting Accept rules for IAC extensions - Possible values tf, yaml, yml, json, tpl', + ); + const extensions = process.env.ACCEPT_IAC.replace(/\s/g, '') + .split(',') + .filter((extension) => SUPPORTED_IAC_EXTENSIONS.includes(extension)); + if (extensions.length <= 0) { + logger.error( + { accept: extensions }, + '[MISCONFIGURATION] None of the requested ACCEPT IAC file extensions is compatible', + ); + } else if (!filters.private[0].origin.includes('AZURE')) { + // API endpoints for IAC (github, ghe, bitbucket server), doesn't matter for azure, gitlab + // file pattern is different for Azure repos, requirements work for all others + let template = nestedCopy( + filters.private.filter( + (entry) => + entry.method == 'GET' && + entry.path.includes('requirements') && + IAC_SCM_ORIGINS.filter((origin) => + entry.origin.includes(`{${origin}}`), + ).length > 0, + ), + ); + for (let i = 0; i < template.length; i++) { + template[i].path = template[i].path + .replace('/requirements', '') + .replace('%2Frequirements', ''); + template[i]['//'] = template[i]['//'].replace( + 'determine the full dependency tree', + 'scan IAC files', + ); + } + for (let i = 0; i < extensions.length; i++) { + const extensionTemplate = nestedCopy(template); + extensionTemplate[0].path = extensionTemplate[0].path.replace( + 'txt', + extensions[i], + ); + extensionTemplate[1].path = extensionTemplate[1].path.replace( + 'txt', + extensions[i], + ); + filters.private.push(...extensionTemplate); + } + } else if (filters.private[0].origin.includes('AZURE')) { + // Copying and modifying in place in array, not doing NestedCopy here + let templateToModify = filters.private.filter( + (entry) => + entry.method == 'GET' && + entry.valid && + entry.valid[0].values.includes('**/requirements/*.txt'), + ); + for (let i = 0; i < templateToModify.length; i++) { + for (let j = 0; j < extensions.length; j++) { + templateToModify[i].valid[0].values.push(`**/*.${extensions[j]}`); + templateToModify[i].valid[0].values.push(`**%2F*.${extensions[j]}`); + } + } + } else { + logger.error( + { accept: process.env.ACCEPT_IAC }, + 'Error Unexpected error at rules injection time. Remove ACCEPT_IAC env var to skip injection logic.', + ); + } + } + if (process.env.ACCEPT_CODE) { + logger.info( + { accept: process.env.ACCEPT_CODE }, + 'Injecting Accept rules for Code', + ); + let templateGET = nestedCopy( + filters.private.filter( + (entry) => + entry.method == 'GET' && + CODE_SCM_ORIGINS.filter((origin) => + entry.origin.includes(`{${origin}}`), + ).length > 0, + )[0], + ); + + templateGET.path = '*/info/refs*'; + templateGET['//'] = 'allow info refs (for git clone)'; + templateGET.origin = templateGET.origin + .replace('https://${GITHUB_TOKEN}', 'https://pat:${GITHUB_TOKEN}') + .replace('https://${GITLAB}', 'https://oauth2:${GITLAB_TOKEN}@${GITLAB}'); + let templatePOST = nestedCopy(templateGET); + + templatePOST.method = 'POST'; + templatePOST.path = '*/git-upload-pack'; + templatePOST['//'] = 'allow git-upload-pack (for git clone)'; + + filters.private.push(...[templateGET, templatePOST]); + } + return filters; +} + module.exports = (acceptFilename = '', folderLocation = '') => { let filters = {}; if (acceptFilename) { @@ -12,5 +127,17 @@ module.exports = (acceptFilename = '', folderLocation = '') => { filters = yaml.safeLoad(fs.readFileSync(acceptLocation, 'utf8')); } + + // If user brings an accept json, skip the IAC|CODE rules injection logic + // If going through the effort of loading a separate file, add your rules there + if (!process.env.ACCEPT) { + filters = injectRulesAtRuntime(filters); + } else { + logger.info( + { accept: process.env.ACCEPT }, + 'Custom accept json, skipping filter rule injection', + ); + } + return filters; }; diff --git a/test/unit/__snapshots__/runtime-rules-hotloading.test.ts.snap b/test/unit/__snapshots__/runtime-rules-hotloading.test.ts.snap new file mode 100644 index 000000000..38b4f43ba --- /dev/null +++ b/test/unit/__snapshots__/runtime-rules-hotloading.test.ts.snap @@ -0,0 +1,37703 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +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", + "**/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", + "**/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 { + "//": "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", + }, + ], + "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*/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 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 { + "//": "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. we're using atlassian's SDK api. Because atlassian's BB server rest api currently doesn't support such functionality", + "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", + }, + ], + "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-com 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*/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*/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 { + "//": "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 { + "//": "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", + "valid": Array [ + Object { + "//": "query for all the file names 2 levels deep in the repo. used for auto project detection", + "path": "query", + "regex": "{\\\\s*repositoryOwner\\\\(login:\\\\s*\\"([a-zA-Z0-9-_.]+)\\"\\\\)\\\\s*{\\\\s*repository\\\\(name:\\\\s*\\"([a-zA-Z0-9-_.]+)\\"\\\\)\\\\s*{\\\\s*object\\\\(expression:\\\\s*\\"([a-zA-Z0-9-_./:]+)\\"\\\\)\\\\s*{\\\\s*\\\\.\\\\.\\\\.\\\\s*on\\\\s+Tree\\\\s+{\\\\s*entries\\\\s*{\\\\s*name\\\\s+type\\\\s+object\\\\s*{\\\\s*\\\\.\\\\.\\\\.\\\\s*on\\\\s+Tree\\\\s+{\\\\s*entries\\\\s*{\\\\s*name\\\\s+type\\\\s+object\\\\s*{\\\\s*\\\\.\\\\.\\\\.\\\\s*on\\\\s+Tree\\\\s*{\\\\s*entries\\\\s*{\\\\s*name\\\\s+type\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}", + }, + Object { + "//": "query to find open snyk pull requests, allowing auto dependency upgrade pull requests to open no more than a limited amount of pull requests", + "path": "query", + "regex": "{\\\\s*search\\\\(\\\\s*query: \\"repo:[a-zA-Z0-9-_.]+\\\\/[a-zA-Z0-9-_.]+ is:pr state:[a-zA-Z]+ head:snyk-\\\\s*(is:[a-zA-Z]+)?\\", type: ISSUE, last: [0-9]+\\\\s*\\\\)\\\\s*{\\\\s*edges {\\\\s*node {\\\\s*\\\\.\\\\.\\\\. on PullRequest {\\\\s*url\\\\s*title\\\\s*createdAt\\\\s*headRefName\\\\s*state\\\\s*mergeable\\\\s*body\\\\s*repository\\\\s*{\\\\s*name\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*rateLimit\\\\s*{\\\\s*limit\\\\s*cost\\\\s*remaining\\\\s*resetAt\\\\s*}\\\\s*}\\\\s*", + }, + Object { + "//": "query to get file SHA", + "path": "query", + "regex": "{\\\\s*repository\\\\(\\\\s*owner:\\\\s*\\"[a-zA-Z0-9-_.]+\\",\\\\s*name:\\\\s*\\"[a-zA-Z0-9-_.]+\\"\\\\)\\\\s*{\\\\s*object\\\\(\\\\s*expression:\\\\s*\\"[a-zA-Z0-9-_./]+:[a-zA-Z0-9-_./]+\\"\\\\)\\\\s*{\\\\s*\\\\.\\\\.\\\\.\\\\s*on\\\\s*Blob\\\\s*{\\\\s*oid\\\\,\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*", + }, + ], + }, + 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", + }, + ], + "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": "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*/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*/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 { + "//": "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 { + "//": "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", + "valid": Array [ + Object { + "//": "query for all the file names 2 levels deep in the repo. used for auto project detection", + "path": "query", + "regex": "{\\\\s*repositoryOwner\\\\(login:\\\\s*\\"([a-zA-Z0-9-_.]+)\\"\\\\)\\\\s*{\\\\s*repository\\\\(name:\\\\s*\\"([a-zA-Z0-9-_.]+)\\"\\\\)\\\\s*{\\\\s*object\\\\(expression:\\\\s*\\"([a-zA-Z0-9-_./:]+)\\"\\\\)\\\\s*{\\\\s*\\\\.\\\\.\\\\.\\\\s*on\\\\s+Tree\\\\s+{\\\\s*entries\\\\s*{\\\\s*name\\\\s+type\\\\s+object\\\\s*{\\\\s*\\\\.\\\\.\\\\.\\\\s*on\\\\s+Tree\\\\s+{\\\\s*entries\\\\s*{\\\\s*name\\\\s+type\\\\s+object\\\\s*{\\\\s*\\\\.\\\\.\\\\.\\\\s*on\\\\s+Tree\\\\s*{\\\\s*entries\\\\s*{\\\\s*name\\\\s+type\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}", + }, + Object { + "//": "query to find open snyk pull requests, allowing auto dependency upgrade pull requests to open no more than a limited amount of pull requests", + "path": "query", + "regex": "{\\\\s*search\\\\(\\\\s*query: \\"repo:[a-zA-Z0-9-_.]+\\\\/[a-zA-Z0-9-_.]+ is:pr state:[a-zA-Z]+ head:snyk-\\\\s*(is:[a-zA-Z]+)?\\", type: ISSUE, last: [0-9]+\\\\s*\\\\)\\\\s*{\\\\s*edges {\\\\s*node {\\\\s*\\\\.\\\\.\\\\. on PullRequest {\\\\s*url\\\\s*title\\\\s*createdAt\\\\s*headRefName\\\\s*state\\\\s*mergeable\\\\s*body\\\\s*repository\\\\s*{\\\\s*name\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*rateLimit\\\\s*{\\\\s*limit\\\\s*cost\\\\s*remaining\\\\s*resetAt\\\\s*}\\\\s*}\\\\s*", + }, + Object { + "//": "query to get file SHA", + "path": "query", + "regex": "{\\\\s*repository\\\\(\\\\s*owner:\\\\s*\\"[a-zA-Z0-9-_.]+\\",\\\\s*name:\\\\s*\\"[a-zA-Z0-9-_.]+\\"\\\\)\\\\s*{\\\\s*object\\\\(\\\\s*expression:\\\\s*\\"[a-zA-Z0-9-_./]+:[a-zA-Z0-9-_./]+\\"\\\\)\\\\s*{\\\\s*\\\\.\\\\.\\\\.\\\\s*on\\\\s*Blob\\\\s*{\\\\s*oid\\\\,\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*", + }, + ], + }, + 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", + }, + ], + "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": "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*/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", + "**/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*/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", + "**/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*/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", + "**/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 { + "//": "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", + }, + ], + "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", + "**/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", + "**/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 { + "//": "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", + }, + ], + "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*/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 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 { + "//": "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. we're using atlassian's SDK api. Because atlassian's BB server rest api currently doesn't support such functionality", + "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", + }, + ], + "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-com 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*/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*/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 { + "//": "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 { + "//": "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", + "valid": Array [ + Object { + "//": "query for all the file names 2 levels deep in the repo. used for auto project detection", + "path": "query", + "regex": "{\\\\s*repositoryOwner\\\\(login:\\\\s*\\"([a-zA-Z0-9-_.]+)\\"\\\\)\\\\s*{\\\\s*repository\\\\(name:\\\\s*\\"([a-zA-Z0-9-_.]+)\\"\\\\)\\\\s*{\\\\s*object\\\\(expression:\\\\s*\\"([a-zA-Z0-9-_./:]+)\\"\\\\)\\\\s*{\\\\s*\\\\.\\\\.\\\\.\\\\s*on\\\\s+Tree\\\\s+{\\\\s*entries\\\\s*{\\\\s*name\\\\s+type\\\\s+object\\\\s*{\\\\s*\\\\.\\\\.\\\\.\\\\s*on\\\\s+Tree\\\\s+{\\\\s*entries\\\\s*{\\\\s*name\\\\s+type\\\\s+object\\\\s*{\\\\s*\\\\.\\\\.\\\\.\\\\s*on\\\\s+Tree\\\\s*{\\\\s*entries\\\\s*{\\\\s*name\\\\s+type\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}", + }, + Object { + "//": "query to find open snyk pull requests, allowing auto dependency upgrade pull requests to open no more than a limited amount of pull requests", + "path": "query", + "regex": "{\\\\s*search\\\\(\\\\s*query: \\"repo:[a-zA-Z0-9-_.]+\\\\/[a-zA-Z0-9-_.]+ is:pr state:[a-zA-Z]+ head:snyk-\\\\s*(is:[a-zA-Z]+)?\\", type: ISSUE, last: [0-9]+\\\\s*\\\\)\\\\s*{\\\\s*edges {\\\\s*node {\\\\s*\\\\.\\\\.\\\\. on PullRequest {\\\\s*url\\\\s*title\\\\s*createdAt\\\\s*headRefName\\\\s*state\\\\s*mergeable\\\\s*body\\\\s*repository\\\\s*{\\\\s*name\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*rateLimit\\\\s*{\\\\s*limit\\\\s*cost\\\\s*remaining\\\\s*resetAt\\\\s*}\\\\s*}\\\\s*", + }, + Object { + "//": "query to get file SHA", + "path": "query", + "regex": "{\\\\s*repository\\\\(\\\\s*owner:\\\\s*\\"[a-zA-Z0-9-_.]+\\",\\\\s*name:\\\\s*\\"[a-zA-Z0-9-_.]+\\"\\\\)\\\\s*{\\\\s*object\\\\(\\\\s*expression:\\\\s*\\"[a-zA-Z0-9-_./]+:[a-zA-Z0-9-_./]+\\"\\\\)\\\\s*{\\\\s*\\\\.\\\\.\\\\.\\\\s*on\\\\s*Blob\\\\s*{\\\\s*oid\\\\,\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*", + }, + ], + }, + 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)", + "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", + }, + ], + "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": "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 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*/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*/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 { + "//": "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 { + "//": "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", + "valid": Array [ + Object { + "//": "query for all the file names 2 levels deep in the repo. used for auto project detection", + "path": "query", + "regex": "{\\\\s*repositoryOwner\\\\(login:\\\\s*\\"([a-zA-Z0-9-_.]+)\\"\\\\)\\\\s*{\\\\s*repository\\\\(name:\\\\s*\\"([a-zA-Z0-9-_.]+)\\"\\\\)\\\\s*{\\\\s*object\\\\(expression:\\\\s*\\"([a-zA-Z0-9-_./:]+)\\"\\\\)\\\\s*{\\\\s*\\\\.\\\\.\\\\.\\\\s*on\\\\s+Tree\\\\s+{\\\\s*entries\\\\s*{\\\\s*name\\\\s+type\\\\s+object\\\\s*{\\\\s*\\\\.\\\\.\\\\.\\\\s*on\\\\s+Tree\\\\s+{\\\\s*entries\\\\s*{\\\\s*name\\\\s+type\\\\s+object\\\\s*{\\\\s*\\\\.\\\\.\\\\.\\\\s*on\\\\s+Tree\\\\s*{\\\\s*entries\\\\s*{\\\\s*name\\\\s+type\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}", + }, + Object { + "//": "query to find open snyk pull requests, allowing auto dependency upgrade pull requests to open no more than a limited amount of pull requests", + "path": "query", + "regex": "{\\\\s*search\\\\(\\\\s*query: \\"repo:[a-zA-Z0-9-_.]+\\\\/[a-zA-Z0-9-_.]+ is:pr state:[a-zA-Z]+ head:snyk-\\\\s*(is:[a-zA-Z]+)?\\", type: ISSUE, last: [0-9]+\\\\s*\\\\)\\\\s*{\\\\s*edges {\\\\s*node {\\\\s*\\\\.\\\\.\\\\. on PullRequest {\\\\s*url\\\\s*title\\\\s*createdAt\\\\s*headRefName\\\\s*state\\\\s*mergeable\\\\s*body\\\\s*repository\\\\s*{\\\\s*name\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*rateLimit\\\\s*{\\\\s*limit\\\\s*cost\\\\s*remaining\\\\s*resetAt\\\\s*}\\\\s*}\\\\s*", + }, + Object { + "//": "query to get file SHA", + "path": "query", + "regex": "{\\\\s*repository\\\\(\\\\s*owner:\\\\s*\\"[a-zA-Z0-9-_.]+\\",\\\\s*name:\\\\s*\\"[a-zA-Z0-9-_.]+\\"\\\\)\\\\s*{\\\\s*object\\\\(\\\\s*expression:\\\\s*\\"[a-zA-Z0-9-_./]+:[a-zA-Z0-9-_./]+\\"\\\\)\\\\s*{\\\\s*\\\\.\\\\.\\\\.\\\\s*on\\\\s*Blob\\\\s*{\\\\s*oid\\\\,\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*", + }, + ], + }, + 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)", + "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", + }, + ], + "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": "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 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*/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", + "**/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*/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", + "**/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*/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", + "**/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 { + "//": "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*/*.yaml", + }, + Object { + "//": "used to scan IAC files", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*.yaml", + }, + 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", + }, + ], + "public": Array [ + Object { + "//": "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 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", + "**/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", + ], + }, + ], + }, + 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", + "**/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", + ], + }, + ], + }, + 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 { + "//": "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/*", + }, + ], + "public": Array [ + Object { + "//": "used for pushing up webhooks from Azure", + "method": "POST", + "path": "/webhook/azure-repos/:webhookId", + }, + ], +} +`; + +exports[`filter Rules Loading Injection of valid IAC extensions - Testing azure-repos 2`] = ` +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", + "**/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 { + "//": "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", + "**/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 { + "//": "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 { + "//": "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/*", + }, + ], + "public": Array [ + Object { + "//": "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 { + "//": "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*/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 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 { + "//": "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. we're using atlassian's SDK api. Because atlassian's BB server rest api currently doesn't support such functionality", + "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*/*.tf", + }, + 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*.tf", + }, + 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 { + "//": "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 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 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 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 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 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 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 { + "//": "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*/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 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 { + "//": "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. we're using atlassian's SDK api. Because atlassian's BB server rest api currently doesn't support such functionality", + "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*/*.tf", + }, + 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*.tf", + }, + 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*/*.json", + }, + 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*.json", + }, + ], + "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 IAC extensions - Testing github-com 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*/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*/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 { + "//": "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 { + "//": "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", + "valid": Array [ + Object { + "//": "query for all the file names 2 levels deep in the repo. used for auto project detection", + "path": "query", + "regex": "{\\\\s*repositoryOwner\\\\(login:\\\\s*\\"([a-zA-Z0-9-_.]+)\\"\\\\)\\\\s*{\\\\s*repository\\\\(name:\\\\s*\\"([a-zA-Z0-9-_.]+)\\"\\\\)\\\\s*{\\\\s*object\\\\(expression:\\\\s*\\"([a-zA-Z0-9-_./:]+)\\"\\\\)\\\\s*{\\\\s*\\\\.\\\\.\\\\.\\\\s*on\\\\s+Tree\\\\s+{\\\\s*entries\\\\s*{\\\\s*name\\\\s+type\\\\s+object\\\\s*{\\\\s*\\\\.\\\\.\\\\.\\\\s*on\\\\s+Tree\\\\s+{\\\\s*entries\\\\s*{\\\\s*name\\\\s+type\\\\s+object\\\\s*{\\\\s*\\\\.\\\\.\\\\.\\\\s*on\\\\s+Tree\\\\s*{\\\\s*entries\\\\s*{\\\\s*name\\\\s+type\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}", + }, + Object { + "//": "query to find open snyk pull requests, allowing auto dependency upgrade pull requests to open no more than a limited amount of pull requests", + "path": "query", + "regex": "{\\\\s*search\\\\(\\\\s*query: \\"repo:[a-zA-Z0-9-_.]+\\\\/[a-zA-Z0-9-_.]+ is:pr state:[a-zA-Z]+ head:snyk-\\\\s*(is:[a-zA-Z]+)?\\", type: ISSUE, last: [0-9]+\\\\s*\\\\)\\\\s*{\\\\s*edges {\\\\s*node {\\\\s*\\\\.\\\\.\\\\. on PullRequest {\\\\s*url\\\\s*title\\\\s*createdAt\\\\s*headRefName\\\\s*state\\\\s*mergeable\\\\s*body\\\\s*repository\\\\s*{\\\\s*name\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*rateLimit\\\\s*{\\\\s*limit\\\\s*cost\\\\s*remaining\\\\s*resetAt\\\\s*}\\\\s*}\\\\s*", + }, + Object { + "//": "query to get file SHA", + "path": "query", + "regex": "{\\\\s*repository\\\\(\\\\s*owner:\\\\s*\\"[a-zA-Z0-9-_.]+\\",\\\\s*name:\\\\s*\\"[a-zA-Z0-9-_.]+\\"\\\\)\\\\s*{\\\\s*object\\\\(\\\\s*expression:\\\\s*\\"[a-zA-Z0-9-_./]+:[a-zA-Z0-9-_./]+\\"\\\\)\\\\s*{\\\\s*\\\\.\\\\.\\\\.\\\\s*on\\\\s*Blob\\\\s*{\\\\s*oid\\\\,\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*", + }, + ], + }, + Object { + "//": "used to scan IAC files", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*.tf", + }, + Object { + "//": "used to scan IAC files", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*.tf", + }, + 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 { + "//": "used to scan IAC files", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*.json", + }, + Object { + "//": "used to scan IAC files", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*.json", + }, + Object { + "//": "used to scan IAC files", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*.yml", + }, + Object { + "//": "used to scan IAC files", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*.yml", + }, + Object { + "//": "used to scan IAC files", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*.tpl", + }, + Object { + "//": "used to scan IAC files", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*.tpl", + }, + ], + "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": "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 IAC extensions - Testing github-com 2`] = ` +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*/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*/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 { + "//": "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 { + "//": "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", + "valid": Array [ + Object { + "//": "query for all the file names 2 levels deep in the repo. used for auto project detection", + "path": "query", + "regex": "{\\\\s*repositoryOwner\\\\(login:\\\\s*\\"([a-zA-Z0-9-_.]+)\\"\\\\)\\\\s*{\\\\s*repository\\\\(name:\\\\s*\\"([a-zA-Z0-9-_.]+)\\"\\\\)\\\\s*{\\\\s*object\\\\(expression:\\\\s*\\"([a-zA-Z0-9-_./:]+)\\"\\\\)\\\\s*{\\\\s*\\\\.\\\\.\\\\.\\\\s*on\\\\s+Tree\\\\s+{\\\\s*entries\\\\s*{\\\\s*name\\\\s+type\\\\s+object\\\\s*{\\\\s*\\\\.\\\\.\\\\.\\\\s*on\\\\s+Tree\\\\s+{\\\\s*entries\\\\s*{\\\\s*name\\\\s+type\\\\s+object\\\\s*{\\\\s*\\\\.\\\\.\\\\.\\\\s*on\\\\s+Tree\\\\s*{\\\\s*entries\\\\s*{\\\\s*name\\\\s+type\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}", + }, + Object { + "//": "query to find open snyk pull requests, allowing auto dependency upgrade pull requests to open no more than a limited amount of pull requests", + "path": "query", + "regex": "{\\\\s*search\\\\(\\\\s*query: \\"repo:[a-zA-Z0-9-_.]+\\\\/[a-zA-Z0-9-_.]+ is:pr state:[a-zA-Z]+ head:snyk-\\\\s*(is:[a-zA-Z]+)?\\", type: ISSUE, last: [0-9]+\\\\s*\\\\)\\\\s*{\\\\s*edges {\\\\s*node {\\\\s*\\\\.\\\\.\\\\. on PullRequest {\\\\s*url\\\\s*title\\\\s*createdAt\\\\s*headRefName\\\\s*state\\\\s*mergeable\\\\s*body\\\\s*repository\\\\s*{\\\\s*name\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*rateLimit\\\\s*{\\\\s*limit\\\\s*cost\\\\s*remaining\\\\s*resetAt\\\\s*}\\\\s*}\\\\s*", + }, + Object { + "//": "query to get file SHA", + "path": "query", + "regex": "{\\\\s*repository\\\\(\\\\s*owner:\\\\s*\\"[a-zA-Z0-9-_.]+\\",\\\\s*name:\\\\s*\\"[a-zA-Z0-9-_.]+\\"\\\\)\\\\s*{\\\\s*object\\\\(\\\\s*expression:\\\\s*\\"[a-zA-Z0-9-_./]+:[a-zA-Z0-9-_./]+\\"\\\\)\\\\s*{\\\\s*\\\\.\\\\.\\\\.\\\\s*on\\\\s*Blob\\\\s*{\\\\s*oid\\\\,\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*", + }, + ], + }, + Object { + "//": "used to scan IAC files", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*.tf", + }, + Object { + "//": "used to scan IAC files", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*.tf", + }, + Object { + "//": "used to scan IAC files", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*.json", + }, + Object { + "//": "used to scan IAC files", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*.json", + }, + ], + "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": "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 IAC extensions - 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*/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*/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 { + "//": "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 { + "//": "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", + "valid": Array [ + Object { + "//": "query for all the file names 2 levels deep in the repo. used for auto project detection", + "path": "query", + "regex": "{\\\\s*repositoryOwner\\\\(login:\\\\s*\\"([a-zA-Z0-9-_.]+)\\"\\\\)\\\\s*{\\\\s*repository\\\\(name:\\\\s*\\"([a-zA-Z0-9-_.]+)\\"\\\\)\\\\s*{\\\\s*object\\\\(expression:\\\\s*\\"([a-zA-Z0-9-_./:]+)\\"\\\\)\\\\s*{\\\\s*\\\\.\\\\.\\\\.\\\\s*on\\\\s+Tree\\\\s+{\\\\s*entries\\\\s*{\\\\s*name\\\\s+type\\\\s+object\\\\s*{\\\\s*\\\\.\\\\.\\\\.\\\\s*on\\\\s+Tree\\\\s+{\\\\s*entries\\\\s*{\\\\s*name\\\\s+type\\\\s+object\\\\s*{\\\\s*\\\\.\\\\.\\\\.\\\\s*on\\\\s+Tree\\\\s*{\\\\s*entries\\\\s*{\\\\s*name\\\\s+type\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}", + }, + Object { + "//": "query to find open snyk pull requests, allowing auto dependency upgrade pull requests to open no more than a limited amount of pull requests", + "path": "query", + "regex": "{\\\\s*search\\\\(\\\\s*query: \\"repo:[a-zA-Z0-9-_.]+\\\\/[a-zA-Z0-9-_.]+ is:pr state:[a-zA-Z]+ head:snyk-\\\\s*(is:[a-zA-Z]+)?\\", type: ISSUE, last: [0-9]+\\\\s*\\\\)\\\\s*{\\\\s*edges {\\\\s*node {\\\\s*\\\\.\\\\.\\\\. on PullRequest {\\\\s*url\\\\s*title\\\\s*createdAt\\\\s*headRefName\\\\s*state\\\\s*mergeable\\\\s*body\\\\s*repository\\\\s*{\\\\s*name\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*rateLimit\\\\s*{\\\\s*limit\\\\s*cost\\\\s*remaining\\\\s*resetAt\\\\s*}\\\\s*}\\\\s*", + }, + Object { + "//": "query to get file SHA", + "path": "query", + "regex": "{\\\\s*repository\\\\(\\\\s*owner:\\\\s*\\"[a-zA-Z0-9-_.]+\\",\\\\s*name:\\\\s*\\"[a-zA-Z0-9-_.]+\\"\\\\)\\\\s*{\\\\s*object\\\\(\\\\s*expression:\\\\s*\\"[a-zA-Z0-9-_./]+:[a-zA-Z0-9-_./]+\\"\\\\)\\\\s*{\\\\s*\\\\.\\\\.\\\\.\\\\s*on\\\\s*Blob\\\\s*{\\\\s*oid\\\\,\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*", + }, + ], + }, + Object { + "//": "used to scan IAC files", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*.tf", + }, + Object { + "//": "used to scan IAC files", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*.tf", + }, + 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 { + "//": "used to scan IAC files", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*.json", + }, + Object { + "//": "used to scan IAC files", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*.json", + }, + Object { + "//": "used to scan IAC files", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*.yml", + }, + Object { + "//": "used to scan IAC files", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*.yml", + }, + Object { + "//": "used to scan IAC files", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*.tpl", + }, + Object { + "//": "used to scan IAC files", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*.tpl", + }, + ], + "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": "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 IAC extensions - Testing github-enterprise 2`] = ` +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*/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*/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 { + "//": "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 { + "//": "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", + "valid": Array [ + Object { + "//": "query for all the file names 2 levels deep in the repo. used for auto project detection", + "path": "query", + "regex": "{\\\\s*repositoryOwner\\\\(login:\\\\s*\\"([a-zA-Z0-9-_.]+)\\"\\\\)\\\\s*{\\\\s*repository\\\\(name:\\\\s*\\"([a-zA-Z0-9-_.]+)\\"\\\\)\\\\s*{\\\\s*object\\\\(expression:\\\\s*\\"([a-zA-Z0-9-_./:]+)\\"\\\\)\\\\s*{\\\\s*\\\\.\\\\.\\\\.\\\\s*on\\\\s+Tree\\\\s+{\\\\s*entries\\\\s*{\\\\s*name\\\\s+type\\\\s+object\\\\s*{\\\\s*\\\\.\\\\.\\\\.\\\\s*on\\\\s+Tree\\\\s+{\\\\s*entries\\\\s*{\\\\s*name\\\\s+type\\\\s+object\\\\s*{\\\\s*\\\\.\\\\.\\\\.\\\\s*on\\\\s+Tree\\\\s*{\\\\s*entries\\\\s*{\\\\s*name\\\\s+type\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}", + }, + Object { + "//": "query to find open snyk pull requests, allowing auto dependency upgrade pull requests to open no more than a limited amount of pull requests", + "path": "query", + "regex": "{\\\\s*search\\\\(\\\\s*query: \\"repo:[a-zA-Z0-9-_.]+\\\\/[a-zA-Z0-9-_.]+ is:pr state:[a-zA-Z]+ head:snyk-\\\\s*(is:[a-zA-Z]+)?\\", type: ISSUE, last: [0-9]+\\\\s*\\\\)\\\\s*{\\\\s*edges {\\\\s*node {\\\\s*\\\\.\\\\.\\\\. on PullRequest {\\\\s*url\\\\s*title\\\\s*createdAt\\\\s*headRefName\\\\s*state\\\\s*mergeable\\\\s*body\\\\s*repository\\\\s*{\\\\s*name\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*rateLimit\\\\s*{\\\\s*limit\\\\s*cost\\\\s*remaining\\\\s*resetAt\\\\s*}\\\\s*}\\\\s*", + }, + Object { + "//": "query to get file SHA", + "path": "query", + "regex": "{\\\\s*repository\\\\(\\\\s*owner:\\\\s*\\"[a-zA-Z0-9-_.]+\\",\\\\s*name:\\\\s*\\"[a-zA-Z0-9-_.]+\\"\\\\)\\\\s*{\\\\s*object\\\\(\\\\s*expression:\\\\s*\\"[a-zA-Z0-9-_./]+:[a-zA-Z0-9-_./]+\\"\\\\)\\\\s*{\\\\s*\\\\.\\\\.\\\\.\\\\s*on\\\\s*Blob\\\\s*{\\\\s*oid\\\\,\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*", + }, + ], + }, + Object { + "//": "used to scan IAC files", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*.tf", + }, + Object { + "//": "used to scan IAC files", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*.tf", + }, + Object { + "//": "used to scan IAC files", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*.json", + }, + Object { + "//": "used to scan IAC files", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*.json", + }, + ], + "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": "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 IAC extensions - 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*/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", + "**/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*/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", + "**/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*/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", + "**/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 { + "//": "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*/*.yaml", + }, + Object { + "//": "used to scan IAC files", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*.yaml", + }, + 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", + }, + Object { + "//": "used to scan IAC files", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*.yml", + }, + Object { + "//": "used to scan IAC files", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*.yml", + }, + Object { + "//": "used to scan IAC files", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*.tpl", + }, + Object { + "//": "used to scan IAC files", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*.tpl", + }, + ], + "public": Array [ + Object { + "//": "used for pushing up webhooks from gitlab", + "method": "POST", + "path": "/webhook/gitlab/:webhookId", + }, + ], +} +`; + +exports[`filter Rules Loading Injection of valid IAC extensions - Testing gitlab 2`] = ` +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*/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", + "**/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*/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", + "**/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*/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", + "**/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 { + "//": "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", + "**/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", + "**/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 { + "//": "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/*", + }, + ], + "public": Array [ + Object { + "//": "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 { + "//": "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*/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 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 { + "//": "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. we're using atlassian's SDK api. Because atlassian's BB server rest api currently doesn't support such functionality", + "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", + }, + ], + "public": Array [ + Object { + "//": "used for pushing up webhooks from bitbucket-server", + "method": "POST", + "path": "/webhook/bitbucket-server/:webhookId", + }, + ], +} +`; + +exports[`filter Rules Loading Loads normal accept file - Testing github-com 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*/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*/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 { + "//": "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 { + "//": "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", + "valid": Array [ + Object { + "//": "query for all the file names 2 levels deep in the repo. used for auto project detection", + "path": "query", + "regex": "{\\\\s*repositoryOwner\\\\(login:\\\\s*\\"([a-zA-Z0-9-_.]+)\\"\\\\)\\\\s*{\\\\s*repository\\\\(name:\\\\s*\\"([a-zA-Z0-9-_.]+)\\"\\\\)\\\\s*{\\\\s*object\\\\(expression:\\\\s*\\"([a-zA-Z0-9-_./:]+)\\"\\\\)\\\\s*{\\\\s*\\\\.\\\\.\\\\.\\\\s*on\\\\s+Tree\\\\s+{\\\\s*entries\\\\s*{\\\\s*name\\\\s+type\\\\s+object\\\\s*{\\\\s*\\\\.\\\\.\\\\.\\\\s*on\\\\s+Tree\\\\s+{\\\\s*entries\\\\s*{\\\\s*name\\\\s+type\\\\s+object\\\\s*{\\\\s*\\\\.\\\\.\\\\.\\\\s*on\\\\s+Tree\\\\s*{\\\\s*entries\\\\s*{\\\\s*name\\\\s+type\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}", + }, + Object { + "//": "query to find open snyk pull requests, allowing auto dependency upgrade pull requests to open no more than a limited amount of pull requests", + "path": "query", + "regex": "{\\\\s*search\\\\(\\\\s*query: \\"repo:[a-zA-Z0-9-_.]+\\\\/[a-zA-Z0-9-_.]+ is:pr state:[a-zA-Z]+ head:snyk-\\\\s*(is:[a-zA-Z]+)?\\", type: ISSUE, last: [0-9]+\\\\s*\\\\)\\\\s*{\\\\s*edges {\\\\s*node {\\\\s*\\\\.\\\\.\\\\. on PullRequest {\\\\s*url\\\\s*title\\\\s*createdAt\\\\s*headRefName\\\\s*state\\\\s*mergeable\\\\s*body\\\\s*repository\\\\s*{\\\\s*name\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*rateLimit\\\\s*{\\\\s*limit\\\\s*cost\\\\s*remaining\\\\s*resetAt\\\\s*}\\\\s*}\\\\s*", + }, + Object { + "//": "query to get file SHA", + "path": "query", + "regex": "{\\\\s*repository\\\\(\\\\s*owner:\\\\s*\\"[a-zA-Z0-9-_.]+\\",\\\\s*name:\\\\s*\\"[a-zA-Z0-9-_.]+\\"\\\\)\\\\s*{\\\\s*object\\\\(\\\\s*expression:\\\\s*\\"[a-zA-Z0-9-_./]+:[a-zA-Z0-9-_./]+\\"\\\\)\\\\s*{\\\\s*\\\\.\\\\.\\\\.\\\\s*on\\\\s*Blob\\\\s*{\\\\s*oid\\\\,\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*", + }, + ], + }, + ], + "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": "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 Loads normal accept file - 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*/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*/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 { + "//": "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 { + "//": "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", + "valid": Array [ + Object { + "//": "query for all the file names 2 levels deep in the repo. used for auto project detection", + "path": "query", + "regex": "{\\\\s*repositoryOwner\\\\(login:\\\\s*\\"([a-zA-Z0-9-_.]+)\\"\\\\)\\\\s*{\\\\s*repository\\\\(name:\\\\s*\\"([a-zA-Z0-9-_.]+)\\"\\\\)\\\\s*{\\\\s*object\\\\(expression:\\\\s*\\"([a-zA-Z0-9-_./:]+)\\"\\\\)\\\\s*{\\\\s*\\\\.\\\\.\\\\.\\\\s*on\\\\s+Tree\\\\s+{\\\\s*entries\\\\s*{\\\\s*name\\\\s+type\\\\s+object\\\\s*{\\\\s*\\\\.\\\\.\\\\.\\\\s*on\\\\s+Tree\\\\s+{\\\\s*entries\\\\s*{\\\\s*name\\\\s+type\\\\s+object\\\\s*{\\\\s*\\\\.\\\\.\\\\.\\\\s*on\\\\s+Tree\\\\s*{\\\\s*entries\\\\s*{\\\\s*name\\\\s+type\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}", + }, + Object { + "//": "query to find open snyk pull requests, allowing auto dependency upgrade pull requests to open no more than a limited amount of pull requests", + "path": "query", + "regex": "{\\\\s*search\\\\(\\\\s*query: \\"repo:[a-zA-Z0-9-_.]+\\\\/[a-zA-Z0-9-_.]+ is:pr state:[a-zA-Z]+ head:snyk-\\\\s*(is:[a-zA-Z]+)?\\", type: ISSUE, last: [0-9]+\\\\s*\\\\)\\\\s*{\\\\s*edges {\\\\s*node {\\\\s*\\\\.\\\\.\\\\. on PullRequest {\\\\s*url\\\\s*title\\\\s*createdAt\\\\s*headRefName\\\\s*state\\\\s*mergeable\\\\s*body\\\\s*repository\\\\s*{\\\\s*name\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*rateLimit\\\\s*{\\\\s*limit\\\\s*cost\\\\s*remaining\\\\s*resetAt\\\\s*}\\\\s*}\\\\s*", + }, + Object { + "//": "query to get file SHA", + "path": "query", + "regex": "{\\\\s*repository\\\\(\\\\s*owner:\\\\s*\\"[a-zA-Z0-9-_.]+\\",\\\\s*name:\\\\s*\\"[a-zA-Z0-9-_.]+\\"\\\\)\\\\s*{\\\\s*object\\\\(\\\\s*expression:\\\\s*\\"[a-zA-Z0-9-_./]+:[a-zA-Z0-9-_./]+\\"\\\\)\\\\s*{\\\\s*\\\\.\\\\.\\\\.\\\\s*on\\\\s*Blob\\\\s*{\\\\s*oid\\\\,\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*", + }, + ], + }, + ], + "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": "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 Loads normal accept file - 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*/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", + "**/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*/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", + "**/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*/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", + "**/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 { + "//": "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", + "**/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", + "**/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 { + "//": "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/*", + }, + ], + "public": Array [ + Object { + "//": "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 { + "//": "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*/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 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 { + "//": "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. we're using atlassian's SDK api. Because atlassian's BB server rest api currently doesn't support such functionality", + "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", + }, + ], + "public": Array [ + Object { + "//": "used for pushing up webhooks from bitbucket-server", + "method": "POST", + "path": "/webhook/bitbucket-server/:webhookId", + }, + ], +} +`; + +exports[`filter Rules Loading Skip injection if no or invalid IAC extensions - Testing github-com 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*/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*/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 { + "//": "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 { + "//": "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", + "valid": Array [ + Object { + "//": "query for all the file names 2 levels deep in the repo. used for auto project detection", + "path": "query", + "regex": "{\\\\s*repositoryOwner\\\\(login:\\\\s*\\"([a-zA-Z0-9-_.]+)\\"\\\\)\\\\s*{\\\\s*repository\\\\(name:\\\\s*\\"([a-zA-Z0-9-_.]+)\\"\\\\)\\\\s*{\\\\s*object\\\\(expression:\\\\s*\\"([a-zA-Z0-9-_./:]+)\\"\\\\)\\\\s*{\\\\s*\\\\.\\\\.\\\\.\\\\s*on\\\\s+Tree\\\\s+{\\\\s*entries\\\\s*{\\\\s*name\\\\s+type\\\\s+object\\\\s*{\\\\s*\\\\.\\\\.\\\\.\\\\s*on\\\\s+Tree\\\\s+{\\\\s*entries\\\\s*{\\\\s*name\\\\s+type\\\\s+object\\\\s*{\\\\s*\\\\.\\\\.\\\\.\\\\s*on\\\\s+Tree\\\\s*{\\\\s*entries\\\\s*{\\\\s*name\\\\s+type\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}", + }, + Object { + "//": "query to find open snyk pull requests, allowing auto dependency upgrade pull requests to open no more than a limited amount of pull requests", + "path": "query", + "regex": "{\\\\s*search\\\\(\\\\s*query: \\"repo:[a-zA-Z0-9-_.]+\\\\/[a-zA-Z0-9-_.]+ is:pr state:[a-zA-Z]+ head:snyk-\\\\s*(is:[a-zA-Z]+)?\\", type: ISSUE, last: [0-9]+\\\\s*\\\\)\\\\s*{\\\\s*edges {\\\\s*node {\\\\s*\\\\.\\\\.\\\\. on PullRequest {\\\\s*url\\\\s*title\\\\s*createdAt\\\\s*headRefName\\\\s*state\\\\s*mergeable\\\\s*body\\\\s*repository\\\\s*{\\\\s*name\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*rateLimit\\\\s*{\\\\s*limit\\\\s*cost\\\\s*remaining\\\\s*resetAt\\\\s*}\\\\s*}\\\\s*", + }, + Object { + "//": "query to get file SHA", + "path": "query", + "regex": "{\\\\s*repository\\\\(\\\\s*owner:\\\\s*\\"[a-zA-Z0-9-_.]+\\",\\\\s*name:\\\\s*\\"[a-zA-Z0-9-_.]+\\"\\\\)\\\\s*{\\\\s*object\\\\(\\\\s*expression:\\\\s*\\"[a-zA-Z0-9-_./]+:[a-zA-Z0-9-_./]+\\"\\\\)\\\\s*{\\\\s*\\\\.\\\\.\\\\.\\\\s*on\\\\s*Blob\\\\s*{\\\\s*oid\\\\,\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*", + }, + ], + }, + ], + "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": "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 Skip injection if no or invalid IAC extensions - 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*/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*/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 { + "//": "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 { + "//": "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", + "valid": Array [ + Object { + "//": "query for all the file names 2 levels deep in the repo. used for auto project detection", + "path": "query", + "regex": "{\\\\s*repositoryOwner\\\\(login:\\\\s*\\"([a-zA-Z0-9-_.]+)\\"\\\\)\\\\s*{\\\\s*repository\\\\(name:\\\\s*\\"([a-zA-Z0-9-_.]+)\\"\\\\)\\\\s*{\\\\s*object\\\\(expression:\\\\s*\\"([a-zA-Z0-9-_./:]+)\\"\\\\)\\\\s*{\\\\s*\\\\.\\\\.\\\\.\\\\s*on\\\\s+Tree\\\\s+{\\\\s*entries\\\\s*{\\\\s*name\\\\s+type\\\\s+object\\\\s*{\\\\s*\\\\.\\\\.\\\\.\\\\s*on\\\\s+Tree\\\\s+{\\\\s*entries\\\\s*{\\\\s*name\\\\s+type\\\\s+object\\\\s*{\\\\s*\\\\.\\\\.\\\\.\\\\s*on\\\\s+Tree\\\\s*{\\\\s*entries\\\\s*{\\\\s*name\\\\s+type\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}", + }, + Object { + "//": "query to find open snyk pull requests, allowing auto dependency upgrade pull requests to open no more than a limited amount of pull requests", + "path": "query", + "regex": "{\\\\s*search\\\\(\\\\s*query: \\"repo:[a-zA-Z0-9-_.]+\\\\/[a-zA-Z0-9-_.]+ is:pr state:[a-zA-Z]+ head:snyk-\\\\s*(is:[a-zA-Z]+)?\\", type: ISSUE, last: [0-9]+\\\\s*\\\\)\\\\s*{\\\\s*edges {\\\\s*node {\\\\s*\\\\.\\\\.\\\\. on PullRequest {\\\\s*url\\\\s*title\\\\s*createdAt\\\\s*headRefName\\\\s*state\\\\s*mergeable\\\\s*body\\\\s*repository\\\\s*{\\\\s*name\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*rateLimit\\\\s*{\\\\s*limit\\\\s*cost\\\\s*remaining\\\\s*resetAt\\\\s*}\\\\s*}\\\\s*", + }, + Object { + "//": "query to get file SHA", + "path": "query", + "regex": "{\\\\s*repository\\\\(\\\\s*owner:\\\\s*\\"[a-zA-Z0-9-_.]+\\",\\\\s*name:\\\\s*\\"[a-zA-Z0-9-_.]+\\"\\\\)\\\\s*{\\\\s*object\\\\(\\\\s*expression:\\\\s*\\"[a-zA-Z0-9-_./]+:[a-zA-Z0-9-_./]+\\"\\\\)\\\\s*{\\\\s*\\\\.\\\\.\\\\.\\\\s*on\\\\s*Blob\\\\s*{\\\\s*oid\\\\,\\\\s*}\\\\s*}\\\\s*}\\\\s*}\\\\s*", + }, + ], + }, + ], + "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": "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 Skip injection if no or invalid IAC extensions - 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*/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", + "**/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*/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", + "**/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*/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", + "**/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 { + "//": "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", + }, + ], +} +`; diff --git a/test/unit/runtime-rules-hotloading.test.ts b/test/unit/runtime-rules-hotloading.test.ts index b3abf2154..2494b5834 100644 --- a/test/unit/runtime-rules-hotloading.test.ts +++ b/test/unit/runtime-rules-hotloading.test.ts @@ -1,22 +1,96 @@ -import { readFileSync } from 'fs'; import * as path from 'path'; import * as loadFilterRules from '../../lib/filter-rules-loading'; -function loadFixture(name: string) { - const fixturePath = path.join(__dirname, '..', 'fixtures', name); - const fixture = readFileSync(fixturePath, { encoding: 'utf-8' }); - - return fixture; -} +const scmRulesToTest = [ + 'azure-repos', + 'bitbucket-server', + 'github-com', + 'github-enterprise', + 'gitlab', +]; describe('filter Rules Loading', () => { - it('Loads normal accept file', () => { - const rules = JSON.parse(loadFixture(path.join('accept', 'ghe.json'))); - const loadedRules = loadFilterRules( - 'ghe.json', - path.join(__dirname, '..', 'fixtures/accept'), - ); - - expect(loadedRules).toEqual(rules); - }); + test.each(scmRulesToTest)( + 'Loads normal accept file - Testing %s', + (folder) => { + const loadedRules = loadFilterRules( + 'accept.json.sample', + path.join(__dirname, '../..', `client-templates/${folder}`), + ); + + expect(loadedRules).toMatchSnapshot(); + }, + ); + + test.each(scmRulesToTest)( + 'Skip injection if no or invalid IAC extensions - Testing %s', + (folder) => { + process.env.ACCEPT_IAC = 'rf'; + const loadedRules = loadFilterRules( + 'accept.json.sample', + path.join(__dirname, '../..', `client-templates/${folder}`), + ); + + expect(loadedRules).toMatchSnapshot(); + delete process.env.ACCEPT_IAC; + }, + ); + + test.each(scmRulesToTest)( + 'Injection of valid IAC extensions - Testing %s', + (folder) => { + process.env.ACCEPT_IAC = 'tf,yaml, json,yml,tpl'; + const loadedRules = loadFilterRules( + 'accept.json.sample', + path.join(__dirname, '../..', `client-templates/${folder}`), + ); + + expect(loadedRules).toMatchSnapshot(); + delete process.env.ACCEPT_IAC; + }, + ); + + test.each(scmRulesToTest)( + 'Injection of valid IAC extensions - Testing %s', + (folder) => { + process.env.ACCEPT_IAC = 'tf,json'; + const loadedRules = loadFilterRules( + 'accept.json.sample', + path.join(__dirname, '../..', `client-templates/${folder}`), + ); + + expect(loadedRules).toMatchSnapshot(); + delete process.env.ACCEPT_IAC; + }, + ); + + test.each(scmRulesToTest)( + 'Injection of valid CODE rules - Testing %s', + (folder) => { + process.env.ACCEPT_CODE = 'true'; + const loadedRules = loadFilterRules( + 'accept.json.sample', + path.join(__dirname, '../..', `client-templates/${folder}`), + ); + + expect(loadedRules).toMatchSnapshot(); + delete process.env.ACCEPT_CODE; + }, + ); + + test.each(scmRulesToTest)( + 'Injection of valid CODE rules and IAC extensions (yaml only) - Testing %s', + (folder) => { + process.env.ACCEPT_CODE = 'true'; + process.env.ACCEPT_IAC = 'yaml'; + const loadedRules = loadFilterRules( + 'accept.json.sample', + path.join(__dirname, '../..', `client-templates/${folder}`), + ); + + expect(loadedRules).toMatchSnapshot(); + delete process.env.ACCEPT_CODE; + delete process.env.ACCEPT_IAC; + }, + ); });