Skip to content

Commit

Permalink
test(logger): restrict temp file permissions (#5128)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs committed Oct 29, 2023
1 parent e4d4a21 commit f40c98a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/logger/instantiation.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,8 @@ t.test('logger instantiation', (t) => {
]

const { file, cleanup } = createTempFile(t)
if (process.env.CITGM) { fs.writeFileSync(file, '') }
// 0600 permissions (read/write for owner only)
if (process.env.CITGM) { fs.writeFileSync(file, '', { mode: 0o600 }) }

const fastify = Fastify({
logger: { file }
Expand Down

0 comments on commit f40c98a

Please sign in to comment.