in scripts/store-agent-creds.py [0:0]
def make_runner_dir(version):
"""Extract the runner tar to a temporary directory"""
dir = tempfile.TemporaryDirectory()
tar = _get_runner_tar(version)
subprocess.check_call(
["tar", "-xzf", tar],
cwd=dir.name,
)
return dir