You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running yggdrasil-worker-package-manager through a static analyzer resulting in some findings that could be fixed.
1. rhc/yggdrasil-worker-package-manager/util.go:50: insecure_file_permissions: The "FileMode" argument is explicitly set to an insecure value making the file world-readable, world-writeable or world-executeable.
2. rhc/yggdrasil-worker-package-manager/util.go:50: remediation: Set the "FileMode" argument to a value that forbids the world permission.
# 48| return ioutil.WriteFile(name, data, 0644)
# 49| } else {
# 50|-> file, err := os.OpenFile(name, os.O_WRONLY|os.O_APPEND, 0644)
# 51| if err != nil {
# 52| return fmt.Errorf("cannot open file for appending: %w", err)
1. rhc/yggdrasil-worker-package-manager/package_manager_apt.go:31: insecure_file_permissions: The "FileMode" argument is explicitly set to an insecure value making the file world-readable, world-writeable or world-executeable.
2. rhc/yggdrasil-worker-package-manager/package_manager_apt.go:31: remediation: Set the "FileMode" argument to a value that forbids the world permission.
# 29|
# 30| func (p *PackageManagerApt) EnableRepo(sourceLine string) (stdout, stderr []byte, code int, err error) {
# 31|-> if err := os.MkdirAll(filepath.Base(sourcesFile), 0755); err != nil {
# 32| return nil, nil, -1, fmt.Errorf("cannot create sources list directory: %w", err)
# 33| }
The text was updated successfully, but these errors were encountered:
Running yggdrasil-worker-package-manager through a static analyzer resulting in some findings that could be fixed.
The text was updated successfully, but these errors were encountered: