From d319d25dc63f824ae50aa19c13dc1fa4ad4119ba Mon Sep 17 00:00:00 2001 From: Michael Hohn Date: Wed, 21 Jun 2023 10:13:00 -0700 Subject: [PATCH] exports / include updates --- doc/readme.in | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/doc/readme.in b/doc/readme.in index da24b9e..32d3287 100644 --- a/doc/readme.in +++ b/doc/readme.in @@ -357,7 +357,7 @@ #+RESULTS: : /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 codeql cli @@ -417,34 +417,36 @@ *** View raw sarif with =jq= List the SARIF files again - #+BEGIN_SRC sh + #+BEGIN_SRC sh :exports both :results output cd ~/local/codeql-cli-end-to-end find . -maxdepth 2 -name "*.sarif" #+END_SRC #+RESULTS: - | ./codeql-workshop-vulnerable-linux-driver/e402cf5.sarif | - | ./codeql-workshop-vulnerable-linux-driver/e402cf5-UseAfterFree.sarif | - | ./codeql-workshop-vulnerable-linux-driver/e402cf5-BufferOverflow.sarif | + : ./codeql-workshop-vulnerable-linux-driver/e402cf5.sarif + : ./codeql-workshop-vulnerable-linux-driver/d548189.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 - #+BEGIN_SRC sh :exports both + #+BEGIN_SRC sh :exports both :results output cd ~/local/codeql-cli-end-to-end jq '.runs | .[0] | .tool.driver.semanticVersion ' < ./codeql-workshop-vulnerable-linux-driver/e402cf5.sarif #+END_SRC #+RESULTS: - : 2.13.4 + : "2.13.4" The names of rules processed - #+BEGIN_SRC sh :exports both + #+BEGIN_SRC sh :exports both :results output cd ~/local/codeql-cli-end-to-end jq '.runs | .[] | .tool.driver.rules | .[] | .name ' < ./codeql-workshop-vulnerable-linux-driver/d548189.sarif #+END_SRC #+RESULTS: - | cpp/buffer_overflow | - | cpp/use_after_free | + : "cpp/buffer_overflow" + : "cpp/use_after_free" *** View raw sarif with =jq= and fzf Install the fuzzy finder