mirror of
https://github.com/genuinetools/reg.git
synced 2024-06-28 10:24:17 -04:00
add vulns to server
Signed-off-by: Jess Frazelle <acidburn@google.com>
This commit is contained in:
parent
81fe023c1e
commit
eda57f98e3
|
@ -388,7 +388,11 @@ func createVulnStaticPage(r *registry.Registry, staticDir, clairURI, repo, tag s
|
|||
}
|
||||
}
|
||||
|
||||
file, err := os.Create(filepath.Join(staticDir, repo, tag, "vulns.txt"))
|
||||
path := filepath.Join(staticDir, repo, tag, "vulns.txt")
|
||||
if err := os.MkdirAll(filepath.Dir(path, 0644)); err != nil {
|
||||
return err
|
||||
}
|
||||
file, err := os.Create(path)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue