Fix writing diagnostics on Windows
Remove colons from the generated filename so it is valid on Windows.
This commit is contained in:
parent
5c681efc3f
commit
e5a65875f9
3 changed files with 6 additions and 3 deletions
|
|
@ -145,7 +145,8 @@ function writeDiagnostic(
|
|||
|
||||
const jsonPath = path.resolve(
|
||||
diagnosticsPath,
|
||||
`codeql-action-${diagnostic.timestamp}.json`,
|
||||
// Remove colons from the timestamp as these are not allowed in Windows filenames.
|
||||
`codeql-action-${diagnostic.timestamp.replaceAll(":", "")}.json`,
|
||||
);
|
||||
|
||||
writeFileSync(jsonPath, JSON.stringify(diagnostic));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue