renan-alm/GitHub Repo Sync
⤵️ Sync repository with remote (GitHub, GitLab, Gitea, Gerrit, and more)
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| source_repo | GitHub public repo slug or full https clone url (with access_token if needed). Supports GitHub, GitLab, Gitea, Gerrit, etc. | yes | — |
| source_branch | Branch name to sync from | yes | — |
| destination_repo | Destination repo full https clone url. For Gerrit repositories, the action automatically uses refs/for/* for review queue pushes | yes | — |
| destination_branch | Branch name to sync to in this repo | yes | — |
| sync_tags | Should tags also be synced (true/false or regex pattern) | no | — |
| source_token | Optional token for accessing source repo | no | — |
| sync_all_branches | Sync all branches from source repo (true/false) | no | — |
| use_main_as_fallback | If specified branch not found, try main or master as fallback (default true) | no | — |
| github_app_id | GitHub App ID (required if not using github_token) | no | — |
| github_app_private_key | GitHub App private key (required if not using github_token) | no | — |
| github_app_installation_id | GitHub App installation ID (required if not using github_token) | no | — |
| github_token | GitHub Personal Access Token for destination repo. Used for both source and destination if source_token not provided. Alternative to github_app_* | no | — |
| destination_token | GitHub Personal Access Token (PAT) for destination repo authentication. Use when destination uses HTTPS and different token than github_token. If source_token is provided, destination_token is required | no | — |
| ssh_key | SSH private key content for SSH-based authentication. Can be raw key, escaped key (\\n), or base64 encoded | no | — |
| ssh_key_path | Path to SSH private key file (alternative to ssh_key) | no | — |
| ssh_passphrase | Passphrase for encrypted SSH private key | no | — |
| ssh_known_hosts_path | Path to custom SSH known_hosts file | no | — |
| ssh_strict_host_key_checking | Enable strict SSH host key checking (default true) | no | — |
Outputs
no outputs