Skip to content

Commit

Permalink
Use name 'withdrawn' instead of 'modified' for Vulnerability struct (#…
Browse files Browse the repository at this point in the history
…1548)

Followup from #1531, appears to be
the result of a copy-paste error? cc @andrewpollock

Found by seeing [failures when importing
vulnerabilities](https://github.com/pypa/advisory-database/actions/runs/5813635878/job/15761635411)
in pypa/advisory-database

Co-authored-by: Andrew Pollock <andrewpollock@users.noreply.github.com>
  • Loading branch information
sethmlarson and andrewpollock authored Aug 10, 2023
1 parent c844573 commit 38a7991
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vulnfeeds/vulns/vulns.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ type Reference struct {

type Vulnerability struct {
ID string `json:"id" yaml:"id"`
Withdrawn string `json:"withdrawn,omitempty" yaml:"modified,omitempty"`
Withdrawn string `json:"withdrawn,omitempty" yaml:"withdrawn,omitempty"`
Summary string `json:"summary,omitempty" yaml:"summary,omitempty"`
Severity []Severity `json:"severity,omitempty" yaml:"severity,omitempty"`
Details string `json:"details" yaml:"details"`
Expand Down

0 comments on commit 38a7991

Please sign in to comment.