Auto-register project

Updated at:
Copy as MD

Auto-register project lets you add Code Security command-line interface (CLI) calls to the pipelines of products such as GitLab, Jenkins, and Alibaba Cloud DevOps to automatically connect to Code Security and trigger scans. When code is committed or a merge request is created, the pipeline automatically runs a security scan, helping teams identify and fix security issues before code is merged, without manually uploading code archives.

Integration methods

Select the topic that matches your code hosting and continuous integration platform:

Platform

Description

References

GitLab

Integrates Code Security scanning into your GitLab CI/CD workflow. When code is pushed to the default branch or a Merge Request (MR) is created, a scan runs automatically and the results are posted as a comment on the MR page.

Register with GitLab

Jenkins

Calls codesec-cli in a Jenkins Pipeline to run incremental gating scans on merge requests and full baseline scans on the main branch. Scan results can be posted as merge request comments and viewed in the Code Security console.

Register with Jenkins

If your code is not hosted in a Git repository, or you need only a one-time or ad-hoc scan, see Manual upload scan.