mirror of
https://github.com/aquasecurity/trivy.git
synced 2025-12-23 07:29:00 -08:00
fix(github): use GetPublishedAt
This commit is contained in:
@@ -72,7 +72,7 @@ func (c Client) DownloadDB(ctx context.Context, fileName string) (io.ReadCloser,
|
|||||||
}
|
}
|
||||||
|
|
||||||
sort.Slice(releases, func(i, j int) bool {
|
sort.Slice(releases, func(i, j int) bool {
|
||||||
return releases[i].PublishedAt.After(releases[j].PublishedAt.Time)
|
return releases[i].GetPublishedAt().After(releases[j].GetPublishedAt().Time)
|
||||||
})
|
})
|
||||||
|
|
||||||
prefix := fmt.Sprintf("v%d", db.SchemaVersion)
|
prefix := fmt.Sprintf("v%d", db.SchemaVersion)
|
||||||
|
|||||||
Reference in New Issue
Block a user