From: "Thomas Deutschmann" <whissi@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/security:master commit in: bin/
Date: Wed, 4 Mar 2020 04:06:15 +0000 (UTC) [thread overview]
Message-ID: <1583294724.dda658f89dd2514a89dade9fa9d52d14b4d2c7cb.whissi@gentoo> (raw)
commit: dda658f89dd2514a89dade9fa9d52d14b4d2c7cb
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Wed Mar 4 04:05:24 2020 +0000
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Wed Mar 4 04:05:24 2020 +0000
URL: https://gitweb.gentoo.org/proj/security.git/commit/?id=dda658f8
cvetool: add 'getcveidlist' action
'getcveidlist' action will allow you to get list of internal CVE ids
required for API request.
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
bin/cvetool | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/bin/cvetool b/bin/cvetool
index 28b8901..05d0b6e 100755
--- a/bin/cvetool
+++ b/bin/cvetool
@@ -47,6 +47,13 @@ class CVETool:
sys.exit(1)
self.assign(args[0], [self.cleanup_cve(cve) for cve in args[1:]])
+ elif command =='getcveidlist':
+ if len(args) < 1:
+ print('Usage: getcveidlist <CVE> [<CVE>...]')
+ print('Returns a list of the real CVE IDs')
+ sys.exit(1)
+
+ self.getcveidlist([self.cleanup_cve(cve) for cve in args[0:]])
elif command == 'new':
if len(args) != 1:
print('Usage: new <CVE>')
@@ -90,6 +97,11 @@ class CVETool:
print(' State: ' + data['state'])
print(' Bugs: ' + ' , '.join(['https://bugs.gentoo.org/' + str(bug) for bug in data['bugs']]))
+ def getcveidlist(self, cves):
+ cve_ids = [self.get_internal_cve_id(cve) for cve in cves]
+ print('CVE IDs: cves=' + ','.join([str(c) for c in cve_ids]))
+
+
def assign(self, bug, cves):
cve_ids = [self.get_internal_cve_id(cve) for cve in cves]
response = self.request('/cve/assign/?bug=' + str(bug) + '&cves=' + ','.join([str(c) for c in cve_ids]))
next reply other threads:[~2020-03-04 4:06 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-04 4:06 Thomas Deutschmann [this message]
-- strict thread matches above, loose matches on Subject: below --
2020-03-04 4:06 [gentoo-commits] proj/security:master commit in: bin/ Thomas Deutschmann
2017-04-25 17:44 Thomas Deutschmann
2017-01-16 5:53 Thomas Deutschmann
2017-01-16 5:53 Thomas Deutschmann
2017-01-13 10:45 Thomas Deutschmann
2017-01-13 10:45 Thomas Deutschmann
2016-06-01 17:57 Alex Legler
2014-08-04 23:45 Pavlos Ratis
2014-08-04 23:45 Pavlos Ratis
2014-08-04 23:45 Pavlos Ratis
2014-08-04 23:45 Pavlos Ratis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1583294724.dda658f89dd2514a89dade9fa9d52d14b4d2c7cb.whissi@gentoo \
--to=whissi@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox