-
Notifications
You must be signed in to change notification settings - Fork 164
chore(lint): enable the "usestdlibvars" linter #17129
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
base: master
Are you sure you want to change the base?
Conversation
Hi @Juneezee. Thanks for your PR. I'm waiting for a stackrox member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
I'm sorry I accidentally closed this PR. I'm working on #17160 to make CI 🟢 Stay tuned 😅 |
Part of stackrox#7729. Signed-off-by: Eng Zer Jun <[email protected]>
3c1b58b
to
0eeccbd
Compare
/ok-to-test |
Caution There are some errors in your PipelineRun template.
|
/ok-to-test |
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.
Hey there - I've reviewed your changes and they look great!
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location> `scanner/enricher/nvd/nvd.go:424` </location>
<code_context>
Str("nvd_message", req.Header.Get("message")).
Msg("NVD response")
- if resp.StatusCode != 200 {
+ if resp.StatusCode != http.StatusOK {
_ = resp.Body.Close
return nil, fmt.Errorf("unexpected status code when querying %s: %d", req.URL.String(), resp.StatusCode)
</code_context>
<issue_to_address>
**issue (bug_risk):** The response body is not being closed properly on error.
'_ = resp.Body.Close' does not close the body; use 'resp.Body.Close()' to properly release resources.
</issue_to_address>
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
@janisz Should I retest? |
/retest |
@Juneezee: The following tests failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
Description
Part of #7729.
User-facing documentation
Testing and quality
Automated testing
How I validated my change
CI jobs