Files
codeql-lab/codeql-jedis/README.org

1.8 KiB

Jedis Codeql Setup

  • fork at https://github.com/hohn/jedis
  • github db build: enable code scanning, advanced config

  • local db build:

      cd ~/work-gh/codeql-lab/
    
      # Add the submodule
      git submodule add https://github.com/hohn/jedis extern/jedis
    
      # Initialize and clone the submodule
      git submodule update --init --recursive
    
    
      # Build directly once to resolve any errors
      cd ~/work-gh/codeql-lab/extern/jedis
      mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
    
      # Build under codeql
      # Step 1: Clean any prior Maven builds
      cd ~/work-gh/codeql-lab/extern/jedis
      mvn clean
    
      # Step 2: Run CodeQL DB creation with mvn install
      cd ~/work-gh/codeql-lab
      codeql database create assets/jedis-db-local \
             --overwrite \
             --language=java \
             --command="mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V" \
             --source-root=extern/jedis