CreateCodeScoringProject — creates a new project in CodeScoring. The action uses the CodeScoring API to register a project with the specified parameters:

  • project name
  • repository URL
  • VCS ID
  • option to automatically run SCA analysis after cloning the repository

Request example

name: example-project
repository: https://gitlab.example.com/group/project.git
vcs_id: 2
run_sca_after_clone: true

Request specification

NameRequiredDescription
nameYesProject name in CodeScoring
repositoryYesRepository URL (e.g., https://gitlab.example.com/group/project.git)
vcs_idYesVCS ID in CodeScoring (must be greater than 0)
run_sca_after_cloneNoAutomatically run SCA analysis after cloning the repository

Response

The response contains the created project object with the following information: project identifier (pk), name, project type, description, repository information, project status, access permissions, license, number of dependencies and vulnerabilities, project languages, scan schedule status, and the dates of the first and last SCA scans.