View raw sarif with =jq= and fzf

This commit is contained in:
Michael Hohn
2023-06-20 17:50:29 -07:00
committed by =Michael Hohn
parent 25984a70ef
commit 60e7e04d8a

View File

@@ -443,17 +443,25 @@
| cpp/buffer_overflow | | cpp/buffer_overflow |
| cpp/use_after_free | | cpp/use_after_free |
*** TODO View raw sarif with =jq= and fzf *** View raw sarif with =jq= and fzf
Install the fuzzy finder Install the fuzzy finder
: brew install fzf : brew install fzf
or =apt-get=/=yum= on linux or =apt-get=/=yum= on linux
XX: echo '' | fzf --print-query --preview='jq {q} < results.sarif' Try working to =.runs[0].tool.driver.rules= and follow the output in real
time.
#+BEGIN_SRC sh
pushd ~/local/codeql-cli-end-to-end/codeql-workshop-vulnerable-linux-driver
res=e402cf5-UseAfterFree.sarif
echo '' | fzf --print-query --preview="jq {q} < $res"
popd
#+END_SRC
*** TODO sarif-cli *** TODO sarif-cli
**** TODO dump **** TODO Install
**** TODO sql conversion **** TODO Dump
**** TODO SQL conversion
** Running sequence ** Running sequence
*** Smallest query suite (security suite). *** Smallest query suite (security suite).
*** Check results. *** Check results.