roostorg/Mirror to Git Forge
Push all branches and tags from the current working directory to a remote git forge. Supports HTTPS (token) and SSH (private key) authentication. Call after actions/checkout with fetch-depth: 0.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| destination | Remote URL to push to. HTTPS (https://host/org/repo.git) uses token auth; SCP-style SSH (git@host:org/repo) or ssh:// uses key auth. Scheme is auto-detected. DO NOT EMBED CREDENTIALS in this URL. | yes | — |
| token | OAuth2 or personal access token for HTTPS destinations. Injected into the URL as the password; never echoed or stored in git config. | no | "" |
| token_username | Username injected into the HTTPS URL alongside the token. Default "oauth2" works for GitLab. Use the actual account username for Gitea, Forgejo, and Codeberg. | no | oauth2 |
| ssh_private_key | PEM private key (ED25519 or RSA) for SSH destinations. Written to a temporary file in RUNNER_TEMP with mode 0600 and deleted after the push. | no | "" |
| ssh_known_hosts | Known-hosts entries for the destination host (output of ssh-keyscan). Strongly recommended; omitting this falls back to ssh-keyscan at push time, which does not verify host identity (TOFU). | no | "" |
Outputs
no outputs