To install and work with the plugin, follow these steps.
Need a FREE JFrog environment in the cloud, so that IDEA can connect to it? Just run one of the following commands in your terminal. The commands will do the following.
curl -fL https://getcli.jfrog.io?setup | sh |
powershell "Start-Process -Wait -Verb RunAs powershell '-NoProfile iwr https://releases.jfrog.io/artifactory/jfrog-cli/v2-jf/[RELEASE]/jfrog-cli-windows-amd64/jf.exe -OutFile $env:SYSTEMROOT\system32\jf.exe'"; jf setup |
JFrog Xray version 1.7.2.3 or above is required |
Once the plugin is successfully installed, connect the plugin to your instance of the JFrog Platform.
|
After the JFrog Plugin is installed, a new JFrog panel is added at the bottom of the screen. Opening the JFrog panel displays two views - Local and CI.
The JFrog Plugin continuously scans your project's dependencies with JFrog Xray and displays this information under the Local View. The plugin currently supports Xray scanning of Maven, Gradle, Go and npm projects. It allows developers to view vulnerability information about the components and their dependencies. With this information, a developer can make an informed decision on whether to use a component or not before the code is pushed into the source control.
To allow your Python projects to be scanned, you first need to configure your Python SDK / Interpreter in IntelliJ IDEA or in PyCharm, depending on the IDE you're using. |
The view allows you to filter the scanned results according to the issues severity, licenses or dependencies' scopes.
When clicking on a vulnerability on the middle pane, the More Info page is updated with information about the vulnerability.
You can export all the data from the UI into a CSV file by clicking on the Export button.
The editor provides a quick view of the status of all the project dependencies. Clicking on the icon next to a dependency, will highlight the dependency in the tree view inside the JFrog panel.
When hovering above a dependency in the editor, the information about it is displayed.
You can right-click on a dependency in the tree view and choose Show in project descriptor. In Maven projects, you also have the option of excluding a transitive dependency from the pom.xml
, by right-clicking on the dependency in the tree and selecting Exclude dependency.
If you configured IDEA to show vulnerabilities according to a JFrog Project or Watches, you have the option of cresting Ignore Rules for specific vulnerabilities.
To configure IntelliJ IDEA to reflect the Security Policies required by your organization, follow these steps.
The JFrog IDEA Plugin allows you to view information about your builds directly from your CI system. This allows developers to keep track of the status of their code, while it is being built, tested and scanned as part of the CI pipeline, regardless of the CI provider used.
This information can be viewed inside IntelliJ IDEA, from the JFrog Panel, under the CI tab.
The following details can be made available in the CI view.
The CI information displayed in IDEA is pulled by the JFrog IDEA Plugin directly from JFrog Artifactory. This information is stored in Artifactory as part of the build-info, which is published to Artifactory by the CI server. Read more about build-info in the Build Integration documentation page. If the CI pipeline is also configured to scan the build-info by JFrog Xray, the JFrog IDEA Plugin will pull the results of the scan from JFrog Xray and display them in the CI view as well.
Set up your CI pipeline to expose information, so that it is visible in IDEA as described here.
Next, follow these steps.
The release notes are available here.
The JFrog Plugin uses the IntelliJ IDEA log files. By default, the log level used used by the plugin is INFO.
You have the option of increasing the log level to DEBUG. Here's how you do this:
#com.jfrog.ide.idea.log.Logger |
To see the Intellij IDEA log file, depends on the IDE version and OS as described here, go to Help | Show/reveal Log in Explorer/finder/Konqueror/Nautilus.
Please report issues by opening an issue on Github.
|
<iframe width="560" height="315" src="https://www.youtube.com/embed/Ca23EteyPeg" title="JFrog IntelliJ IDE Plugin: Security Right from the Developer IDE" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe> |