-
Notifications
You must be signed in to change notification settings - Fork 4
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
Queued scan results in passed test (no waiting until it starts) #66
Comments
@wawaqa queued scan can be considered as active. There is no reason to proceed with it at all since it might take days to start such a scan. |
@derevnjuk - right, we need to think how to handle this situation. Actually, any of our scans can take days. :) |
There are just two options that are worth to be discussed:
|
We agreed that in order to avoid “making assumptions” about the user's preferred CI behavior we should not use the exception by default. Instead, we will show log messages that will inform them of the situation and hold until there is a free engine, as follows:
When the engine is available, log: |
If a scan is queued, sec-tester doesn't wait until it starts, gets done or finds a vulnerability, but simply lets the test pass.
Steps to reproduce:
Actual: tests with scans of queued status passed, although the scan didn't even start.
Expected: sec-tester-js waits until the scan is done
Looks like the problem is here: https://github.com/NeuraLegion/sec-tester-js/blob/master/packages/scan/src/Scan.ts
private readonly ACTIVE_STATUSES doesn't contain queued, so we don't poll such scans
The text was updated successfully, but these errors were encountered: