Show Paths in CSV output file for Query #856
Answered
by
aibaars
akanksha1131
asked this question in
Q&A
-
Beta Was this translation helpful? Give feedback.
Answered by
aibaars
Nov 20, 2024
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.
0 replies
Answer selected by
akanksha1131
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to 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
codeql bqrs decode --format=csv --result-set=edgesto get all theedgesof the flow graph in CSV format (use--result-set=nodesto 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.