Skip to content

Can I import the output result into a txt file? How to do it? #164

Answered
38d ago
· 1 reply
Copy link

@Zhao-shenghao Zhao-shenghao

Can I import the output result into a txt or else file? How to do it?
1

Replies

Answer selected by xcorail

@rdmarsh2 rdmarsh2
Collaborator

There isn't currently a way to do that through VS Code directly (but there's a related open issue: github/vscode-codeql#439). What you can do currently is look through the CodeQL extension log in the output pane, and find the last call to bqrs interpret, which will have paths to a JSON-formatted SARIF file (ending in .sarif) and a binary query results file (ending in .bqrs). The SARIF file is human readable, and extensions to view it directly in the problems view are available for VS Code and Visual Studio. You can also use codeql bqrs interpret to convert a bqrs file into a CSV, but that won't have path information included.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants
Beta
You can’t perform that action at this time.