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_dirmust not escape its parent (containment check).git cloneruns 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
- 200
- 422
Successful Response
Validation Error