Skip to content

Commit

Permalink
Further reduce permissions on tmp file
Browse files Browse the repository at this point in the history
  • Loading branch information
jessehouwing committed Apr 19, 2022
1 parent fa3cd7a commit 77bd8c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BuildTasks/Common/Common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function writeBuildTempFile(taskName: string, data: any): string {
const tempFile = tmp.tmpNameSync({ prefix: taskName, postfix: ".tmp", tmpdir: tempDir });

tl.debug(`Generating Build temp file: ${tempFile}`);
tl.writeFile(tempFile, data);
tl.writeFile(tempFile, data, { mode: 0o600, encoding: "utf8"} );

return tempFile;
}
Expand Down

0 comments on commit 77bd8c6

Please sign in to comment.