code: def get_digests(self):
          
  
          digests = {}  # repository -> digest
          for registry in self.workflow.push_conf.docker_registries:
              for image in self.workflow.tag_conf.images:
                  image_str = image.to_str()
                  if image_str in registry.digests:
                      digest = registry.digests[image_str]
                      digests[image.to_str(registry=False)] = digest
  
          return digests
docs: Returns a map of repositories to digests