Salvatore Bonaccorso pushed to branch master at Debian Security Tracker / 
security-tracker


Commits:
c3f73a2d by Salvatore Bonaccorso at 2022-07-31T14:40:19+02:00
Revert "Revert "Link to GitHub advisory search for CVEs""

This reverts commit f3e3e34a5ea5ac1e553b3aea371394812199e066.

Emilio did review the merge request so opt for this one and will close
!72.

- - - - -


1 changed file:

- bin/tracker_service.py


Changes:

=====================================
bin/tracker_service.py
=====================================
@@ -402,6 +402,8 @@ data source.""")],
                                       ", ",
                                       self.make_mageia_bug_ref(url, bug.name, 
'Mageia'),
                                       ", GitHub ",
+                                      self.make_github_advisory_ref(url, 
bug.name, 'advisories'),
+                                      "/",
                                       self.make_github_code_ref(url, bug.name, 
'code'),
                                       "/",
                                       self.make_github_issues_ref(url, 
bug.name, 'issues'),
@@ -1545,6 +1547,8 @@ Debian bug number.'''),
         return url.absolute("https://www.suse.com/security/cve/%s/"; % name)
     def url_mageia_bug(self, url, name):
         return url.absolute("https://advisories.mageia.org/%s.html"; % name)
+    def url_github_advisory_bug(self, url, name):
+        return url.absolute("https://github.com/advisories";, query=name)
     def url_github_code_bug(self, url, name):
         return url.absolute("https://github.com/search";, type="Code", q='"%s"' 
% name)
     def url_github_issues_bug(self, url, name):
@@ -1685,6 +1689,11 @@ Debian bug number.'''),
             name = cve
         return A(self.url_mageia_bug(url, cve), name)
 
+    def make_github_advisory_ref(self, url, cve, name=None):
+        if name is None:
+            name = cve
+        return A(self.url_github_advisory_bug(url, cve), name)
+
     def make_github_code_ref(self, url, cve, name=None):
         if name is None:
             name = cve



View it on GitLab: 
https://salsa.debian.org/security-tracker-team/security-tracker/-/commit/c3f73a2d52c0fefad046c1698a08baf34aa3905e

-- 
View it on GitLab: 
https://salsa.debian.org/security-tracker-team/security-tracker/-/commit/c3f73a2d52c0fefad046c1698a08baf34aa3905e
You're receiving this email because of your account on salsa.debian.org.


_______________________________________________
debian-security-tracker-commits mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-security-tracker-commits

Reply via email to