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
|
|
@ -680,7 +680,7 @@ def download_archive(build, archive, topurl, quiet=False, noprogress=False):
|
|||
if archive['checksum_type'] == koji.CHECKSUM_TYPES['md5']:
|
||||
hash = md5_constructor()
|
||||
elif archive['checksum_type'] == koji.CHECKSUM_TYPES['sha1']:
|
||||
hash = hashlib.sha1()
|
||||
hash = hashlib.sha1() # nosec
|
||||
elif archive['checksum_type'] == koji.CHECKSUM_TYPES['sha256']:
|
||||
hash = hashlib.sha256()
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue