[Secure-testing-commits] r40422 - bin

Paul Wise pabs at moszumanska.debian.org
Thu Mar 17 04:54:07 UTC 2016


Author: pabs
Date: 2016-03-17 04:54:07 +0000 (Thu, 17 Mar 2016)
New Revision: 40422

Modified:
   bin/tracker_service.py
Log:
Link to github code/issues searches for CVEs

Modified: bin/tracker_service.py
===================================================================
--- bin/tracker_service.py	2016-03-17 04:36:24 UTC (rev 40421)
+++ bin/tracker_service.py	2016-03-17 04:54:07 UTC (rev 40422)
@@ -380,6 +380,10 @@
                                       self.make_suse_bug_ref(url, bug.name, 'SuSE'),
                                       ", ",
                                       self.make_mageia_bug_ref(url, bug.name, 'Mageia'),
+                                      ", GitHub ",
+                                      self.make_github_code_ref(url, bug.name, 'code'),
+                                      "/",
+                                      self.make_github_issues_ref(url, bug.name, 'issues'),
                                       ", ",
                                       self.make_disconnect_bug_ref(url, bug.name, 'web search'),
                                       ", ",
@@ -1495,6 +1499,10 @@
                             id=name)
     def url_mageia_bug(self, url, name):
         return url.absolute("https://advisories.mageia.org/%s.html" % 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):
+        return url.absolute("https://github.com/search", type="Issues", q='"%s"' % name)
     def url_disconnect_bug(self, url, name):
         return url.absolute("https://search.disconnect.me/searchTerms/search", query=name)
 
@@ -1600,6 +1608,16 @@
             name = cve
         return A(self.url_mageia_bug(url, cve), name)
 
+    def make_github_code_ref(self, url, cve, name=None):
+        if name is None:
+            name = cve
+        return A(self.url_github_code_bug(url, cve), name)
+
+    def make_github_issues_ref(self, url, cve, name=None):
+        if name is None:
+            name = cve
+        return A(self.url_github_issues_bug(url, cve), name)
+
     def make_disconnect_bug_ref(self, url, cve, name=None):
         if name is None:
             name = cve




More information about the Secure-testing-commits mailing list