Use code scanning
Flow provides built-in code scanning capabilities, which you can enable by adding a code scanning task to a pipeline.
You can add a code scanning task in the following ways:
-
Create a new pipeline from a template that includes the code scanning task.
-
In an existing pipeline, add a new task and select the code scanning task.
Create a pipeline from a template
When creating a new pipeline, select a programming language and browse the Alibaba Cloud DevOps preset pipeline templates. To quickly start using code scanning, choose a template that contains a code scanning node.
For example, on the visual orchestration tab, select Java and then choose the Java · Test and Build template. This template includes a Java code scan step.
Orchestrate a pipeline and add a code scan
In pipeline orchestration, you can quickly add a code scanning task by selecting it when adding a new task.
Available code scanning tasks include: Java code scan, Java security scan, JavaScript code scan, Python code scan, source code vulnerability detection, Python dependency security scan, Python code security scan, Codeup code scan, Go code scan, TSLint code scan, and Android code scan.