Skip to content

Commit

Permalink
Merge pull request #78 from dell/gosecFilePermissionFix
Browse files Browse the repository at this point in the history
Gosec fix
  • Loading branch information
adarsh-dell authored Jul 19, 2024
2 parents 70d287d + cb48918 commit b0acb1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/helm/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func (c *Client) AddRepository(name, url string) error {
repoFile := c.settings.RepositoryConfig

// Ensure the file directory exists as it is required for file locking
err := os.MkdirAll(filepath.Dir(repoFile), os.ModePerm)
err := os.MkdirAll(filepath.Dir(repoFile), 0o750)
if err != nil && !os.IsExist(err) {
return err
}
Expand Down

0 comments on commit b0acb1f

Please sign in to comment.