Skip to content

Commit

Permalink
Store diagnostics in a codeql-action directory
Browse files Browse the repository at this point in the history
  • Loading branch information
mbg committed Oct 5, 2023
1 parent eb71a60 commit 2b193c5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/diagnostics.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/diagnostics.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion src/diagnostics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,11 @@ export function makeDiagnostic(
*/
export function addDiagnostic(config: Config, diagnostic: DiagnosticMessage) {
const logger = getActionsLogger();
const diagnosticsPath = path.resolve(config.dbLocation, "diagnostic");
const diagnosticsPath = path.resolve(
config.dbLocation,
"diagnostic",
"codeql-action",
);
const jsonPath = path.resolve(
diagnosticsPath,
`codeql-action-${diagnostic.timestamp}.json`,
Expand Down

0 comments on commit 2b193c5

Please sign in to comment.