weave-gitops
weave-gitops copied to clipboard
Enable gosec linter
Followup to #3282
Steps before refinement:
More info on the gosec linter: https://golangci-lint.run/usage/linters/#gosec
- Discuss which gosec rules to enable (all rules are enabled by default, but some of them are very opinionated and might require re-writing considerable portions of code).
All other linters were enabled in previous issues. Enabling gosec was moved to the current issue because it is more opinionated and will require re-writing larger portions of code.
@bigkevmcd could you please confirm that all gosec linter rules should be enabled (the default setting) or if any rules should be excluded? https://golangci-lint.run/usage/linters/#gosec
My view is that we should see what it spits out, and discuss as a group what it means.
Did a group discussion take place? Still something we want to do? If yes, what would be the next step for this?
I will add this to the agenda for next x-team alignment meeting.
Thanks @yiannistri for bringing the topic to X-team catchup.
In the context of alternatives, we could also consider whether github codeql could provide us any value https://codeql.github.com/docs/
It also have support for github actions https://github.com/github/codeql-action