exports / include updates

This commit is contained in:
Michael Hohn
2023-06-21 10:13:00 -07:00
committed by =Michael Hohn
parent 2d168f8822
commit d319d25dc6

View File

@@ -357,7 +357,7 @@
#+RESULTS: #+RESULTS:
: /Users/hohn/local/codeql-cli-end-to-end/codeql-workshop-vulnerable-linux-driver/solutions/UseAfterFree.ql : /Users/hohn/local/codeql-cli-end-to-end/codeql-workshop-vulnerable-linux-driver/solutions/UseAfterFree.ql
#+INCLUDE: "./custom-suite-1.qls" src yaml #+INCLUDE: "../custom-suite-1.qls" src yaml
**** TODO Include versioning: **** TODO Include versioning:
***** TODO codeql cli ***** TODO codeql cli
@@ -417,34 +417,36 @@
*** View raw sarif with =jq= *** View raw sarif with =jq=
List the SARIF files again List the SARIF files again
#+BEGIN_SRC sh #+BEGIN_SRC sh :exports both :results output
cd ~/local/codeql-cli-end-to-end cd ~/local/codeql-cli-end-to-end
find . -maxdepth 2 -name "*.sarif" find . -maxdepth 2 -name "*.sarif"
#+END_SRC #+END_SRC
#+RESULTS: #+RESULTS:
| ./codeql-workshop-vulnerable-linux-driver/e402cf5.sarif | : ./codeql-workshop-vulnerable-linux-driver/e402cf5.sarif
| ./codeql-workshop-vulnerable-linux-driver/e402cf5-UseAfterFree.sarif | : ./codeql-workshop-vulnerable-linux-driver/d548189.sarif
| ./codeql-workshop-vulnerable-linux-driver/e402cf5-BufferOverflow.sarif | : ./codeql-workshop-vulnerable-linux-driver/d548189-BufferOverflow.sarif
: ./codeql-workshop-vulnerable-linux-driver/e402cf5-UseAfterFree.sarif
: ./codeql-workshop-vulnerable-linux-driver/e402cf5-BufferOverflow.sarif
The CodeQL version The CodeQL version
#+BEGIN_SRC sh :exports both #+BEGIN_SRC sh :exports both :results output
cd ~/local/codeql-cli-end-to-end cd ~/local/codeql-cli-end-to-end
jq '.runs | .[0] | .tool.driver.semanticVersion ' < ./codeql-workshop-vulnerable-linux-driver/e402cf5.sarif jq '.runs | .[0] | .tool.driver.semanticVersion ' < ./codeql-workshop-vulnerable-linux-driver/e402cf5.sarif
#+END_SRC #+END_SRC
#+RESULTS: #+RESULTS:
: 2.13.4 : "2.13.4"
The names of rules processed The names of rules processed
#+BEGIN_SRC sh :exports both #+BEGIN_SRC sh :exports both :results output
cd ~/local/codeql-cli-end-to-end cd ~/local/codeql-cli-end-to-end
jq '.runs | .[] | .tool.driver.rules | .[] | .name ' < ./codeql-workshop-vulnerable-linux-driver/d548189.sarif jq '.runs | .[] | .tool.driver.rules | .[] | .name ' < ./codeql-workshop-vulnerable-linux-driver/d548189.sarif
#+END_SRC #+END_SRC
#+RESULTS: #+RESULTS:
| cpp/buffer_overflow | : "cpp/buffer_overflow"
| cpp/use_after_free | : "cpp/use_after_free"
*** View raw sarif with =jq= and fzf *** View raw sarif with =jq= and fzf
Install the fuzzy finder Install the fuzzy finder