mirror of
https://github.com/securego/gosec.git
synced 2024-12-26 04:25:52 +00:00
Make the folder permissions more permissive to avoid false positives (#175)
This commit is contained in:
parent
d48668e9e7
commit
1c58cbd378
1 changed files with 1 additions and 1 deletions
|
@ -75,7 +75,7 @@ func NewFilePerms(conf gas.Config) (gas.Rule, []ast.Node) {
|
||||||
// NewMkdirPerms creates a rule to detect directory creation with more permissive than
|
// NewMkdirPerms creates a rule to detect directory creation with more permissive than
|
||||||
// configured permission mask.
|
// configured permission mask.
|
||||||
func NewMkdirPerms(conf gas.Config) (gas.Rule, []ast.Node) {
|
func NewMkdirPerms(conf gas.Config) (gas.Rule, []ast.Node) {
|
||||||
mode := getConfiguredMode(conf, "G301", 0700)
|
mode := getConfiguredMode(conf, "G301", 0750)
|
||||||
return &filePermissions{
|
return &filePermissions{
|
||||||
mode: mode,
|
mode: mode,
|
||||||
pkg: "os",
|
pkg: "os",
|
||||||
|
|
Loading…
Reference in a new issue