-
Notifications
You must be signed in to change notification settings - Fork 23
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
[BUG] Jake crashes on ddt scan "AttributeError: 'OssIndexComponent' object has no attribute 'has_known_vulnerabilities'" #112
Comments
Hi @angushenderson, Thanks for raising this issue. It looks like The upstream dependency is still only a RC, so this is not expected. We'll see if we can quickly adjust our dependency definitions to prevent this in the immediate term. |
Signed-off-by: Paul Horton <phorton@sonatype.com>
Can you let us know if that is not the case please? Thanks again! |
Signed-off-by: Paul Horton <phorton@sonatype.com>
Thank you so much @madpah, that's all working now! |
* feat: typing of `jake` WIP Signed-off-by: Paul Horton <phorton@sonatype.com> * port of fix for #112 Signed-off-by: Paul Horton <phorton@sonatype.com> * resolved a bunch of typing issues Signed-off-by: Paul Horton <phorton@sonatype.com> * ci: fixed parameter references Signed-off-by: Paul Horton <phorton@sonatype.com> * ci: fixed parameter references Signed-off-by: Paul Horton <phorton@sonatype.com> * ci: fixed mypy Signed-off-by: Paul Horton <phorton@sonatype.com> * fix: updated `ossindex-lib` to latest RC which now appears to properly resolve caching issues #100 Signed-off-by: Paul Horton <phorton@sonatype.com> * defined lowest dependencies and aligned Signed-off-by: Paul Horton <phorton@sonatype.com> * defined lowest dependencies and aligned Signed-off-by: Paul Horton <phorton@sonatype.com> * defined lowest dependencies and aligned Signed-off-by: Paul Horton <phorton@sonatype.com> * defined lowest dependencies and aligned Signed-off-by: Paul Horton <phorton@sonatype.com> * WIP: JSON output updated to use JSON serialisation - All tests passing locally Signed-off-by: Paul Horton <phorton@sonatype.com>
Describe the bug
When running a jake scan an AttributeError is raised when checking for vulnerabilities (AttributeError: 'OssIndexComponent' object has no attribute 'has_known_vulnerabilities'), full stack trace is shown in screenshot below. For context, all python modules are installed via pipenv. I've tried running this command in 3 places, and this error is thrown in each of them: locally in command line, locally using pre-commit hooks, and on Gitlab ci.
To Reproduce
Steps to reproduce the behavior:
pipenv install --dev
to install all dependencies (see Pipfile below).pipenv run jake ddt --clear-cache
(--clear-cache
flag is used as per issue [BUG] Jake crashes on ddt scan "TypeError: 'int' object is not callable" #100)Expected behavior
Normal, error free, execution of Jake OSS Index-backed scan
Screenshots
Additional Context
Here is the 'Pipfile':
Pre-commit hook in '.pre-commit-config.yaml':
And the command getting run on the ci is:
pipenv run jake ddt --clear-cache
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: