diff options
| author | James Elliott <james-d-elliott@users.noreply.github.com> | 2020-05-05 17:57:30 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-05 17:57:30 +1000 |
| commit | c13196a86e267298edb3458d3e47918565e3d139 (patch) | |
| tree | 3fa6692721ea2a4cbf4aff06533104eb91715a16 /internal/authentication/file_user_provider.go | |
| parent | 87053c93120761639837745a498f7d13b78f7d92 (diff) | |
[CI] Enable gosec linter (#979)
* fix tee append
* convert DB table names from var to const
* fixed file modes
* ignored gosec where relevant and safe
Diffstat (limited to 'internal/authentication/file_user_provider.go')
| -rw-r--r-- | internal/authentication/file_user_provider.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/authentication/file_user_provider.go b/internal/authentication/file_user_provider.go index 180854c82..bb6d41d0b 100644 --- a/internal/authentication/file_user_provider.go +++ b/internal/authentication/file_user_provider.go @@ -166,7 +166,7 @@ func (p *FileUserProvider) UpdatePassword(username string, newPassword string) e p.lock.Unlock() return err } - err = ioutil.WriteFile(p.configuration.Path, b, 0644) + err = ioutil.WriteFile(p.configuration.Path, b, 0644) //nolint:gosec // Fixed in future PR. p.lock.Unlock() return err } |
