File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 5858 OUTPUT=" /opt/results"
5959fi
6060
61- if [ -z $NUMBER_OF_THREADS ]
61+ if [ -z $THREADS ]
6262then
63- NUMBER_OF_THREADS =" 0"
63+ THREADS =" 0"
6464fi
6565
6666DB=$OUTPUT /codeql-db
6767
68- # Set NUMBER_OF_THREADS
68+ # Set THREADS
6969
7070# Show execution information
7171echo " ----------------"
8585
8686# Functions
8787create_database () {
88- print_green " Creating DB: codeql database create --language=$LANGUAGE $DB -s $SRC $OVERWRITE_FLAG "
89- codeql database create --threads=$NUMBER_OF_THREADS --language=$LANGUAGE $DB -s $SRC $OVERWRITE_FLAG
88+ print_green " Creating DB: codeql database create --threads= $THREADS -- language=$LANGUAGE $DB -s $SRC $OVERWRITE_FLAG "
89+ codeql database create --threads=$THREADS --language=$LANGUAGE $DB -s $SRC $OVERWRITE_FLAG
9090}
9191
9292scan () {
93- print_green " Start Scanning: codeql database analyze --format=$FORMAT --output=$OUTPUT /issues.$FORMAT $DB $QS "
94- codeql database analyze --format=$FORMAT --threads=$NUMBER_OF_THREADS --output=$OUTPUT /issues.$FORMAT $DB $QS
93+ print_green " Start Scanning: codeql database analyze --format=$FORMAT --threads= $THREADS $SAVE_CACHE_FLAG -- output=$OUTPUT /issues.$FORMAT $DB $QS "
94+ codeql database analyze --format=$FORMAT --threads=$THREADS $SAVE_CACHE_FLAG --output=$OUTPUT /issues.$FORMAT $DB $QS
9595}
9696
9797convert_sarif_to_sast () {
You can’t perform that action at this time.
0 commit comments