File tree Expand file tree Collapse file tree
extensions/ql-vscode/src/remote-queries Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,11 +3,10 @@ import { Credentials } from '../authentication';
33import { Logger } from '../logging' ;
44import { downloadArtifactFromLink } from './gh-actions-api-client' ;
55import * as path from 'path' ;
6- import * as fs from 'fs-extra' ;
76import { AnalysisSummary } from './shared/remote-query-result' ;
8- import * as sarif from 'sarif' ;
97import { AnalysisResults , QueryResult } from './shared/analysis-result' ;
108import { UserCancellationException } from '../commandRunner' ;
9+ import { sarifParser } from '../sarif-parser' ;
1110
1211export class AnalysesResultsManager {
1312 // Store for the results of various analyses for a single remote query.
@@ -92,8 +91,7 @@ export class AnalysesResultsManager {
9291 private async readResults ( filePath : string ) : Promise < QueryResult [ ] > {
9392 const queryResults : QueryResult [ ] = [ ] ;
9493
95- const sarifContents = await fs . readFile ( filePath , 'utf8' ) ;
96- const sarifLog = JSON . parse ( sarifContents ) as sarif . Log ;
94+ const sarifLog = await sarifParser ( filePath ) ;
9795
9896 // Read the sarif file and extract information that we want to display
9997 // in the UI. For now we're only getting the message texts but we'll gradually
You can’t perform that action at this time.
0 commit comments