Build script permissions issue

I've been happily using my bash-based build script for years, and then suddenly with no changes to it, all the sed commands in it started throwing errors as if sed didn't have the proper permissions to create its temp files. For example, the command:
sed -i "1,4d" dynamic-page-loader.tsv

returns this error in the build logs:
sed: preserving permissions for ‘./sedjZDkwD’: Permission denied

Anyone seen anything like this before? Btw, I tried created a temp folder within my build folder to see if that would help, but it didn't.
Was this page helpful?