fix(git-import): explicitly specify ssh key and remove duplicate validation rules

- Add -i flag to explicitly specify ssh key path in git ls-remote operations
- Remove static $rules properties in favor of dynamic rules() method
- Fix test syntax error
This commit is contained in:
Andras Bacsai
2026-03-12 14:19:53 +01:00
parent 0991f8e2ca
commit aac34f1d14
4 changed files with 1 additions and 22 deletions
@@ -57,16 +57,6 @@ class GithubPrivateRepositoryDeployKey extends Component
private ?string $git_repository = null;
protected $rules = [
'repository_url' => ['required', 'string'],
'branch' => ['required', 'string'],
'port' => 'required|numeric',
'is_static' => 'required|boolean',
'publish_directory' => 'nullable|string',
'build_pack' => 'required|string',
'docker_compose_location' => \App\Support\ValidationPatterns::filePathRules(),
];
protected function rules()
{
return [