Clone Clone
Clone Certified

yaml
type: "io.kestra.plugin.git.Clone"
yaml
id: git_clone
namespace: company.team

tasks:
  - id: wdir
    type: io.kestra.plugin.core.flow.WorkingDirectory
    tasks:
      - id: clone
          type: io.kestra.plugin.git.Clone
          url: https://github.com/kestra-io/blueprints
          branch: main

yaml
id: git_clone
namespace: company.team

tasks:
  - id: wdir
    type: io.kestra.plugin.core.flow.WorkingDirectory
    tasks:
      - id: clone
        type: io.kestra.plugin.git.Clone
        url: https://github.com/kestra-io/blueprints
        branch: main
        username: git_username
        password: "{{ secret('GITHUB_ACCESS_TOKEN') }}"

yaml
id: git_clone
namespace: company.team

tasks:
 - id: wdir
    type: io.kestra.plugin.core.flow.WorkingDirectory
    tasks:
      - id: clone
        type: io.kestra.plugin.git.Clone
        url: git@github.com:kestra-io/kestra.git
        directory: kestra
        privateKey: "{{ secret('SSH_PRIVATE_KEY') }}"
        passphrase: "{{ secret('SSH_PASSPHRASE') }}"

yaml
id: git_python
namespace: company.team

tasks:
  - id: file_system
    type: io.kestra.plugin.core.flow.WorkingDirectory
    tasks:
      - id: clone_repository
        type: io.kestra.plugin.git.Clone
        url: https://github.com/kestra-io/examples
        branch: main
      - id: python_etl
        type: io.kestra.plugin.scripts.python.Commands
        dependencies:
          - requests
          - pandas
        commands:
          - python examples/scripts/etl_script.py

yaml
id: git_clone_commit
namespace: company.team

tasks:
  - id: clone_at_sha
    type: io.kestra.plugin.git.Clone
    url: https://github.com/kestra-io/kestra
    commit: 98189392a2a4ea0b1a951cd9dbbfe72f0193d77b
Properties
Default10000
Default1
Default60000