Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement URL property from standard #112

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pkg/csaf/csaf.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ type RemediationData struct {
GroupIDs []string `json:"group_ids"`
ProductIDs []string `json:"product_ids"`
Restart RestartData `json:"restart_required"`
Url string `json:"url"`
}

// Remediation instructions for restart of affected software.
Expand Down
3 changes: 3 additions & 0 deletions pkg/csaf/csaf_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ func TestOpenRHAdvisory(t *testing.T) {
require.Equal(t, doc.Document.Publisher.IssuingAuthority, "Red Hat Product Security is responsible for vulnerability handling across all Red Hat offerings.")
require.Equal(t, doc.Document.Publisher.Name, "Red Hat Product Security")
require.Equal(t, doc.Document.Publisher.Namespace, "https://www.redhat.com")

// Remediation Url
require.Equal(t, doc.Vulnerabilities[0].Remediations[0].Url, "https://access.redhat.com/errata/RHSA-2020:1358")
}

func TestFindFirstProduct(t *testing.T) {
Expand Down