basic security checks with bandit
Fixes: https://pagure.io/koji/issue/3042
This commit is contained in:
parent
0e2ebb4e25
commit
ba2e1e520b
13 changed files with 42 additions and 29 deletions
|
|
@ -3994,7 +3994,7 @@ class OzImageTask(BaseTaskHandler):
|
|||
@return:
|
||||
an absolute path to the modified XML
|
||||
"""
|
||||
newxml = xml.dom.minidom.parseString(xmltext)
|
||||
newxml = xml.dom.minidom.parseString(xmltext) # nosec
|
||||
ename = newxml.getElementsByTagName('name')[0]
|
||||
ename.firstChild.nodeValue = self.imgname
|
||||
esources = newxml.getElementsByTagName('source')
|
||||
|
|
@ -4488,7 +4488,7 @@ class BaseImageTask(OzImageTask):
|
|||
if not opts.get('scratch'):
|
||||
# fields = ('name', 'version', 'release', 'arch', 'epoch', 'size',
|
||||
# 'payloadhash', 'buildtime')
|
||||
icicle = xml.dom.minidom.parseString(images['raw']['icicle'])
|
||||
icicle = xml.dom.minidom.parseString(images['raw']['icicle']) # nosec
|
||||
self.logger.debug('ICICLE: %s' % images['raw']['icicle'])
|
||||
for p in icicle.getElementsByTagName('extra'):
|
||||
bits = p.firstChild.nodeValue.split(',')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue