@google-github-actions/actions-utils
@google-github-actions/actions-utils / fs / writeSecureFile
writeSecureFile<
T>(outputPath,data,options?):Promise<T>
Defined in: fs.ts:68
writeSecureFile writes a file to disk with 0600 permissions and locks the file during writing.
T extends PathLike
T
Path in which to create the secure file.
Data to write to file.
string | Buffer<ArrayBufferLike>
ObjectEncodingOptions & object
additional options to pass to writeFile. The default options are permissions of 0600, write-exclusive, and flush-on-success.
Promise<T>
Path to written file.