Skip to content

Commit

Permalink
fixes vulndb import
Browse files Browse the repository at this point in the history
  • Loading branch information
timbastin committed Jan 24, 2025
1 parent 80fefeb commit 553f9f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/core/vulndb/import.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ func (s importService) Import(tx database.DB, tag string) error {
reg := "ghcr.io/l3montree-dev/devguard/vulndb"

// create a file store
defer os.RemoveAll(tmp)
// defer os.RemoveAll(tmp)
fs, err := file.New(tmp)
if err != nil {
panic(err)
Expand Down Expand Up @@ -164,7 +164,7 @@ func (s importService) Import(tx database.DB, tag string) error {
slog.Info("Unzipping vulndb completed")

//copy csv files to database
err = s.copyCSVToDB(tmp)
err = s.copyCSVToDB(tmp + "/vulndb")
if err != nil {
return err
}
Expand Down

0 comments on commit 553f9f3

Please sign in to comment.