-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scans Limit per month #309
Comments
Hi, reporting "quota exceeded" errors in the JSON output and at the end of the command is a good idea, I am going to add this to the next milestone. Regarding quotas, you can learn more from https://docs.gitguardian.com/internal-repositories-monitoring/api/usage_and_quotas#quotas, but the doc might need some refresh because scanning large directories or repositories actually use more than one API call. I am going to look into getting this doc updated. |
When quota limit is reached ggshield: - prints this error: "Could not perform the requested action: no more API calls available." - exits with an error code of 128 - does not print anything through the output handlers (no text report, no JSON report)
When quota limit is reached ggshield: - prints this error: "Could not perform the requested action: no more API calls available." - exits with an error code of 128 - does not print anything through the output handlers (no text report, no JSON report)
The 1K/month limitation on scan calls for the free account is causing ambiguity as I'm testing the solution on many projects. I tried running scans on multiple projects. It seems that I have reached the 1K limit, however I still get empty result file in json format. So I cannot distinguish between exceed quota and no issue found.
Note that I use the following command in my code: ggshield secret scan --json -o {secretfile} path {path} -r -y
It would be great if the tool would produce a 'no scan performed' when I exceed the account's quota instead.
Another thing, I would appreciate knowing what constitute a 1 scan and counts toward the scan calls limit. Is it single call or number of repos/folder? It would help us manage tests better.
Thank you.
The text was updated successfully, but these errors were encountered: