Skip to content

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

Answered by rdmarsh2
Zhao-shenghao asked this question in General
Discussion options

You must be logged in to vote

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.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by xcorail
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants