Java

Prerequisites

    Install CLI​
    Install Docker if not already present
      Version: 18.x or greater

Example

Run the following command from your project folder or specify the absolute path.
1
cdefense sast --lang=java --api-key=<YOUR_API_KEY> \
2
--path=/d/temp/java-goof/target --project-name="My Java Project"
Copied!
Note: For Java projects, the target folder must be pointing towards the .jar or .war folder location, since the SAST scan happens on .class files and not on the source code
Last modified 1mo ago
Copy link