{"id":23263655,"url":"https://github.com/danielbayley/mirror-action","last_synced_at":"2026-04-28T08:04:37.191Z","repository":{"id":65159431,"uuid":"459753367","full_name":"danielbayley/mirror-action","owner":"danielbayley","description":"GitHub @actions to easily copy files between repositories.","archived":false,"fork":false,"pushed_at":"2022-09-28T16:40:32.000Z","size":4,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-15T17:26:28.774Z","etag":null,"topics":["action","actions","copy","github-action","github-actions","mirror","sync"],"latest_commit_sha":null,"homepage":"https://github.com/marketplace/actions/mirror-files-action","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/danielbayley.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"danielbayley","custom":["https://paypal.me/danieljbayley","BTC 37rdZq4muDVNJh6jCr4XDXf8X2EFKjL3QQ","ETH 0x6248B4349e633969376dA20F9C8577530062BE64"]}},"created_at":"2022-02-15T21:19:37.000Z","updated_at":"2023-12-17T22:48:05.000Z","dependencies_parsed_at":"2023-01-05T04:53:30.036Z","dependency_job_id":null,"html_url":"https://github.com/danielbayley/mirror-action","commit_stats":{"total_commits":1,"total_committers":1,"mean_commits":1.0,"dds":0.0,"last_synced_commit":"38648652ca9200378e7994e86eb12a4c58b097e9"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/danielbayley/mirror-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielbayley%2Fmirror-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielbayley%2Fmirror-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielbayley%2Fmirror-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielbayley%2Fmirror-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danielbayley","download_url":"https://codeload.github.com/danielbayley/mirror-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielbayley%2Fmirror-action/sbom","scorecard":{"id":319360,"data":{"date":"2025-08-11","repo":{"name":"github.com/danielbayley/mirror-action","commit":"38648652ca9200378e7994e86eb12a4c58b097e9"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/1 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.md:0","Info: FSF or OSI recognized license: MIT License: LICENSE.md:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}}]},"last_synced_at":"2025-08-18T00:59:43.494Z","repository_id":65159431,"created_at":"2025-08-18T00:59:43.494Z","updated_at":"2025-08-18T00:59:43.494Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32371693,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-27T20:07:02.737Z","status":"online","status_checked_at":"2026-04-28T02:00:07.250Z","response_time":56,"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":["action","actions","copy","github-action","github-actions","mirror","sync"],"created_at":"2024-12-19T14:19:38.040Z","updated_at":"2026-04-28T08:04:37.121Z","avatar_url":"https://github.com/danielbayley.png","language":"Shell","funding_links":["https://github.com/sponsors/danielbayley","https://paypal.me/danieljbayley","BTC 37rdZq4muDVNJh6jCr4XDXf8X2EFKjL3QQ","ETH 0x6248B4349e633969376dA20F9C8577530062BE64"],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"icon.svg\" width=\"15%\" align=\"left\"\u003e\n\nMirror\n======\nGitHub [Action] to easily mirror* files between repositories.\n\n\\* This action uses [`rsync`] over [`cp`] to easily preserve folder structure. `runs-on: macos-latest`.\n\nUsage\n----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\n| [Input]               | Required | Default                                               | Description                                                                                                       |\n|:----------------------|:--------:|:------------------------------------------------------|:------------------------------------------------------------------------------------------------------------------|\n| `git_author_name`     |  false   | [`github.actor`][github]                              | `GIT_AUTHOR_NAME` [environment variable].                                                                         |\n| `git_author_email`    |  false   | [`github.event.pusher`][webhook]`.email`              | `GIT_AUTHOR_EMAIL`                                                                                                |\n| `git_committer_name`  |  false   | [`inputs`]`.git_author_name`                          | `GIT_COMMITTER_NAME`                                                                                              |\n| `git_committer_email` |  false   | `inputs.git_author_email`                             | `GIT_COMMITTER_DATE`                                                                                              |\n| `github_token`        |          | [`env`]`.GITHUB_TOKEN`                                | Required unless `env.GITHUB_TOKEN` is set. [Generate] an [access token], then add to your repository [`secrets`]. |\n| `source_files`        |   true   |                                                       | Specify an [[extended]] [glob pattern] of matching files to mirror.                                               |\n| `source_repo`         |  false   | [`github.repository`][github]                         | Optionally specify a different repository source to copy files from.                                              |\n| `target_repo`         |   true   |                                                       | Specify the target repository. The owner will match the source repo if only the name is given.                    |\n| `target_path`         |  false   |                                                       | Optionally specify a different target file path other than the repository root.                                   |\n| `source_branch`       |  false   | [`main`]                                              | Optionally specify a source `branch` of your repository.                                                          |\n| `target_branch`       |  false   | `main`                                                | Optionally specify a target `branch` of the target repo.                                                          |\n| `branch`              |  false   | `main`                                                | Specify if both branches are the same, but differ from the default.                                               |\n| `commit_message`      |  false   | Mirror `inputs.source_files` from `github.repository` | The `git commit -`[`-m`]`essage` to appear on the target repository.                                              |\n\nExample\n-------\n~~~ yaml\nname: Mirror\non:\n  push:\n    paths:\n    - .github/hooks/*\n\njobs:\n  Mirror:\n    runs-on: macos-latest\n    steps:\n    - name: ${{github.job}} files\n      uses: danielbayley/mirror-action@main\n      #env:\n        #GITHUB_TOKEN: ${{secrets.PERSONAL_ACCESS_TOKEN}}\n      with:\n        github_token: ${{secrets.PERSONAL_ACCESS_TOKEN}}\n        source_files: .github/hooks/*\n        target_repo: target/repo\n~~~\n\nLicense\n-------\n[MIT] © [Daniel Bayley]\n\n[MIT]:                  LICENSE.md\n[Daniel Bayley]:        https://github.com/danielbayley\n\n[action]:               https://docs.github.com/actions\n[input]:                https://docs.github.com/actions/creating-actions/metadata-syntax-for-github-actions#inputs\n[`inputs`]:             https://docs.github.com/actions/learn-github-actions/contexts#inputs-context\n[github]:               https://docs.github.com/actions/learn-github-actions/contexts#github-context\n[`secrets`]:            https://docs.github.com/actions/learn-github-actions/contexts#secrets-context\n[webhook]:              https://docs.github.com/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#webhook-payload-object-37\n[`env`]:                https://docs.github.com/actions/learn-github-actions/environment-variables\n\n[generate]:             https://github.com/settings/tokens\n[access token]:         https://docs.github.com/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token\n[`secrets`]:            https://docs.github.com/actions/security-guides/encrypted-secrets\n[`main`]:               https://github.com/github/renaming#readme\n\n[environment variable]: https://git-scm.com/book/en/Git-Internals-Environment-Variables\n\n[zsh]:                  https://zsh.org\n[glob pattern]:         https://globster.xyz\n[extended]:             https://zsh.sourceforge.io/Doc/Release/Options.html#index-brace-expansion_002c-extending\n\n[`rsync`]:              https://linuxize.com/post/how-to-use-rsync-for-local-and-remote-data-transfer-and-synchronization\n[`cp`]:                 https://linuxize.com/post/cp-command-in-linux\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielbayley%2Fmirror-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanielbayley%2Fmirror-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielbayley%2Fmirror-action/lists"}