def METHOD_NAME(self, digests):
    # v2 registry digests
    pullspecs = []
    for image in self.workflow.data.tag_conf.images:
        image_str = image.to_str()
        if image_str in digests:
            digest = digests[image_str]
            for digest_version in digest.content_type:
                if digest_version not in digest:
                    continue
                pullspecs.append({
                    "registry": image.registry,
                    "repository": image.to_str(registry=False, tag=False),
                    "tag": image.tag,
                    "digest": digest[digest_version],
                    "version": digest_version
                })
    return pullspecs