{"id":28470670,"url":"https://github.com/mysociety/action-git-pusher","last_synced_at":"2025-09-13T00:42:10.791Z","repository":{"id":53911578,"uuid":"346411638","full_name":"mysociety/action-git-pusher","owner":"mysociety","description":"GithHub Action to push git things somewhere else","archived":false,"fork":false,"pushed_at":"2025-07-18T15:23:51.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-08-26T18:51:38.251Z","etag":null,"topics":["actions","git"],"latest_commit_sha":null,"homepage":"https://www.mysociety.org/","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mysociety.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-03-10T16:01:19.000Z","updated_at":"2025-07-18T15:23:26.000Z","dependencies_parsed_at":"2025-05-15T19:24:29.049Z","dependency_job_id":null,"html_url":"https://github.com/mysociety/action-git-pusher","commit_stats":{"total_commits":5,"total_committers":1,"mean_commits":5.0,"dds":0.0,"last_synced_commit":"371d8a77ace8a9cdf3014e8b8818b0cce9dec75d"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/mysociety/action-git-pusher","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mysociety%2Faction-git-pusher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mysociety%2Faction-git-pusher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mysociety%2Faction-git-pusher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mysociety%2Faction-git-pusher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mysociety","download_url":"https://codeload.github.com/mysociety/action-git-pusher/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mysociety%2Faction-git-pusher/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274902610,"owners_count":25371078,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-12T02:00:09.324Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["actions","git"],"created_at":"2025-06-07T10:03:55.965Z","updated_at":"2025-09-13T00:42:10.780Z","avatar_url":"https://github.com/mysociety.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Git Mirroring Action\n\n**This is being tested, and is subject to change**\n\nThis simple action can be used to push git objects to a secondary\nrepository.\n\nThere are other actions out there that do similar things, but none that\nquite meet our use-case.\n\nCurrently, this only supports pushing tags - trying to run this action\nwithout providing a `tag` input will generate an error.\n\nAs an example where this is being used with a tagging action where you\nwant to ensure the tag is pushed to another remote:\n\n```yaml\nname: Bump Tag\non:\n  push:\n    branches:\n      - master\n\njobs:\n  build:\n    runs-on: ubuntu-latest\n    steps:\n\n    - name: Checkout\n    - uses: actions/checkout@v2\n      with:\n        fetch-depth: '0'\n\n    - name: Bump tag\n      id: bump_tag\n      uses: anothrNick/github-tag-action@master\n      env:\n        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n        WITH_V: true\n\n    - name: Push Tag to mirror\n      id: push_to_mirror\n      uses: mysociety/action-git-pusher@v1.3.0\n      with:\n        git_ssh_key: ${{ secrets.SOME_GIT_KEY }}\n        ssh_known_hosts: ${{ secrets.SOME_KNOWN_HOSTS }}\n        tag: ${{ steps.bump_tag.outputs.new_tag }}\n        remote: 'ssh://username@git.example.com/path/to/repository.git'\n```\n\nTo add extra flags to the git push command, you can use the `extra_git_config` input.\n\n```yaml\n    - name: Test force pushing to mirror\n      id: push_to_mirror\n      uses: mysociety/action-git-pusher@v1.3.0\n      with:\n        git_ssh_key: ${{ secrets.SOME_GIT_KEY }}\n        ssh_known_hosts: ${{ secrets.SOME_KNOWN_HOSTS }}\n        tag: ${{ steps.bump_tag.outputs.new_tag }}\n        remote: 'ssh://username@git.example.com/path/to/repository.git'\n        extra_git_config: --force --dry-run\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmysociety%2Faction-git-pusher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmysociety%2Faction-git-pusher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmysociety%2Faction-git-pusher/lists"}