-
Notifications
You must be signed in to change notification settings - Fork 14
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
ci: Adding gosec in golangci lint #32
Conversation
d26095a
to
5b92fc6
Compare
5b92fc6
to
fa60bca
Compare
@subhamkrai Can you please expend on the reason to disable G204? |
@nb-ohad gosec G204 gives error when subprocess is started with in the a process, like |
@subhamkrai we should not disable the security rules in the whole repo, if required disable it by adding a comment where it is used or disable it in the test files (if possible) |
we can disable for single line, but this rule was something I noticed disabled most places |
these kind of rules need to be verified and disable on demand based on the impact, For now lets not disable it by default rather disable it by putting a comment on the line in code |
86999a0
to
9a1f788
Compare
there is small problem now, we need to put |
@Madhu-1 ^ |
@subhamkrai Where exactly do we have |
@subhamkrai Can you please fix the lint errors? |
@nb-ohad misspell error will go away, and for golangCI lint we need to decided how we want to fix as I mentioned
in above comment |
@subhamkrai did you try to add that comment on top of that line? |
9a1f788
to
3beca80
Compare
adding gosec in golangci lint check, also skip gosec G204 as we don't want to run gosec on exec method. Signed-off-by: subhamkrai <[email protected]>
3beca80
to
6870aef
Compare
Bug 2313203:[release-4.17] add missing rbac for persistentvolume during deletion
Describe what this PR does
ci: add gosec in golangci lint check
adding gosec in golangci lint check, also skip gosec G204 as we don't
want to run gosec on exec method
Checklist:
guidelines in the developer
guide.
Request
notes
updated with breaking and/or notable changes for the next major release.