osbuild-worker-executor: appease gosec
Note that gosec IMHO is a bit silly here, the heuristics used are note very good, i.e. the code is already validating the external inputs and it's not clear to me that "filepath.Clean()" will help but it seems to supress the error. I hope gosec provides value in other places, here it seems to be adding work :/ I also excluded "gosec" from any _test.go files, I do not see why we should gosec tests?
This commit is contained in:
parent
b0543e89f4
commit
138bc73e37
3 changed files with 25 additions and 8 deletions
|
|
@ -23,3 +23,6 @@ issues:
|
|||
|
||||
# Maximum count of issues with the same text. Set to 0 to disable. Default is 3.
|
||||
max-same-issues: 0
|
||||
exclude-rules:
|
||||
- path: ^cmd/osbuild-worker-executor/.*_test\.go$
|
||||
linters: ["gosec"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue