{"id":13446255,"url":"https://github.com/gleich/gh_fsync","last_synced_at":"2026-01-12T08:00:13.136Z","repository":{"id":57541324,"uuid":"287057214","full_name":"gleich/gh_fsync","owner":"gleich","description":"🔄 GitHub action to sync files across repos in GitHub","archived":false,"fork":false,"pushed_at":"2025-01-04T21:44:50.000Z","size":162,"stargazers_count":20,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-15T00:39:54.395Z","etag":null,"topics":["file","gh-fsync","github-actions","sync-files"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":false,"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/gleich.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-08-12T16:01:30.000Z","updated_at":"2025-10-06T09:32:49.000Z","dependencies_parsed_at":"2023-02-02T19:02:04.277Z","dependency_job_id":null,"html_url":"https://github.com/gleich/gh_fsync","commit_stats":{"total_commits":109,"total_committers":4,"mean_commits":27.25,"dds":0.2660550458715596,"last_synced_commit":"34ae82d63ffb95c99cf81b2d4e57aa20d4765fba"},"previous_names":["matt-gleich/gh_fsync"],"tags_count":5,"template":false,"template_full_name":"gleich/go_template","purl":"pkg:github/gleich/gh_fsync","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gleich%2Fgh_fsync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gleich%2Fgh_fsync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gleich%2Fgh_fsync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gleich%2Fgh_fsync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gleich","download_url":"https://codeload.github.com/gleich/gh_fsync/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gleich%2Fgh_fsync/sbom","scorecard":{"id":429519,"data":{"date":"2025-08-11","repo":{"name":"github.com/gleich/gh_fsync","commit":"f99039e2bb234ca53d77a8ce2bce28e2a0c114e5"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.2,"checks":[{"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":"Code-Review","score":0,"reason":"Found 0/30 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":"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":"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":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","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":"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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/build.yml:1","Warn: no topLevel permission defined: .github/workflows/contributors.yml:1","Warn: no topLevel permission defined: .github/workflows/fsync.yml:1","Warn: no topLevel permission defined: .github/workflows/lint.yml:1","Warn: no topLevel permission defined: .github/workflows/release.yml:1","Warn: no topLevel permission defined: .github/workflows/test.yml:1","Info: no jobLevel write permissions found"],"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":"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"}},{"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":"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":"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":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:10: update your workflow using https://app.stepsecurity.io/secureworkflow/gleich/gh_fsync/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/gleich/gh_fsync/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/gleich/gh_fsync/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/gleich/gh_fsync/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:33: update your workflow using https://app.stepsecurity.io/secureworkflow/gleich/gh_fsync/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/contributors.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/gleich/gh_fsync/contributors.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/contributors.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/gleich/gh_fsync/contributors.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/fsync.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/gleich/gh_fsync/fsync.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/fsync.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/gleich/gh_fsync/fsync.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/lint.yml:10: update your workflow using https://app.stepsecurity.io/secureworkflow/gleich/gh_fsync/lint.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/lint.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/gleich/gh_fsync/lint.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/lint.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/gleich/gh_fsync/lint.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/lint.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/gleich/gh_fsync/lint.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/lint.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/gleich/gh_fsync/lint.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/lint.yml:29: update your workflow using https://app.stepsecurity.io/secureworkflow/gleich/gh_fsync/lint.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/lint.yml:33: update your workflow using https://app.stepsecurity.io/secureworkflow/gleich/gh_fsync/lint.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/lint.yml:37: update your workflow using https://app.stepsecurity.io/secureworkflow/gleich/gh_fsync/lint.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/lint.yml:41: update your workflow using https://app.stepsecurity.io/secureworkflow/gleich/gh_fsync/lint.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/lint.yml:47: update your workflow using https://app.stepsecurity.io/secureworkflow/gleich/gh_fsync/lint.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/gleich/gh_fsync/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:10: update your workflow using https://app.stepsecurity.io/secureworkflow/gleich/gh_fsync/test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/gleich/gh_fsync/test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/gleich/gh_fsync/test.yml/master?enable=pin","Warn: containerImage not pinned by hash: Dockerfile:1: pin your Docker image by updating mattgleich/gh_fsync:platform to mattgleich/gh_fsync:platform@sha256:5f56c67d2c49422b74f86acba6277942051621e2d75ef27cd25abfdea3ccf7b5","Warn: containerImage not pinned by hash: docker/dev.Dockerfile:1: pin your Docker image by updating golang:1.15 to golang:1.15@sha256:ea080cc817b02a946461d42c02891bf750e3916c52f7ea8187bccde8f312b59f","Warn: containerImage not pinned by hash: docker/dev.lint.Dockerfile:1: pin your Docker image by updating golangci/golangci-lint:v1.30.0 to golangci/golangci-lint:v1.30.0@sha256:44216a492340097de2cf6ebd177edbaf27e753455de070432dcc3105d40b92e8","Warn: containerImage not pinned by hash: docker/platform.Dockerfile:1","Warn: containerImage not pinned by hash: docker/platform.Dockerfile:18: pin your Docker image by updating alpine:latest to alpine:latest@sha256:4bcff63911fcb4448bd4fdacec207030997caf25e9bea4045fa6c8c44de311d1","Info:   0 out of  16 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   7 third-party GitHubAction dependencies pinned","Info:   0 out of   5 containerImage dependencies pinned","Info:   1 out of   1 goCommand dependencies pinned"],"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":"Vulnerabilities","score":8,"reason":"2 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2022-0493 / GHSA-p782-xgp4-8hr8","Warn: Project is vulnerable to: GO-2022-0603 / GHSA-hp87-p4gw-j4gq"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-19T02:59:39.506Z","repository_id":57541324,"created_at":"2025-08-19T02:59:39.506Z","updated_at":"2025-08-19T02:59:39.506Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28336957,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T06:09:07.588Z","status":"ssl_error","status_checked_at":"2026-01-12T06:05:18.301Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["file","gh-fsync","github-actions","sync-files"],"created_at":"2024-07-31T05:00:49.602Z","updated_at":"2026-01-12T08:00:12.879Z","avatar_url":"https://github.com/gleich.png","language":"Go","readme":"\u003c!-- DO NOT REMOVE - contributor_list:data:start:[\"gleich\"]:end --\u003e\n\n# gh_fsync ![Docker Pulls](https://img.shields.io/docker/pulls/mattgleich/gh_fsync)\n\n🔄 GitHub action to sync files across repos in GitHub\n\n![build](https://github.com/gleich/gh_fsync/workflows/build/badge.svg)\n![test](https://github.com/gleich/gh_fsync/workflows/test/badge.svg)\n![lint](https://github.com/gleich/gh_fsync/workflows/lint/badge.svg)\n![release](https://github.com/gleich/gh_fsync/workflows/release/badge.svg)\n\n## ❓ What is gh_fsync\n\ngh_fsync is a simple, configurable, and blazing fast way to sync files in your repository with files from another repository.\n\n## ⚙️ Configuration\n\nFirst create a file in one of the following locations inside of your repository:\n\n- `/fsync.yml`\n- `/fsync.yaml`\n- `/.fsync.yml`\n- `/.fsync.yaml`\n- `/.github/fsync.yml`\n- `/.github/fsync.yml`\n\nNow that you have your file lets go over the syntax.\n\n### 🌍 Global replace\n\nReplace certain text for all source files listed under the files section. Below is an example:\n\n```yaml\nreplace:\n  - before: project_name\n    after: gh_fsync\n```\n\n### 📁 Files\n\nList all of the files you want to sync. `path:` is the file path in your repo and `source:` is the URL on GitHub for the file. Below is an example:\n\n```yaml\nfiles:\n  - path: CONTRIBUTING.md\n    source: https://github.com/gleich/go_template/blob/master/CONTRIBUTING.md\n```\n\nYou can even replace values specific to a file. Below is an example:\n\n```yaml\nfiles:\n  - path: CONTRIBUTING.md\n    source: https://github.com/gleich/go_template/blob/master/CONTRIBUTING.md\n    replace:\n      - before: project_name\n        after: gh_fsync2\n```\n\nA file specific replace will override any global replace with the same `before`. So in the case shown below the replace of `project_name` for the `CONTRIBUTING.md` file will override the global replace defined before. If you would like to completely ignore the global replace for that file add `ignore_global_replace: true` to the file. This is optional and an example is shown down in the examples section.\n\n```yaml\nreplace:\n  - before: project_name\n    after: gh_fsync\nfiles:\n  - path: CONTRIBUTING.md\n    source: https://github.com/gleich/go_template/blob/master/CONTRIBUTING.md\n    replace:\n      - before: project_name\n        after: gh_fsync2\n```\n\n### 💬 Commit message\n\nDefine the commit message to use when updating the files. The default commit message is `Update via sync`. Below is an example\n\n```yaml\ncommit_message: 🔄 Update file via sync\n```\n\n### ✨ Example\n\n```yaml\ncommit_message: 🔄 Update file via sync\nreplace:\n  - before: project_name\n    after: gh_fsync\nfiles:\n  - path: CONTRIBUTING.md\n    source: https://github.com/gleich/go_template/blob/master/CONTRIBUTING.md\n    replace:\n      - before: project_name\n        after: gh_fsync2\n  - path: LICENSE.md\n    source: https://github.com/gleich/go_template/blob/master/LICENSE.md\n    ignore_global_replace: true\n    replace:\n      - before: author_name\n        after: Matthew Gleich\n```\n\n### 🤖 GitHub action\n\nUse the following for the GitHub action.\n\n```yaml\nname: gh_fsync\n\non:\n  push:\n    branches:\n      - master\n  schedule:\n    - cron: '*/30 * * * *' # Runs every 30 minutes\n\njobs:\n  file_sync:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Checkout Repository\n        uses: actions/checkout@v2\n      - name: gh_fsync\n        uses: gleich/gh_fsync@master\n```\n\nIf you want to sync files from the `.github` folder you need to to create a personal access token with the `read` and `workflows` permissions. Then set a secret for the repo with the value being the personal access token and the name being `PERSONAL_ACCESS_TOKEN`. Finally change your action file to the following:\n\n```yaml\nname: fsync\n\non:\n  push:\n    branches:\n      - master\n  schedule:\n    - cron: '*/30 * * * *' # Runs every 30 minutes\n\njobs:\n  file_sync:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Checkout Repository\n        uses: actions/checkout@v2\n        with:\n          token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}\n      - name: gh_fsync\n        uses: gleich/gh_fsync@master\n```\n\n## 🙌 Contributing\n\nBefore contributing please read the [CONTRIBUTING.md file](https://github.com/gleich/gh_fsync/blob/master/CONTRIBUTING.md)\n\n\u003c!-- DO NOT REMOVE - contributor_list:start --\u003e\n\n## 👥 Contributors\n\n- **[@gleich](https://github.com/gleich)**\n\n\u003c!-- DO NOT REMOVE - contributor_list:end --\u003e\n","funding_links":[],"categories":["GitHub Actions","Go"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgleich%2Fgh_fsync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgleich%2Fgh_fsync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgleich%2Fgh_fsync/lists"}