Skip to content

Show Paths in CSV output file for Query #856

Answered by aibaars
akanksha1131 asked this question in Q&A
Discussion options

You must be logged in to vote

That is currently not possible. As far as I know the only format that includes the flows paths is SARIF. You could write a script that extracts the paths and alert information from SARIF and writes it in CSV format. SARIF is json-based, so it is fairly easy to parse using standard json libraries and tools.

Alternatively, you could use codeql bqrs decode --format=csv --result-set=edges to get all the edges of the flow graph in CSV format (use --result-set=nodes to get the nodes). Note that this gives you all the graph data. You would need to "walk" the graph to create a collection of sample paths.

Replies: 1 comment

Comment options

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