[Git][security-tracker-team/security-tracker][master] 2 commits: Link to GitHub advisory search for CVEs
Emilio Pozuelo Monfort (@pochu)
pochu at debian.org
Tue Jul 26 15:09:31 BST 2022
Emilio Pozuelo Monfort pushed to branch master at Debian Security Tracker / security-tracker
Commits:
0f210141 by Paul Wise at 2022-07-22T23:13:54+08:00
Link to GitHub advisory search for CVEs
- - - - -
127161a4 by Emilio Pozuelo Monfort at 2022-07-26T14:09:26+00:00
Merge branch 'github-advisories' into 'master'
Add GitHub advisory search to CVE pages
See merge request security-tracker-team/security-tracker!111
- - - - -
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/-/compare/dd960379a754312a37bb3981f8f8ce860690a519...127161a451b36708d83c4f30d4b482f6174afaa0
--
View it on GitLab: https://salsa.debian.org/security-tracker-team/security-tracker/-/compare/dd960379a754312a37bb3981f8f8ce860690a519...127161a451b36708d83c4f30d4b482f6174afaa0
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-security-tracker-commits/attachments/20220726/c1c90f53/attachment-0001.htm>
More information about the debian-security-tracker-commits
mailing list