Skip to content

Commit 60be156

Browse files
committed
ci: update tmp file permission
1 parent c9907e2 commit 60be156

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

builder.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ console.log('Collected', DomainsList.size, 'unique domains from IAB Sellers.json
8181

8282
const IndexFilePath = `./sources/src/#generated-${crypto.randomUUID()}.ts`
8383
Fs.copyFileSync('./sources/src/index.ts', IndexFilePath)
84+
Fs.chmodSync(IndexFilePath, 700)
8485
const Project = new TsMorph.Project({ tsConfigFilePath: './tsconfig.json' })
8586
const IndexFile = Project.getSourceFileOrThrow(IndexFilePath)
8687
const TargetedDomainsArray = IndexFile.getVariableDeclaration('TargetedDomains').getInitializerIfKindOrThrow(TsMorph.SyntaxKind.ArrayLiteralExpression)
@@ -103,7 +104,7 @@ for (const Line of Fs.readFileSync(HeaderLocation, 'utf-8').split('\n')) {
103104
}
104105
console.log('Generated header with userscript name and version')
105106
let AttachHeaderPath = `/tmp/${crypto.randomUUID()}`
106-
Fs.writeFileSync(AttachHeaderPath, ConvertedHeader, 'utf-8')
107+
Fs.writeFileSync(AttachHeaderPath, ConvertedHeader, { encoding: 'utf-8', mode: 700 })
107108
console.log('Written temporary header file to:', AttachHeaderPath)
108109
await ESBuild.build({
109110
entryPoints: [IndexFilePath],

0 commit comments

Comments
 (0)