Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def get_document_namespace(image_obj):
'''Given the image object, return a unique SPDX document uri.
This is a combination of the human readable id from the image
object and the tool name'''
return spdx_formats.document_namespace.format(
image_id=image_obj.get_human_readable_id(),
version=get_git_rev_or_version()[1])