Title: 馃悶 The git_repo_scanner triggers an abuse detection mechanism at GitHub for large organisations 路 Issue #325 路 secureCodeBox/secureCodeBox 路 GitHub
Open Graph Title: 馃悶 The git_repo_scanner triggers an abuse detection mechanism at GitHub for large organisations 路 Issue #325 路 secureCodeBox/secureCodeBox
X Title: 馃悶 The git_repo_scanner triggers an abuse detection mechanism at GitHub for large organisations 路 Issue #325 路 secureCodeBox/secureCodeBox
Description: Describe the bug I am having an issue with a git-repo-scanner + gitleaks working in concert to scan my company's org, which has over 2k repos. The scan is ending around 900 repos with the following error: INFO:git_repo_scanner: 901 - crp...
Open Graph Description: Describe the bug I am having an issue with a git-repo-scanner + gitleaks working in concert to scan my company's org, which has over 2k repos. The scan is ending around 900 repos with the following...
X Description: Describe the bug I am having an issue with a git-repo-scanner + gitleaks working in concert to scan my company's org, which has over 2k repos. The scan is ending around 900 repos with the follo...
Opengraph URL: https://github.com/secureCodeBox/secureCodeBox/issues/325
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"馃悶 The git_repo_scanner triggers an abuse detection mechanism at GitHub for large organisations ","articleBody":"\u003c!--\r\nThank you for reporting an issue in our project 馃檶\r\n\r\nBefore opening a new issue, please make sure that we do not have any duplicates already open. You can ensure this by searching the issue list for this repository. If there is a duplicate, please close your issue and add a comment to the existing issue instead.\r\n--\u003e\r\n\r\n**Describe the bug**\r\n\u003c!-- A clear and concise description of what the bug is. --\u003e\r\n\r\nI am having an issue with a git-repo-scanner + gitleaks working in concert to scan my company's org, which has over 2k repos. The scan is ending around 900 repos with the following error:\r\n\r\n```\r\nINFO:git_repo_scanner: 901 - crp-legacy-ui-dhtmlWins\r\nINFO:git_repo_scanner: Github API Exception: 403 -\u003e You have triggered an abuse detection mechanism. Please wait a few minutes before you try again.\r\n```\r\n\r\nThis is causing CrashLoopBackoff events with the pod. Ultimately the job fails with error.\r\n\r\nI understand what the error is telling me. My main question is: What is the largest number of repos does this scanner support? I would like to scan my entire org in one run, but I have not been successful, with the number of repos and the GH API throttle limits. The --ignore-repo is a start, but seems not too effective given my large list of repos.\r\n\r\nOther questions:\r\nIs there a way to throttle api calls? \r\nIs there a recommended number of batches I should run with?\r\nWould there be a way to pass an argument to break up the scans?\r\n\r\n**To Reproduce**\r\n\r\nSteps to reproduce the behavior:\r\n1. Install via helm: see second screenshot below.\r\n2. Create a git-repo-scanner yaml file.\r\n3. Run the git-repo-scanner job on a github org with over 2000 repos and with cascadingrules triggering gitleaks.\r\n4. Tail the created job's log, for example: `k logs job/scan-gh-repo-scan-org-coretech-wdbns -c git-repo-scanner -f `\r\n4. See 403 error in the first screenshot below.\r\n\r\n\r\n\r\n**Expected behavior**\r\n\u003c!-- A clear and concise description of what you expected to happen. --\u003e\r\n\r\n\r\n**System (please complete the following information):**\r\n\r\n - secureCodeBox 2.4.0\r\n - OS: Linux\r\n - Kubernetes Version [command: `kubectl version`]\r\n \r\nClient Version: version.Info{Major:\"1\", Minor:\"20\", GitVersion:\"v1.20.4\", GitCommit:\"e87da0bd6e03ec3fea7933c4b5263d151aafd07c\", GitTreeState:\"clean\", BuildDate:\"2021-02-21T20:23:45Z\", GoVersion:\"go1.15.8\", Compiler:\"gc\", Platform:\"darwin/amd64\"}\r\nServer Version: version.Info{Major:\"1\", Minor:\"18+\", GitVersion:\"v1.18.9-eks-d1db3c\", GitCommit:\"d1db3c46e55f95d6a7d3e5578689371318f95ff9\", GitTreeState:\"clean\", BuildDate:\"2020-10-20T22:18:07Z\", GoVersion:\"go1.13.15\", Compiler:\"gc\", Platform:\"linux/amd64\"}\r\n - Docker Version [command: `docker -v`]\r\n \r\nDocker version 20.10.2, build 2291f61\r\n - Browser [e.g. chrome, safari, firefox,...]\r\n N/A\r\n\r\n\r\n**Screenshots / Logs**\r\n\u003c!-- If applicable, add screenshots to help explain your problem. --\u003e\r\n\r\n\r\n\r\n\r\n**Additional context**\r\n\u003c!-- Add any other context about the problem here. --\u003e\r\n","author":{"url":"https://github.com/glermaidt","@type":"Person","name":"glermaidt"},"datePublished":"2021-03-12T20:48:05.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":8},"url":"https://github.com/325/secureCodeBox/issues/325"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:dd4283bd-73ee-e4b9-dfe7-f093d75ebc1c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A2F6:267E4D:BD79465:F7BFA65:697659F3 |
| html-safe-nonce | 86081f0906e28aea0f6f98a2e15cfe4fa3ad78d237f95419998e5c56a63b2fc9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMkY2OjI2N0U0RDpCRDc5NDY1OkY3QkZBNjU6Njk3NjU5RjMiLCJ2aXNpdG9yX2lkIjoiMTYyNzA1Nzk2OTk3NzI1MjMzOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | f5e04a86fb4b04f6e9b2aa3919391b135b97e749739fcc13f44a7018dc6f4211 |
| hovercard-subject-tag | issue:830435401 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/secureCodeBox/secureCodeBox/325/issue_layout |
| twitter:image | https://opengraph.githubassets.com/577b8711181f65776b4e124cfe608117346038553847201570f4ad7223b11a4a/secureCodeBox/secureCodeBox/issues/325 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/577b8711181f65776b4e124cfe608117346038553847201570f4ad7223b11a4a/secureCodeBox/secureCodeBox/issues/325 |
| og:image:alt | Describe the bug I am having an issue with a git-repo-scanner + gitleaks working in concert to scan my company's org, which has over 2k repos. The scan is ending around 900 repos with the following... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | glermaidt |
| hostname | github.com |
| expected-hostname | github.com |
| None | 032152924a283b83384255d9489e7b93b54ba01da8d380b05ecd3953b3212411 |
| turbo-cache-control | no-preview |
| go-import | github.com/secureCodeBox/secureCodeBox git https://github.com/secureCodeBox/secureCodeBox.git |
| octolytics-dimension-user_id | 34573705 |
| octolytics-dimension-user_login | secureCodeBox |
| octolytics-dimension-repository_id | 80711933 |
| octolytics-dimension-repository_nwo | secureCodeBox/secureCodeBox |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 80711933 |
| octolytics-dimension-repository_network_root_nwo | secureCodeBox/secureCodeBox |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 5b577f6be6482e336e3c30e8daefa30144947b17 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width