diff --git a/policies/V8-policy.json b/policies/V8-policy.json index 2464846..e7a8930 100644 --- a/policies/V8-policy.json +++ b/policies/V8-policy.json @@ -9,5 +9,6 @@ ], "freshness_days": 7, "policy_link": "https://chromium.googlesource.com/chromium/src/+/refs/heads/main/docs/security/updates.md", - "description": "Dependency on outdated V8 found. Please update to the latest [beta](https://chromium.googlesource.com/v8/v8.git/+/refs/heads/beta), [stable](https://chromium.googlesource.com/v8/v8.git/+/refs/heads/stable), or [extended stable](https://chromium.googlesource.com/v8/v8.git/+/refs/heads/extended) versions." + "summary": "Outdated dependency on V8 found (see details)", + "description": "Outdated dependency on V8 found (see [policy](https://chromium.googlesource.com/chromium/src/+/refs/heads/main/docs/security/updates.md).\n\nPlease update to the latest [beta](https://chromium.googlesource.com/v8/v8.git/+/refs/heads/beta), [stable](https://chromium.googlesource.com/v8/v8.git/+/refs/heads/stable), or [extended stable](https://chromium.googlesource.com/v8/v8.git/+/refs/heads/extended) versions." } diff --git a/src/main.go b/src/main.go index ca4896b..7ad6388 100644 --- a/src/main.go +++ b/src/main.go @@ -30,6 +30,7 @@ type Policy struct { Repository string `json:"repository"` FreshnessDays int `json:"freshness_days"` PolicyLink string `json:"policy_link"` + Summary string `json:summary` Description string `json:"description"` Branches []string `json:"branches"` } @@ -222,7 +223,7 @@ func updateAdvisory(advisory *Advisory, policy *Policy, cache map[string][]strin advisory.ID = policy.ID advisory.Modified = nowTimestamp - advisory.Summary = policy.PolicyLink + advisory.Summary = policy.Summary advisory.Details = policy.Description advisory.Affected = []AffectedItem{*affectedItem} diff --git a/src/main_test.go b/src/main_test.go index ab48816..8bb9e06 100644 --- a/src/main_test.go +++ b/src/main_test.go @@ -237,7 +237,7 @@ func TestUpdateAdvisory(t *testing.T) { ID: "policyID", Repository: "owner/repo", FreshnessDays: 1, - PolicyLink: "policyLink", + Summary: "policySummary", Description: "policyDescription", } @@ -261,7 +261,7 @@ func TestUpdateAdvisory(t *testing.T) { ID: "policyID", Modified: nowTimestamp, Published: nowTimestamp, - Summary: "policyLink", + Summary: "policySummary", Details: "policyDescription", Affected: []AffectedItem{ {