{"id":50187585,"url":"https://github.com/solubris/insync","last_synced_at":"2026-05-25T11:01:14.816Z","repository":{"id":41968227,"uuid":"402170736","full_name":"solubris/insync","owner":"solubris","description":"Keep files in sync","archived":false,"fork":false,"pushed_at":"2023-09-04T16:47:39.000Z","size":78,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-10-19T20:15:29.202Z","etag":null,"topics":["action","actions","github","github-action","github-actions","sync","workflow","workflows"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/solubris.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-09-01T18:54:10.000Z","updated_at":"2022-03-03T15:05:02.000Z","dependencies_parsed_at":"2023-01-19T07:00:59.355Z","dependency_job_id":null,"html_url":"https://github.com/solubris/insync","commit_stats":{"total_commits":158,"total_committers":2,"mean_commits":79.0,"dds":"0.025316455696202556","last_synced_commit":"a09f1ed96b7c34935795adf66505c56717a03e02"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/solubris/insync","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solubris%2Finsync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solubris%2Finsync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solubris%2Finsync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solubris%2Finsync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/solubris","download_url":"https://codeload.github.com/solubris/insync/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solubris%2Finsync/sbom","scorecard":{"id":837293,"data":{"date":"2025-08-11","repo":{"name":"github.com/solubris/insync","commit":"a09f1ed96b7c34935795adf66505c56717a03e02"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"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":"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":"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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/ci.yaml: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":"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":"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":"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/ci.yaml:129: update your workflow using https://app.stepsecurity.io/secureworkflow/solubris/insync/ci.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yaml:146: update your workflow using https://app.stepsecurity.io/secureworkflow/solubris/insync/ci.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yaml:8: update your workflow using https://app.stepsecurity.io/secureworkflow/solubris/insync/ci.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yaml:31: update your workflow using https://app.stepsecurity.io/secureworkflow/solubris/insync/ci.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yaml:48: update your workflow using https://app.stepsecurity.io/secureworkflow/solubris/insync/ci.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yaml:72: update your workflow using https://app.stepsecurity.io/secureworkflow/solubris/insync/ci.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yaml:105: update your workflow using https://app.stepsecurity.io/secureworkflow/solubris/insync/ci.yaml/master?enable=pin","Info:   0 out of   7 GitHub-owned GitHubAction 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":"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":"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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE: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 '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"}}]},"last_synced_at":"2025-08-23T19:26:56.982Z","repository_id":41968227,"created_at":"2025-08-23T19:26:56.982Z","updated_at":"2025-08-23T19:26:56.982Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33471530,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-25T06:32:55.349Z","status":"ssl_error","status_checked_at":"2026-05-25T06:32:35.322Z","response_time":57,"last_error":"SSL_read: 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":["action","actions","github","github-action","github-actions","sync","workflow","workflows"],"created_at":"2026-05-25T11:01:03.376Z","updated_at":"2026-05-25T11:01:14.809Z","avatar_url":"https://github.com/solubris.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"![CI workflow](https://github.com/solubris/insync/actions/workflows/ci.yaml/badge.svg)\n[![version](https://img.shields.io/github/v/release/solubris/insync)](https://img.shields.io/github/v/release/solubris/insync)\n\n# Sync files\n\nHelps keep files in sync between repositories by pushing changes in a src repo to a dest repo.\n\nNOTE: repo's don't have to be forks, can be completely disparate\n\n## Example action\n\nCreate the action in the source project:\n\n    .github/workflows/main.yml\n\nWith the contents:\n\n    on:\n      push:\n        branches: [master]\n    \n    jobs:\n      sync:\n        runs-on: ubuntu-latest\n        steps:\n          - id: sync\n            uses: solubris/insync@1.2.0\n            with:\n              repositories: the-dst-repo\n              token: ${{ secrets.TOKEN }}\n              files: |\n                .gitignore\n                .editorconfig\n\nNOTE: requires the token used to access the dest repo to be saved in the secrets in the source repo\nAlternatively, the secret could be saved at the organisation level\n\n# Future enhancements\n\n- user/email of source commit could be used for pushing to the dest repo - done\n- delete branch if job failed\n  - only do this if the branch wasn't already there\n- dont overwrite if dst file is newer\n  - this might add undue complexity\n- test adding new files - done\n- test adding files in subdir - done\n- collating changes - multiple changes can be collated to an existing branch - done\n  - what about the pr description, should subsequent changes update the pr description?\n    - could add a comment to the pr\n  - existing branch might be out of date with head branch\n    - could merge from head\n    - could delete and recreate\n      - dependabot recreates the branch\n      - only recreate the branch is pr-branch has been specified\n        - what if pr-branch=master?\n        - if the branch was created by insync, then should be safe to recreate\n        - but how to know if it was created by insync?\n        - perhaps don't allow the pr-branch to be set\n          - but pr-branch is useful tests\n          - could make it an env instead of input so it's a hidden var\n- allow push to master, so no pr required - works by setting pr-branch=''\n- allow auto merge pr's\n- templates - perform replacement on templated files\n- allow for different dest paths:\n  - eg: dependabot.yml=.github/dependabot.yml\n- sync entire dir\n  - but what about if dest has extra files in the dir, should they be removed?\n- split into multiple steps in action.yaml\n\nMultiple destinations:\n- action could be setup for each dest\n- or can have one action that supports multiple dest's\n  - this would be faster as src would only be checked out once for all dest's\n\nCustomize the PR:\n- labels\n- title\n- description\n- reviewers\n- etc\n- provide link to the src repo/change\n\n# Alternatives\n\n- https://github.com/marketplace/actions/file-sync\n- https://github.com/marketplace/actions/assets-sync\n- https://github.com/marketplace/actions/sync-files\n- https://github.com/marketplace/actions/files-sync-action\n- https://github.com/marketplace/actions/repo-selective-sync\n- https://github.com/marketplace/actions/github-file-sync\n- https://github.com/marketplace/actions/template-repository-sync\n\n\nBenefits over alternatives:\n- Doesn't require the github checkout action so the jobs are simpler and more efficient\n- Doesn't use docker so actions will run in seconds\n- Doesn't use nodeJs\n- Uses original commit author/message in commits to destination repo's\n- Provides link to the original commit\n- Uses hub command line tool rather than direct http requests for creating PR's\n\n\nUnidirectional\nMaster -\u003e slave 1\n       -\u003e slave 2\n       -\u003e slave 3\n\nBidirectional\nSlave 1 -\u003e Master\nMaster -\u003e slave 2\n       -\u003e slave 3\n\nTo sync workflow files, token needs workflow permissions\n\n! [remote rejected] testUpdateDir -\u003e testUpdateDir (refusing to allow a Personal Access Token to create or update workflow `.github/workflows/ci.yaml` without `workflow` scope)\n\nuse post action so that it is always executed for cleanup\n\npaths can be used in the job definition:\n\n    on:\n      push:\n        paths:\n          - '**.js'\n\n# Internal vs external actions\n\ncurrent dir:\n/home/runner/work/insync-src/insync-src\nthis will be empty, for internal action, it needs to be checked out before running the action\nwhich means the sync doesn't need to check it out again\n\nExternal action\nGITHUB_ACTION=sync\nGITHUB_ACTION_PATH=/home/runner/work/_actions/solubris/insync/master\n\nInternal action:\nGITHUB_ACTION=__self\nGITHUB_ACTION_PATH=/home/runner/work/insync/insync/./\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsolubris%2Finsync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsolubris%2Finsync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsolubris%2Finsync/lists"}