mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-14 02:43:36 +00:00
cleanup: address golangci 'gosec' issues
The golangci 'gosec' linter complains about permissions that could be more secure. These have been modified or annotated on. Signed-off-by: Niels de Vos <ndevos@ibm.com>
This commit is contained in:
committed by
mergify[bot]
parent
5941371c4b
commit
4ffa1d6c89
@ -98,6 +98,7 @@ func writeArtifact(artifact deploymentArtifact) {
|
||||
dir := path.Dir(artifact.filename)
|
||||
_, err := os.Stat(dir)
|
||||
if os.IsNotExist(err) {
|
||||
//nolint:gosec // 0o750 is recommended, but the contents should be public
|
||||
err = os.MkdirAll(dir, 0o775)
|
||||
if err != nil {
|
||||
panic(fmt.Sprintf("failed to create directory %q: %v", dir, err))
|
||||
|
Reference in New Issue
Block a user