Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def tasks(kind_name):
root_path = mozpath.join(self.topsrcdir, 'taskcluster', 'ci')
graph_config = load_graph_config(root_path)
tasks = Kind.load(root_path, graph_config, kind_name).load_tasks(params, {})
return {
task.task['metadata']['name']: task
for task in tasks
}