Show Paths in CSV output file for Query #856
-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
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 |
Beta Was this translation helpful? Give feedback.
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 theedges
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.