ci: enable gosec linter in golangci-lint
golangci-lint linter gosec showing more errors than gosec gh. This commit resolve new errors. And, removing nosec comments from autogenerated files. Signed-off-by: subhamkrai <srai@redhat.com>
This commit is contained in:
1 parent
268329709e
commit
cb0ca66a6b
27 files changed
+28
-50
No files matched your search
@@ -24,6 +24,7 @@ jobs:
|
||||
# working-directory: somedir
|
||||
|
||||
# Optional: golangci-lint command line arguments.
|
||||
args: --timeout=4m
|
||||
args: -E gosec --timeout=4m
|
||||
|
||||
# Optional: show only new issues if it's a pull request. The default value is `false`.
|
||||
# only-new-issues: true
|
||||
@@ -1,15 +0,0 @@
|
||||
name: Gosec
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
tests:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
GO111MODULE: on
|
||||
steps:
|
||||
- name: Checkout Source
|
||||
uses: actions/checkout@v2
|
||||
- name: Run Gosec Security Scanner
|
||||
uses: securego/gosec@master
|
||||
with:
|
||||
args: pkg/... -severity=medium && cmd/... -severity=medium
|
||||
Reference in new issue
Block a user