** Run MRVA from command line
This commit is contained in:
committed by
=Michael Hohn
parent
edb9714b37
commit
8b076cfd53
40
README.org
40
README.org
@@ -125,3 +125,43 @@
|
||||
#+end_src
|
||||
|
||||
|
||||
|
||||
** Run MRVA from command line
|
||||
1. Set up the configuration
|
||||
#+BEGIN_SRC sh
|
||||
cd ~/local/gh-mrva
|
||||
|
||||
cat > ~/.config/gh-mrva/config.yml <<eof
|
||||
# The following options are supported
|
||||
# codeql_path: Path to CodeQL distribution (checkout of codeql repo)
|
||||
# controller: NWO of the MRVA controller to use
|
||||
# list_file: Path to the JSON file containing the target repos
|
||||
|
||||
# git checkout codeql-cli/v2.15.5
|
||||
codeql_path: /Users/hohn/local/codeql-lib
|
||||
controller: hohn/mirva-controller
|
||||
list_file: /Users/hohn/local/gh-mrva/databases.json
|
||||
|
||||
eof
|
||||
#+END_SRC
|
||||
|
||||
2. Submit the mrva job
|
||||
#+BEGIN_SRC sh
|
||||
gh mrva submit --help
|
||||
|
||||
gh mrva submit --language cpp --session mirva-session-1 \
|
||||
--list mirva-list \
|
||||
--query /Users/hohn/local/gh-mrva/FlatBuffersFunc.ql
|
||||
#+END_SRC
|
||||
|
||||
3. Check the status and download the sarif files
|
||||
#+BEGIN_SRC sh
|
||||
cd ~/local/gh-mrva
|
||||
|
||||
# Check the status
|
||||
gh mrva status --session mirva-session-1
|
||||
|
||||
# Download the sarif files when finished
|
||||
gh mrva download --session mirva-session-1 \
|
||||
--output-dir mirva-session-1-sarif
|
||||
#+END_SRC
|
||||
|
||||
Reference in New Issue
Block a user