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
feat: retry if NVD API Key is invalid #1574
Conversation
Merged @imsahil007 's suggested PR. (thought I did this before I was out for a US long weekend, but apparently not!) I think that's the right direction to go. We may still have issues with the actual CI. |
There was a syntax error in the apiKey check, and I've updated the pull request to the latest tree. the nvd tests pass for me locally, so that's a good sign? |
64c0446
to
37a1847
Compare
re-wrote commit messages so gitlint would quit complaining. |
fix: add condition to check whether apiKey is being used
@imsahil007 @BreadGenie @anthonyharrison From my reading of the docs, this may be expected behaviour and the key secret will pass only when this runs on main. Once this passes code review, I'd like to merge it and we'll work on improved key passthrough in a separate pull request. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks OK to me
Okay, I'm going to go ahead and merge this since @anthonyharrison 's had a chance to review it and found no concerns. Further refinement after merging is always welcome! |
This is a draft that shouldn't be working yet, but comments, review and suggestions are very welcome because I'm currently blocked on what to do next.
I'm still trying to figure out the best way to handle unsetting the NVD API Key if it proves to be invalid.
This version just has it retry, but I'm not convinced the parameter setting works as expected (I think we need to change it in the request) and the second attempt is slow.