

def _execute_workflow_actions(self, wf_obj, app_obj, assem, verb='launch_workflow', commit_sha='', status_url=None, du_id=None):
    image = objects.registry.Image()
    image.name = app_obj.name
    image.source_uri = wf_obj.source['repository']
    image.base_image_id = app_obj.languagepack
    image.image_format = CONF.api.image_format
    image.uuid = str(uuid.uuid4())
    image.user_id = self.context.user
    image.project_id = self.context.tenant
    image.status = IMAGE_STATES.QUEUED
    image.create(self.context)
    test_cmd = wf_obj.config['test_cmd']
    run_cmd = wf_obj.config['run_cmd']
    ports = app_obj.ports
    repo_token = ''
    image.source_format = 'solum'
    git_info = {
        'source_url': image.source_uri,
        'commit_sha': run_cmd,
        'repo_token': repo_token,
        'status_url': status_url,
    }
    if test_cmd:
        repo_utils.send_status(0, status_url, repo_token, pending=True)
    worker_api.API(context=self.context).build_app(verb=verb, build_id=image.id, git_info=git_info, ports=ports, name=image.name, base_image_id=image.base_image_id, source_format=image.source_format, image_format=image.image_format, assembly_id=assem.id, workflow=assem.workflow, test_cmd=test_cmd, run_cmd=run_cmd, du_id=du_id)

dataset/ETHPy150Open openstack/solum/solum/api/handlers/workflow_handler.py WorkflowHandler._execute_workflow_actions/VarMisuse@176/247 `commit_sha`->`run_cmd`