diff --git a/pkg/prowgen/prowgen.go b/pkg/prowgen/prowgen.go index 9ab3f793..acb6f215 100644 --- a/pkg/prowgen/prowgen.go +++ b/pkg/prowgen/prowgen.go @@ -233,6 +233,26 @@ func SaveReleaseBuildConfiguration(outConfig *string, cfg ReleaseBuildConfigurat if err := os.WriteFile(filepath.Join(*outConfig, cfg.Path), out, os.ModePerm); err != nil { return err } + + owners, err := os.ReadFile("OWNERS") + if err != nil { + // Log just a warning + log.Printf("failed to read file: %v", err) + return nil + } + ownerAliases, err := os.ReadFile("OWNERS_ALIASES") + if err != nil { + // Log just a warning + log.Printf("failed to read file: %v", err) + return nil + } + if err := os.WriteFile(filepath.Join(dir, "OWNERS"), owners, os.ModePerm); err != nil { + return err + } + if err := os.WriteFile(filepath.Join(dir, "OWNERS_ALIASES"), ownerAliases, os.ModePerm); err != nil { + return err + } + return nil }