Skip to main content

Import Git

POST 

/projects/import-git

Clone a git repo into dest_dir and scan the result as a project.

Security (contract §7):

  • URL scheme must be in the allow-list (http/https/file/git@).
  • dest_dir must not escape its parent (containment check).
  • git clone runs as a subprocess with a timeout.

Side effects: Creates the clone on disk. Raises: ConfigError → 400 on bad scheme/containment; GitError on clone failure.

Request

Responses

Successful Response