If I don't return and capture the file on line 168, then sometimes (not always), the temp file object gets garbage collected, the file is deleted, and the octokit calls start failing because the environment var doesn't point at anything. Sometimes I'll get a few successful octokit calls and then failures.

That's what I was trying to express in lines 213 and 214.