mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 11:55:40 +01:00
Add datetime and version info to report of checker
Resolve #142 Co-authored-by: Bernhard Reiter <bernhard@intevation.de>
This commit is contained in:
parent
17f22855ee
commit
13423c3d4d
3 changed files with 16 additions and 5 deletions
|
|
@ -189,6 +189,9 @@ func (p *processor) run(reporters []reporter, domains []string) (*Report, error)
|
|||
for _, r := range reporters {
|
||||
r.report(p, domain)
|
||||
}
|
||||
report.Version = util.SemVersion
|
||||
now := time.Now()
|
||||
report.Date = now.Format("2006-01-02T15:04:05Z")
|
||||
report.Domains = append(report.Domains, domain)
|
||||
p.clean()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue