1
0
mirror of https://github.com/securego/gosec.git synced 2025-02-01 12:57:55 +02:00
Matouš Dzivjak 1fce46151c
fix: WriteParams rule to work also with golang 1.16 (#577)
In go 1.16 the `ioutil` package was deprecated and
the functions should be replaced by their equivalents
in either `io` or `os` packages. This means,
that `ioutil.WriteFile` should be replaced by
`os.WriteFile` instead. To account for this change
and to detect incorrect permissions also for `os.WriteFile`
I changed `filePermissions` rule slightly to allows
specifying multiple packages that can contain given
function and that we should check. This workaround
can be removed after a sufficient time has passed
and after it is decided that checking `os.WriteFile`
is enough.

Fixes: https://github.com/securego/gosec/issues/576
2021-02-22 09:22:04 +01:00
..
2020-05-06 16:23:04 +02:00
2020-06-29 13:52:47 +02:00
2017-07-19 15:17:00 -06:00
2021-01-04 09:28:00 +01:00