Port of #3357: Fix/insecure tempfile (#3360)
Port of #3357: Fix/insecure tempfile (#3360)

* Replaced insecure tempfile.mktemp() with tempfile.mkstemp()
Co-authored-by: whokilleddb <11fcb6aa20f1226678e8cc5cbdf8f29f94b4a6a8@gmail.com>
wandb/client,wandb/client,wandb/client