diff --git a/README.md b/README.md index bee12f7d8..02378c551 100644 --- a/README.md +++ b/README.md @@ -876,7 +876,7 @@ If commits are shown as `Unverified` in GitHub: #### Support of big manifest files (> 1Mb) for GitHub / GitHub Enterprise -One of the reason for failing of open Fix/Upgrade PRs or PR/recurring tests might be fetching big manifest files (> 1Mb) failure. To address this issue, additional Blob API endpoint should be whitelisted in `accept.json`: +One of the reason for failing of open Fix/Upgrade PRs or PR/recurring tests might be fetching big manifest files (> 1Mb) failure. To address this issue, ACCEPT_LARGE_MANIFESTS=true environment variable can be used, or an additional Blob API endpoint can be whitelisted in `accept.json`: - Should be in the `private` array ```json diff --git a/lib/filter-rules-loading.js b/lib/filter-rules-loading.js index 9bfc0ba69..3bcb50ac6 100644 --- a/lib/filter-rules-loading.js +++ b/lib/filter-rules-loading.js @@ -92,6 +92,31 @@ function injectRulesAtRuntime(filters) { ); } } + if (process.env.ACCEPT_LARGE_MANIFESTS) { + const scmType = CODE_SCM_ORIGINS.find((element) => { + if (filters.private[0].origin.includes(element)) { + return true; + } + }); + if (scmType === 'GITHUB') { + logger.info( + { accept: process.env.ACCEPT_LARGE_MANIFESTS }, + 'Injecting Accept rules for Large Manifest files', + ); + const largeManifestRule = { + '//': 'used to get given manifest file', + method: 'GET', + path: '/repos/:owner/:repo/git/blobs/:sha', + origin: 'https://${GITHUB_TOKEN}@${GITHUB_API}', + }; + filters.private.push(...[largeManifestRule]); + } else { + logger.error( + { accept: process.env.ACCEPT_LARGE_MANIFESTS }, + 'Large Manifest files Rules is only applicable to Github systems', + ); + } + } if (process.env.ACCEPT_CODE) { logger.info( { accept: process.env.ACCEPT_CODE }, diff --git a/test/unit/__snapshots__/runtime-rules-hotloading.test.ts.snap b/test/unit/__snapshots__/runtime-rules-hotloading.test.ts.snap index 6ec0534e2..b172f7238 100644 --- a/test/unit/__snapshots__/runtime-rules-hotloading.test.ts.snap +++ b/test/unit/__snapshots__/runtime-rules-hotloading.test.ts.snap @@ -1,5 +1,6538 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP +exports[`filter Rules Loading Injection of valid CODE GH rules - Testing azure-repos 1`] = ` +Object { + "private": Array [ + Object { + "//": "get list of projects for given organisation", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/_apis/projects", + }, + Object { + "//": "get specific repository for given organisation", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo", + }, + Object { + "//": "get list of repositories for given organisation", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories", + }, + Object { + "//": "get list of refs", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/refs", + }, + Object { + "//": "search through repositories of given organisation", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "_apis/git/repositories", + }, + Object { + "//": "create hook", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "POST", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/_apis/hooks/subscriptions", + }, + Object { + "//": "delete hook", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "DELETE", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/_apis/hooks/subscriptions/:subscriptionId", + }, + Object { + "//": "get file content. restrict by file types", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/items", + "valid": Array [ + Object { + "queryParam": "path", + "values": Array [ + "**/package.json", + "**%2Fpackage.json", + "**/yarn.lock", + "**%2Fyarn.lock", + "**/package-lock.json", + "**%2Fpackage-lock.json", + "**/Gemfile", + "**%2FGemfile", + "**/Gemfile.lock", + "**%2FGemfile.lock", + "**/pom.xml", + "**%2Fpom.xml", + "**/*req*.txt", + "**%2F*req*.txt", + "**/requirements/*.txt", + "**%2Frequirements%2F*.txt", + "**/pyproject.toml", + "**%2Fpyproject.toml", + "**/poetry.lock", + "**%2Fpoetry.lock", + "**/build.gradle", + "**%2Fbuild.gradle", + "**/gradle.lockfile", + "**%2Fgradle.lockfile", + "**/build.sbt", + "**%2Fbuild.sbt", + "**/.snyk", + "**%2F.snyk", + "**/packages.config", + "**%2Fpackages.config", + "**/*.csproj", + "**%2F*.csproj", + "**/*.vbproj", + "**%2F*.vbproj", + "**/*.fsproj", + "**%2F*.fsproj", + "**/project.json", + "**%2Fproject.json", + "**/Gopkg.toml", + "**%2FGopkg.toml", + "**/Gopkg.lock", + "**%2FGopkg.lock", + "**/vendor.json", + "**%2Fvendor.json", + "**/composer.lock", + "**%2Fcomposer.lock", + "**/composer.json", + "**%2Fcomposer.json", + "**/project.assets.json", + "**%2Fproject.assets.json", + "**/Podfile", + "**%2FPodfile", + "**/Podfile.lock", + "**%2FPodfile.lock", + "**/go.mod", + "**%2Fgo.mod", + "**/go.sum", + "**%2Fgo.sum", + "**/*Dockerfile*", + "**%2F*Dockerfile*", + ], + }, + Object { + "queryParam": "recursionLevel", + "values": Array [ + "none", + ], + }, + Object { + "queryParam": "download", + "values": Array [ + "true", + ], + }, + Object { + "queryParam": "includeContent", + "values": Array [ + "true", + ], + }, + ], + }, + Object { + "//": "check file existence. restrict by file types", + "auth": Object { + "scheme": "basic", + "token": "\${BROKER_CLIENT_VALIDATION_BASIC_AUTH}", + }, + "method": "GET", + "origin": "https://\${AZURE_REPOS_HOST}/\${AZURE_REPOS_ORG}", + "path": "/:owner/_apis/git/repositories/:repo/items", + "valid": Array [ + Object { + "queryParam": "path", + "values": Array [ + "**/package.json", + "**%2Fpackage.json", + "**/yarn.lock", + "**%2Fyarn.lock", + "**/package-lock.json", + "**%2Fpackage-lock.json", + "**/Gemfile", + "**%2FGemfile", + "**/Gemfile.lock", + "**%2FGemfile.lock", + "**/pom.xml", + "**%2Fpom.xml", + "**/*req*.txt", + "**%2F*req*.txt", + "**/requirements/*.txt", + "**%2Frequirements%2F*.txt", + "**/pyproject.toml", + "**%2Fpyproject.toml", + "**/poetry.lock", + "**%2Fpoetry.lock", + "**/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 Injection of valid CODE GH rules - Testing bitbucket-server 1`] = ` +Object { + "private": Array [ + Object { + "//": "list the user's projects", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects", + }, + Object { + "//": "list the project's repos", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:projectKey/repos", + }, + Object { + "//": "list the user's repos", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/repos", + }, + Object { + "//": "fetch a given repo", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo", + }, + Object { + "//": "read all file names to find manifests", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/files/:searchPath?", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/package.json", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fpackage.json", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/package-lock.json", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fpackage-lock.json", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Gemfile.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FGemfile.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/Gemfile", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2FGemfile", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/pom.xml", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fpom.xml", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/*req*.txt", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2F*req*.txt", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/requirements/*.txt", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Frequirements%2F*.txt", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/pyproject.toml", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%2Fpyproject.toml", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/poetry.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*%poetry.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:project/repos/:repo/browse*/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 { + "//": "Used to get a branch specified by query string", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/branches:filterText?", + }, + Object { + "//": "get a specific commit identified by the commit hash or name of a branch", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo/commits/:sha", + }, + Object { + "//": "used to create a Code Insights report", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "PUT", + "origin": "https://\${BITBUCKET}", + "path": "/rest/insights/:apiVersion/projects/:project/repos/:repo/commits/:sha/reports/:report", + }, + Object { + "//": "used to remove a Code Insights report", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "DELETE", + "origin": "https://\${BITBUCKET}", + "path": "/rest/insights/:apiVersion/projects/:project/repos/:repo/commits/:sha/reports/:report", + }, + Object { + "//": "used to add Code Insights annotations to a report", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "POST", + "origin": "https://\${BITBUCKET}", + "path": "/rest/insights/:apiVersion/projects/:project/repos/:repo/commits/:sha/reports/:report/annotations", + }, + Object { + "//": "get list of API capabilities for Code Insights", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/insights/:apiVersion/capabilities", + }, + Object { + "//": "used to remove Code Insights annotations for a report", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "DELETE", + "origin": "https://\${BITBUCKET}", + "path": "/rest/insights/:apiVersion/projects/:project/repos/:repo/commits/:sha/reports/:report/annotations", + }, + Object { + "//": "used to get current user. so we'll be able to fetch current user's repos, that are not part of any project.", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/application-properties", + }, + Object { + "//": "used to get current user. so we'll be able to fetch current user's repos, that are not part of any project - this is using atlassian's SDK api.", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/plugins/servlet/applinks/whoami", + }, + Object { + "//": "used to get the current user's project-like structure. So we'll be able to bind all user's private repos (that are not included in different project)", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:projectKey", + }, + Object { + "//": "used to check if the user has admin or higher permissions", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/admin/permissions/users", + }, + Object { + "//": "used to get all the users. it's called only for admin permissioned user. to retrieve all the repos they can access", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/users", + }, + Object { + "//": "used to redirect requests to snyk git client", + "method": "any", + "origin": "\${GIT_CLIENT_URL}", + "path": "/snykgit/*", + }, + Object { + "//": "used to fetch a given repo from API", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/api/1.0/projects/:project/repos/:repo", + }, + Object { + "//": "used to get default reviewers for a pull request", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET}", + "path": "/rest/default-reviewers/1.0/projects/:projectKey/repos/:repo/reviewers", + }, + ], + "public": Array [ + Object { + "//": "used for pushing up webhooks from bitbucket-server", + "method": "POST", + "path": "/webhook/bitbucket-server/:webhookId", + }, + ], +} +`; + +exports[`filter Rules Loading Injection of valid CODE GH rules - Testing github-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*/pyproject.toml", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpyproject.toml", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/pyproject.toml", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fpyproject.toml", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/poetry.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpoetry.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/poetry.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fpoetry.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/yarn.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fyarn.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/yarn.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fyarn.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/build.gradle", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fbuild.gradle", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/build.gradle", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fbuild.gradle", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/gradle.lockfile", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fgradle.lockfile", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/gradle.lockfile", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fgradle.lockfile", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/gradle.properties", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fgradle.properties", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/gradle.properties", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fgradle.properties", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Packages.props", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FPackages.props", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Packages.props", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FPackages.props", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Directory.Build.props", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FDirectory.Build.props", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Directory.Build.props", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FDirectory.Build.props", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Directory.Build.targets", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FDirectory.Build.targets", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Directory.Build.targets", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FDirectory.Build.targets", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/build.sbt", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fbuild.sbt", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/build.sbt", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fbuild.sbt", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/packages.config", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpackages.config", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/packages.config", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fpackages.config", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*.csproj", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*.csproj", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/*.csproj", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2F*.csproj", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*.fsproj", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*.fsproj", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/*.fsproj", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2F*.fsproj", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*.vbproj", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*.vbproj", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/*.vbproj", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2F*.vbproj", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/project.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fproject.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/project.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fproject.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Gopkg.toml", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FGopkg.toml", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Gopkg.toml", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FGopkg.toml", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Gopkg.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FGopkg.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Gopkg.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FGopkg.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/vendor.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fvendor.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/vendor.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fvendor.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/composer.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fcomposer.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/composer.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fcomposer.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/composer.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fcomposer.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/composer.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fcomposer.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/project.assets.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fproject.assets.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/project.assets.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fproject.assets.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Podfile", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FPodfile", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Podfile.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FPodfile.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Podfile", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FPodfile", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Podfile.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FPodfile.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/go.mod", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fgo.mod", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/go.mod", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fgo.mod", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/go.sum", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fgo.sum", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/go.sum", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fgo.sum", + }, + Object { + "//": "used to scan Dockerfile", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*Dockerfile*", + }, + Object { + "//": "used to scan Dockerfile", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*Dockerfile*", + }, + Object { + "//": "used to scan Dockerfile", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/*Dockerfile*", + }, + Object { + "//": "used to scan Dockerfile", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2F*Dockerfile*", + }, + Object { + "//": "used to check if there's any ignore rules or existing patches", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/.snyk", + }, + Object { + "//": "used to check if there's any ignore rules or existing patches", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F.snyk", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/.snyk", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2F.snyk", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/package.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpackage.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/package.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fpackage.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/package-lock.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpackage-lock.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/package-lock.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fpackage-lock.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Gemfile.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FGemfile.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Gemfile.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FGemfile.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Gemfile", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FGemfile", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Gemfile", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FGemfile", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/pom.xml", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpom.xml", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/pom.xml", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fpom.xml", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*req*.txt", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*req*.txt", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/*req*.txt", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2F*req*.txt", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/pyproject.toml", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpyproject.toml", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/pyproject.toml", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fpyproject.toml", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/poetry.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpoetry.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/poetry.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fpoetry.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/yarn.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fyarn.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/yarn.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fyarn.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/build.gradle", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fbuild.gradle", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/build.gradle", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fbuild.gradle", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/gradle.lockfile", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fgradle.lockfile", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/gradle.lockfile", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fgradle.lockfile", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/gradle.properties", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fgradle.properties", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/gradle.properties", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fgradle.properties", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Packages.props", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FPackages.props", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Packages.props", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FPackages.props", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Directory.Build.props", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FDirectory.Build.props", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Directory.Build.props", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FDirectory.Build.props", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Directory.Build.targets", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FDirectory.Build.targets", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Directory.Build.targets", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FDirectory.Build.targets", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/build.sbt", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fbuild.sbt", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/build.sbt", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fbuild.sbt", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/packages.config", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpackages.config", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/packages.config", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fpackages.config", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*.csproj", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*.csproj", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/*.csproj", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2F*.csproj", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*.fsproj", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*.fsproj", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/*.fsproj", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2F*.fsproj", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*.vbproj", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*.vbproj", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/*.vbproj", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2F*.vbproj", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/project.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fproject.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/project.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fproject.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Gopkg.toml", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FGopkg.toml", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Gopkg.toml", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FGopkg.toml", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Gopkg.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FGopkg.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Gopkg.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FGopkg.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/vendor.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fvendor.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/vendor.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fvendor.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/composer.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fcomposer.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/composer.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fcomposer.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/composer.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fcomposer.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/composer.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fcomposer.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/project.assets.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fproject.assets.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/project.assets.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fproject.assets.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Podfile", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FPodfile", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Podfile.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FPodfile.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Podfile", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FPodfile", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/Podfile.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2FPodfile.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/go.mod", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fgo.mod", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/go.mod", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fgo.mod", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/go.sum", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fgo.sum", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/go.sum", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fgo.sum", + }, + Object { + "//": "used to update Dockerfile", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*Dockerfile*", + }, + Object { + "//": "used to update Dockerfile", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*Dockerfile*", + }, + Object { + "//": "used to update Dockerfile", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/*Dockerfile*", + }, + Object { + "//": "used to update Dockerfile", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2F*Dockerfile*", + }, + Object { + "//": "used to write or update ignore rules or existing patches", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/.snyk", + }, + Object { + "//": "used to write or update ignore rules or existing patches", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F.snyk", + }, + Object { + "//": "get details of the repo", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo", + }, + Object { + "//": "get the details of the commit to determine its SHA", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/commits/:ref", + "valid": Array [ + Object { + "header": "accept", + "values": Array [ + "application/vnd.github.v4.sha", + ], + }, + ], + }, + Object { + "//": "get a list of all the refs to match find whether an existing PR is open", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/git/refs", + }, + Object { + "//": "get the head commit of an individual ref", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/git/refs/heads/:ref", + }, + Object { + "//": "get the details of an individual ref", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/git/refs/:ref", + }, + Object { + "//": "search for open snyk pull requests", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/pulls", + }, + Object { + "//": "get pull request data for getting merge sha and tracking PR processing state", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/pulls/:pull_number", + }, + Object { + "//": "get pull request file names", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/pulls/:pull_number/files", + }, + Object { + "//": "create branches for new commits", + "method": "POST", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/git/refs", + }, + Object { + "//": "create the pull request", + "method": "POST", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/pulls", + }, + Object { + "//": "add pull request assignees", + "method": "POST", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/issues/:pull_number/assignees", + }, + Object { + "//": "update ref", + "method": "PATCH", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/git/refs/:sha", + }, + Object { + "//": "update ref head", + "method": "PATCH", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/git/refs/heads/:ref", + }, + Object { + "//": "get list of all files in a repo", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/git/trees/:ref", + }, + Object { + "//": "used to get repo's contributors list", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:owner/:repo/commits", + }, + Object { + "//": "used to redirect requests to snyk git client", + "method": "any", + "origin": "\${GIT_CLIENT_URL}", + "path": "/snykgit/*", + }, + Object { + "//": "query graphql", + "method": "POST", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_GRAPHQL}", + "path": "/graphql", + "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 get given manifest file", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:owner/:repo/git/blobs/:sha", + }, + ], + "public": Array [ + Object { + "//": "used for pushing up webhooks from github", + "method": "POST", + "path": "/webhook/github", + "valid": Array [ + Object { + "//": "accept all pull request state changes (these don't have files in them)", + "path": "pull_request.state", + "value": "open", + }, + Object { + "path": "commits.*.added.*", + "value": "package.json", + }, + Object { + "path": "commits.*.modified.*", + "value": "package.json", + }, + Object { + "path": "commits.*.added.*", + "value": "package-lock.json", + }, + Object { + "path": "commits.*.modified.*", + "value": "package-lock.json", + }, + Object { + "path": "commits.*.added.*", + "value": "Gemfile.lock", + }, + Object { + "path": "commits.*.modified.*", + "value": "Gemfile.lock", + }, + Object { + "path": "commits.*.added.*", + "value": "*req*.txt", + }, + Object { + "path": "commits.*.modified.*", + "value": "*req*.txt", + }, + Object { + "path": "commits.*.added.*", + "value": "requirements%2F*.txt", + }, + Object { + "path": "commits.*.modified.*", + "value": "requirements%2F*.txt", + }, + Object { + "path": "commits.*.added.*", + "value": "requirements/*.txt", + }, + Object { + "path": "commits.*.modified.*", + "value": "requirements/*.txt", + }, + Object { + "path": "commits.*.added.*", + "value": "pyproject.toml", + }, + Object { + "path": "commits.*.modified.*", + "value": "pyproject.toml", + }, + Object { + "path": "commits.*.added.*", + "value": "poetry.lock", + }, + Object { + "path": "commits.*.modified.*", + "value": "poetry.lock", + }, + Object { + "path": "commits.*.added.*", + "value": "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 GH rules - Testing github-enterprise 1`] = ` +Object { + "private": Array [ + Object { + "//": "search for user's repos", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/search/repositories", + }, + Object { + "//": "list the user's info, and validate their credentials", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/user", + }, + Object { + "//": "list the user's orgs", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/user/orgs", + }, + Object { + "//": "list the logged in user's repos", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/user/repos", + }, + Object { + "//": "list a user's repos", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/users/:username/repos", + }, + Object { + "//": "list an orgs's repos", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/orgs/:username/repos", + }, + Object { + "//": "get a user's repo", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:user/:repo", + }, + Object { + "//": "rate limit check", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/rate_limit", + }, + Object { + "//": "allow meta lookup on the api version", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/", + }, + Object { + "//": "allow webhooks to be added, to allow commits to be checked by Snyk. Rules for what is sent to Snyk are controlled in the \`public\` accept filters", + "method": "POST", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:user/:repo/hooks", + }, + Object { + "//": "allow webhooks to be deleted, used to cleanup when a user deactivates or deletes a project", + "method": "DELETE", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:owner/:repo/hooks/:id", + }, + Object { + "//": "used to create commit status messages", + "method": "POST", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:user/:repo/statuses/:sha", + }, + Object { + "//": "used to list branches on a repo", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:user/:repo/branches", + }, + Object { + "//": "used to get branch info", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:user/:repo/branches/:branch", + }, + Object { + "//": "used to get status checks on a branch", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:user/:repo/branches/:branch/protection/required_status_checks/contexts", + }, + Object { + "//": "used to create status checks on a branch", + "method": "POST", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:user/:repo/branches/:branch/protection/required_status_checks/contexts", + }, + Object { + "//": "used to delete status checks on a branch", + "method": "DELETE", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:user/:repo/branches/:branch/protection/required_status_checks/contexts", + }, + Object { + "//": "check if repo is public", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB}", + "path": "/:user/:repo", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/package.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpackage.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/package-lock.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpackage-lock.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Gemfile.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FGemfile.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Gemfile", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FGemfile", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/pom.xml", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpom.xml", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*req*.txt", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*req*.txt", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/requirements/*.txt", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Frequirements%2F*.txt", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/pyproject.toml", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpyproject.toml", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/poetry.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpoetry.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/yarn.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fyarn.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/build.gradle", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fbuild.gradle", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/gradle.lockfile", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fgradle.lockfile", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/gradle.properties", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fgradle.properties", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Packages.props", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FPackages.props", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Directory.Build.props", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FDirectory.Build.props", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Directory.Build.targets", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FDirectory.Build.targets", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/build.sbt", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fbuild.sbt", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/packages.config", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpackages.config", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*.csproj", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*.csproj", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*.fsproj", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*.fsproj", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*.vbproj", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*.vbproj", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/project.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fproject.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Gopkg.toml", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FGopkg.toml", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Gopkg.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FGopkg.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/vendor.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fvendor.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/composer.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fcomposer.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/composer.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fcomposer.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/project.assets.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fproject.assets.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Podfile", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FPodfile", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Podfile.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FPodfile.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/go.mod", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fgo.mod", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/go.mod", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fgo.mod", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/go.sum", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fgo.sum", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/go.sum", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fgo.sum", + }, + Object { + "//": "used to scan Dockerfile", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*Dockerfile*", + }, + Object { + "//": "used to scan Dockerfile", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*Dockerfile*", + }, + Object { + "//": "used to scan Dockerfile", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/*Dockerfile*", + }, + Object { + "//": "used to scan Dockerfile", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2F*Dockerfile*", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/package.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpackage.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/package-lock.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpackage-lock.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Gemfile.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FGemfile.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Gemfile", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FGemfile", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/pom.xml", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpom.xml", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*req*.txt", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*req*.txt", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/pyproject.toml", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpyproject.toml", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/poetry.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpoetry.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/yarn.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fyarn.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/build.gradle", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fbuild.gradle", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/gradle.lockfile", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fgradle.lockfile", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/gradle.properties", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fgradle.properties", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Packages.props", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FPackages.props", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Directory.Build.props", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FDirectory.Build.props", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Directory.Build.targets", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FDirectory.Build.targets", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/build.sbt", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fbuild.sbt", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/packages.config", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fpackages.config", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*.csproj", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*.csproj", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*.fsproj", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*.fsproj", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*.vbproj", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*.vbproj", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/project.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fproject.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Gopkg.toml", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FGopkg.toml", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Gopkg.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FGopkg.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/vendor.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fvendor.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/composer.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fcomposer.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/composer.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fcomposer.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/project.assets.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fproject.assets.json", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Podfile", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FPodfile", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/Podfile.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2FPodfile.lock", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/go.mod", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fgo.mod", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/go.mod", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fgo.mod", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/go.sum", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2Fgo.sum", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/go.sum", + }, + Object { + "//": "used to update manifest or lock", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2Fgo.sum", + }, + Object { + "//": "used to write or update ignore rules or existing patches", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/.snyk", + }, + Object { + "//": "used to write or update ignore rules or existing patches", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F.snyk", + }, + Object { + "//": "used to update Dockerfile", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/*Dockerfile*", + }, + Object { + "//": "used to update Dockerfile", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F*Dockerfile*", + }, + Object { + "//": "used to update Dockerfile", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*/*Dockerfile*", + }, + Object { + "//": "used to update Dockerfile", + "method": "PUT", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_RAW}", + "path": "/:name/:repo/:path*%2F*Dockerfile*", + }, + Object { + "//": "used to check if there's any ignore rules or existing patches", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*/.snyk", + }, + Object { + "//": "used to check if there's any ignore rules or existing patches", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/contents/:path*%2F.snyk", + }, + Object { + "//": "get details of the repo", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo", + }, + Object { + "//": "get the details of the commit to determine its SHA", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/commits/:ref", + "valid": Array [ + Object { + "header": "accept", + "values": Array [ + "application/vnd.github.v4.sha", + ], + }, + ], + }, + Object { + "//": "get a list of all the refs to match find whether an existing PR is open", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/git/refs", + }, + Object { + "//": "get the head commit of an individual ref", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/git/refs/heads/:ref", + }, + Object { + "//": "get the details of an individual ref", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/git/refs/:ref", + }, + Object { + "//": "search for open snyk pull requests", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/pulls", + }, + Object { + "//": "get pull request data for getting merge sha and tracking PR processing state", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/pulls/:pull_number", + }, + Object { + "//": "get pull request file names", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/pulls/:pull_number/files", + }, + Object { + "//": "add commit data for new PR", + "method": "POST", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/git/refs", + }, + Object { + "//": "create the pull request", + "method": "POST", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/pulls", + }, + Object { + "//": "add pull request assignees", + "method": "POST", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/issues/:pull_number/assignees", + }, + Object { + "//": "update ref", + "method": "PATCH", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/git/refs/:sha", + }, + Object { + "//": "update ref head", + "method": "PATCH", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/git/refs/heads/:ref", + }, + Object { + "//": "get list of all files in a repo", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:name/:repo/git/trees/:ref", + }, + Object { + "//": "used to get repo's contributors list", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:owner/:repo/commits", + }, + Object { + "//": "used to redirect requests to snyk git client", + "method": "any", + "origin": "\${GIT_CLIENT_URL}", + "path": "/snykgit/*", + }, + Object { + "//": "query graphql", + "method": "POST", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_GRAPHQL}", + "path": "/graphql", + "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 get given manifest file", + "method": "GET", + "origin": "https://\${GITHUB_TOKEN}@\${GITHUB_API}", + "path": "/repos/:owner/:repo/git/blobs/:sha", + }, + ], + "public": Array [ + Object { + "//": "used for pushing up webhooks from github", + "method": "POST", + "path": "/webhook/github", + "valid": Array [ + Object { + "//": "accept all pull request state changes (these don't have files in them)", + "path": "pull_request.state", + "value": "open", + }, + Object { + "path": "commits.*.added.*", + "value": "package.json", + }, + Object { + "path": "commits.*.modified.*", + "value": "package.json", + }, + Object { + "path": "commits.*.added.*", + "value": "package-lock.json", + }, + Object { + "path": "commits.*.modified.*", + "value": "package-lock.json", + }, + Object { + "path": "commits.*.added.*", + "value": "Gemfile.lock", + }, + Object { + "path": "commits.*.modified.*", + "value": "Gemfile.lock", + }, + Object { + "path": "commits.*.added.*", + "value": "*req*.txt", + }, + Object { + "path": "commits.*.modified.*", + "value": "*req*.txt", + }, + Object { + "path": "commits.*.added.*", + "value": "requirements%2F*.txt", + }, + Object { + "path": "commits.*.modified.*", + "value": "requirements%2F*.txt", + }, + Object { + "path": "commits.*.added.*", + "value": "requirements/*.txt", + }, + Object { + "path": "commits.*.modified.*", + "value": "requirements/*.txt", + }, + Object { + "path": "commits.*.added.*", + "value": "pyproject.toml", + }, + Object { + "path": "commits.*.modified.*", + "value": "pyproject.toml", + }, + Object { + "path": "commits.*.added.*", + "value": "poetry.lock", + }, + Object { + "path": "commits.*.modified.*", + "value": "poetry.lock", + }, + Object { + "path": "commits.*.added.*", + "value": "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 GH rules - Testing gitlab 1`] = ` +Object { + "private": Array [ + Object { + "//": "identify user", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/user", + }, + Object { + "//": "list the user's projects", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects", + }, + Object { + "//": "list the user's projects", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v3/projects", + }, + Object { + "//": "list the user's visible projects", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v3/projects/visible", + }, + Object { + "//": "get a user's project", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v3/projects/:project", + }, + Object { + "//": "get a user's project", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project", + }, + Object { + "//": "used to search all manifest files", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/tree", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/package.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpackage.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/package-lock.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpackage-lock.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Gemfile.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FGemfile.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Gemfile", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FGemfile", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/pom.xml", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpom.xml", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*req*.txt", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*req*.txt", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/requirements/*.txt", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Frequirements%2F*.txt", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/pyproject.toml", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpyproject.toml", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/poetry.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpoetry.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/yarn.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fyarn.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/build.gradle", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fbuild.gradle", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/gradle.lockfile", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fgradle.lockfile", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/gradle.properties", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fgradle.properties", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Directory.Build.targets", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FDirectory.Build.targets", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Directory.Build.props", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FDirectory.Build.props", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Packages.props", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FPackages.props", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/build.sbt", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fbuild.sbt", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/packages.config", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpackages.config", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*.csproj", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*.csproj", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*.vbproj", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*.vbproj", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*.fsproj", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*.fsproj", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/project.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fproject.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Gopkg.toml", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FGopkg.toml", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Gopkg.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FGopkg.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/vendor.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fvendor.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/composer.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fcomposer.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/composer.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fcomposer.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/project.assets.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fproject.assets.json", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Podfile", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FPodfile", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Podfile.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FPodfile.lock", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/go.mod", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fgo.mod", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/go.sum", + }, + Object { + "//": "used to determine the full dependency tree", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fgo.sum", + }, + Object { + "//": "used to scan Dockerfile", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*Dockerfile*", + }, + Object { + "//": "used to scan Dockerfile", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*Dockerfile*", + }, + Object { + "//": "used to check if there's any ignore rules or existing patches", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/.snyk", + }, + Object { + "//": "used to check if there's any ignore rules or existing patches", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F.snyk", + }, + Object { + "//": "used to determine the full dependency tree for v3 protocol", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v3/projects/:project/repository/files", + "valid": Array [ + Object { + "queryParam": "file_path", + "values": Array [ + "**/package.json", + "**%2Fpackage.json", + "**/yarn.lock", + "**%2Fyarn.lock", + "**/package-lock.json", + "**%2Fpackage-lock.json", + "**/Gemfile", + "**%2FGemfile", + "**/Gemfile.lock", + "**%2FGemfile.lock", + "**/pom.xml", + "**%2Fpom.xml", + "**/*req*.txt", + "**%2F*req*.txt", + "**/requirements/*.txt", + "**%2Frequirements%2F*.txt", + "**/pyproject.toml", + "**%2Fpyproject.toml", + "**/poetry.lock", + "**%2Fpoetry.lock", + "**/build.gradle", + "**%2Fbuild.gradle", + "**/gradle.lockfile", + "**%2Fgradle.lockfile", + "**/build.sbt", + "**%2Fbuild.sbt", + "**/.snyk", + "**%2F.snyk", + "**/packages.config", + "**%2Fpackages.config", + "**/*.csproj", + "**%2F*.csproj", + "**/*.vbproj", + "**%2F*.vbproj", + "**/*.fsproj", + "**%2F*.fsproj", + "**/project.json", + "**%2Fproject.json", + "**/Gopkg.toml", + "**%2FGopkg.toml", + "**/Gopkg.lock", + "**%2FGopkg.lock", + "**/vendor.json", + "**%2Fvendor.json", + "**/composer.lock", + "**%2Fcomposer.lock", + "**/composer.json", + "**%2Fcomposer.json", + "**/project.assets.json", + "**%2Fproject.assets.json", + "**/Podfile", + "**%2FPodfile", + "**/Podfile.lock", + "**%2FPodfile.lock", + "**/go.mod", + "**%2Fgo.mod", + "**/go.sum", + "**%2Fgo.sum", + ], + }, + ], + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/package.json", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpackage.json", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/package-lock.json", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpackage-lock.json", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Gemfile.lock", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FGemfile.lock", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Gemfile", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FGemfile", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/pom.xml", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpom.xml", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*req*.txt", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*req*.txt", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/pyproject.toml", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpyproject.toml", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/poetry.lock", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpoetry.lock", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/yarn.lock", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fyarn.lock", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/build.gradle", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fbuild.gradle", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/gradle.lockfile", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fgradle.lockfile", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/gradle.properties", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fgradle.properties", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Directory.Build.targets", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FDirectory.Build.targets", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Directory.Build.props", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FDirectory.Build.props", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Packages.props", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FPackages.props", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/build.sbt", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fbuild.sbt", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/packages.config", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpackages.config", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*.csproj", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*.csproj", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*.vbproj", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*.vbproj", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*.fsproj", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*.fsproj", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/project.json", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fproject.json", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Gopkg.toml", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FGopkg.toml", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Gopkg.lock", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FGopkg.lock", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/vendor.json", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fvendor.json", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/composer.lock", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fcomposer.lock", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/composer.json", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fcomposer.json", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/project.assets.json", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fproject.assets.json", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Podfile", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FPodfile", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Podfile.lock", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FPodfile.lock", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/go.mod", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fgo.mod", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/go.sum", + }, + Object { + "//": "used to create manifest file", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fgo.sum", + }, + Object { + "//": "used to create Dockerfile", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*Dockerfile*", + }, + Object { + "//": "used to create Dockerfile", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*Dockerfile*", + }, + Object { + "//": "used to create ignore rules or patches", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/.snyk", + }, + Object { + "//": "used to create ignore rules or patches", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F.snyk", + }, + Object { + "//": "used to create manifest file for v3 protocol", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v3/projects/:project/repository/files", + "valid": Array [ + Object { + "queryParam": "file_path", + "values": Array [ + "**/package.json", + "**%2Fpackage.json", + "**/yarn.lock", + "**%2Fyarn.lock", + "**/package-lock.json", + "**%2Fpackage-lock.json", + "**/Gemfile", + "**%2FGemfile", + "**/Gemfile.lock", + "**%2FGemfile.lock", + "**/pom.xml", + "**%2Fpom.xml", + "**/*req*.txt", + "**%2F*req*.txt", + "**/pyproject.toml", + "**%2Fpyproject.toml", + "**/poetry.lock", + "**%2Fpoetry.lock", + "**/build.gradle", + "**%2Fbuild.gradle", + "**/gradle.lockfile", + "**%2Fgradle.lockfile", + "**/build.sbt", + "**%2Fbuild.sbt", + "**/.snyk", + "**%2F.snyk", + "**/packages.config", + "**%2Fpackages.config", + "**/*.csproj", + "**%2F*.csproj", + "**/*.vbproj", + "**%2F*.vbproj", + "**/*.fsproj", + "**%2F*.fsproj", + "**/project.json", + "**%2Fproject.json", + "**/Gopkg.toml", + "**%2FGopkg.toml", + "**/Gopkg.lock", + "**%2FGopkg.lock", + "**/vendor.json", + "**%2Fvendor.json", + "**/composer.lock", + "**%2Fcomposer.lock", + "**/composer.json", + "**%2Fcomposer.json", + "**/project.assets.json", + "**%2Fproject.assets.json", + "**/Podfile", + "**%2FPodfile", + "**/Podfile.lock", + "**%2FPodfile.lock", + "**/go.mod", + "**%2Fgo.mod", + "**/go.sum", + "**%2Fgo.sum", + ], + }, + ], + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/package.json", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpackage.json", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/package-lock.json", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpackage-lock.json", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Gemfile.lock", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FGemfile.lock", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Gemfile", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FGemfile", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/pom.xml", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpom.xml", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*req*.txt", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*req*.txt", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/pyproject.toml", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpyproject.toml", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/poetry.lock", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpoetry.lock", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/yarn.lock", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fyarn.lock", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/build.gradle", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fbuild.gradle", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/gradle.lockfile", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fgradle.lockfile", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/gradle.properties", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fgradle.properties", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Directory.Build.targets", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FDirectory.Build.targets", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Directory.Build.props", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FDirectory.Build.props", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Packages.props", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FPackages.props", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/build.sbt", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fbuild.sbt", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/packages.config", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fpackages.config", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*.csproj", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*.csproj", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*.vbproj", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*.vbproj", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*.fsproj", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*.fsproj", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/project.json", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fproject.json", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Gopkg.toml", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FGopkg.toml", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Gopkg.lock", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FGopkg.lock", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/vendor.json", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fvendor.json", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/composer.lock", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fcomposer.lock", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/composer.json", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fcomposer.json", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/project.assets.json", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fproject.assets.json", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Podfile", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FPodfile", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/Podfile.lock", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2FPodfile.lock", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/go.mod", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fgo.mod", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/go.sum", + }, + Object { + "//": "used to update manifest file", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2Fgo.sum", + }, + Object { + "//": "used to update Dockerfile", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/*Dockerfile*", + }, + Object { + "//": "used to update Dockerfile", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F*Dockerfile*", + }, + Object { + "//": "used to update ignore rules or existing patches", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*/.snyk", + }, + Object { + "//": "used to update ignore rules or existing patches", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/files*%2F.snyk", + }, + Object { + "//": "used to update manifest file for v3 protocol", + "method": "PUT", + "origin": "https://\${GITLAB}", + "path": "/api/v3/projects/:project/repository/files", + "valid": Array [ + Object { + "queryParam": "file_path", + "values": Array [ + "**/package.json", + "**%2Fpackage.json", + "**/yarn.lock", + "**%2Fyarn.lock", + "**/package-lock.json", + "**%2Fpackage-lock.json", + "**/Gemfile", + "**%2FGemfile", + "**/Gemfile.lock", + "**%2FGemfile.lock", + "**/pom.xml", + "**%2Fpom.xml", + "**/*req*.txt", + "**%2F*req*.txt", + "**/pyproject.toml", + "**%2Fpyproject.toml", + "**/poetry.lock", + "**%2Fpoetry.lock", + "**/build.gradle", + "**%2Fbuild.gradle", + "**/gradle.lockfile", + "**%2Fgradle.lockfile", + "**/build.sbt", + "**%2Fbuild.sbt", + "**/.snyk", + "**%2F.snyk", + "**/packages.config", + "**%2Fpackages.config", + "**/*.csproj", + "**%2F*.csproj", + "**/*.vbproj", + "**%2F*.vbproj", + "**/*.fsproj", + "**%2F*.fsproj", + "**/project.json", + "**%2Fproject.json", + "**/Gopkg.toml", + "**%2FGopkg.toml", + "**/Gopkg.lock", + "**%2FGopkg.lock", + "**/vendor.json", + "**%2Fvendor.json", + "**/composer.lock", + "**%2Fcomposer.lock", + "**/composer.json", + "**%2Fcomposer.json", + "**/project.assets.json", + "**%2Fproject.assets.json", + "**/Podfile", + "**%2FPodfile", + "**/Podfile.lock", + "**%2FPodfile.lock", + "**/go.mod", + "**%2Fgo.mod", + "**/go.sum", + "**%2Fgo.sum", + ], + }, + ], + }, + Object { + "//": "allow webhooks to be added, to allow commits to be checked by Snyk. Rules for what is sent to Snyk are controlled in the \`public\` accept filters", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/hooks", + }, + Object { + "//": "allow webhooks to be deleted, used to cleanup when a user deactivates or deletes a project", + "method": "DELETE", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/hooks/:id", + }, + Object { + "//": "used to create commit status messages", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/statuses/:sha", + }, + Object { + "//": "used to create branch for fix merge request", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/branches", + }, + Object { + "//": "used to create merge request for fix merge request", + "method": "POST", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/merge_requests", + }, + Object { + "//": "used to fetch fix merge request information", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/merge_requests", + }, + Object { + "//": "list the user's groups", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/groups", + }, + Object { + "//": "list of projects in a group", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/groups/:id/projects", + }, + Object { + "//": "get current user. so we'll be able to fetch it's projects", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/user", + }, + Object { + "//": "get user's projects", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/users/:user/projects", + }, + Object { + "//": "get all users. so we'll be able to fetch projects that admin can access", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/users", + }, + Object { + "//": "used to get repo's contributors list", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/commits", + }, + Object { + "//": "get a specific commit identified by the commit hash or name of a branch or tag.", + "method": "GET", + "origin": "https://\${GITLAB}", + "path": "/api/v4/projects/:project/repository/commits/:sha", + }, + Object { + "//": "used to redirect requests to snyk git client", + "method": "any", + "origin": "\${GIT_CLIENT_URL}", + "path": "/snykgit/*", + }, + ], + "public": Array [ + Object { + "//": "used for pushing up webhooks from gitlab", + "method": "POST", + "path": "/webhook/gitlab/:webhookId", + }, + ], +} +`; + exports[`filter Rules Loading Injection of valid CODE rules - Testing azure-repos 1`] = ` Object { "private": Array [ diff --git a/test/unit/runtime-rules-hotloading.test.ts b/test/unit/runtime-rules-hotloading.test.ts index 9233030dc..efc5b4226 100644 --- a/test/unit/runtime-rules-hotloading.test.ts +++ b/test/unit/runtime-rules-hotloading.test.ts @@ -88,6 +88,23 @@ describe('filter Rules Loading', () => { }, ); + test.each(scmRulesToTest)( + 'Injection of valid CODE GH rules - Testing %s', + (folder) => { + process.env.ACCEPT_LARGE_MANIFESTS = 'true'; + process.env.ACCEPT = 'accept.json'; + + const loadedRules = loadFilterRules( + 'accept.json.sample', + path.join(__dirname, '../..', `client-templates/${folder}`), + ); + + expect(loadedRules).toMatchSnapshot(); + delete process.env.ACCEPT_LARGE_MANIFESTS; + delete process.env.ACCEPT; + }, + ); + test.each(scmRulesToTest)( 'Injection of valid CODE rules and IAC extensions (yaml only) - Testing %s', (folder) => {