{"id":18275342,"url":"https://github.com/rahiel/giternity","last_synced_at":"2025-10-11T04:09:46.058Z","repository":{"id":54259963,"uuid":"107785172","full_name":"rahiel/giternity","owner":"rahiel","description":"Mirror git repositories and retrieve metadata for cgit","archived":false,"fork":false,"pushed_at":"2023-04-28T19:59:56.000Z","size":28,"stargazers_count":20,"open_issues_count":1,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-09-28T02:30:23.905Z","etag":null,"topics":["cgit","git","git-mirror"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rahiel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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}},"created_at":"2017-10-21T14:04:17.000Z","updated_at":"2025-04-28T04:36:52.000Z","dependencies_parsed_at":"2024-11-05T12:12:40.536Z","dependency_job_id":"5cd3ccdd-fbb1-4fed-83eb-b1da895f7688","html_url":"https://github.com/rahiel/giternity","commit_stats":{"total_commits":12,"total_committers":4,"mean_commits":3.0,"dds":0.25,"last_synced_commit":"44570f9de8d58df5e28ee4d29dcd73f77ca82d24"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rahiel/giternity","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rahiel%2Fgiternity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rahiel%2Fgiternity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rahiel%2Fgiternity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rahiel%2Fgiternity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rahiel","download_url":"https://codeload.github.com/rahiel/giternity/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rahiel%2Fgiternity/sbom","scorecard":{"id":758947,"data":{"date":"2025-08-11","repo":{"name":"github.com/rahiel/giternity","commit":"440341836500c03bdab07978aa15a3d1d9c615b5"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.3,"checks":[{"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":"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":"Code-Review","score":2,"reason":"Found 4/15 approved changesets -- score normalized to 2","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":"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":"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":"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":"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":"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":"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.txt:0","Info: FSF or OSI recognized license: GNU General Public License v3.0: LICENSE.txt:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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":"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"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 5 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-22T22:41:24.945Z","repository_id":54259963,"created_at":"2025-08-22T22:41:24.945Z","updated_at":"2025-08-22T22:41:24.945Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279006259,"owners_count":26084060,"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-10-11T02:00:06.511Z","response_time":55,"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":["cgit","git","git-mirror"],"created_at":"2024-11-05T12:12:34.115Z","updated_at":"2025-10-11T04:09:46.030Z","avatar_url":"https://github.com/rahiel.png","language":"Python","readme":"# giternity\n\n[![Version](https://img.shields.io/pypi/v/giternity.svg)](https://pypi.org/project/giternity/)\n[![pyversions](https://img.shields.io/pypi/pyversions/giternity.svg)](https://pypi.org/project/giternity/)\n[![Downloads](https://img.shields.io/pypi/dm/giternity)](https://pypistats.org/packages/giternity)\n[![License](https://img.shields.io/badge/License-GPLv3+-blue.svg)](https://github.com/rahiel/giternity/blob/master/LICENSE.txt)\n\nGiternity is a tool to mirror git repositories from GitHub. You can specify a\nusername/organization to mirror all their repositories, or just individual\nrepos. It retrieves some repo metadata so they can be nicely served with\n[cgit][]. Run giternity periodically to update the mirrors.\n\nAn example result is [git.cpu.re][]. Follow the [tutorial][] to host your own.\n\n[cgit]: https://git.zx2c4.com/cgit/about/\n[git.cpu.re]: https://git.cpu.re/\n[tutorial]: https://www.rahielkasim.com/mirror-git-repositories-and-serve-them-with-cgit/\n\n# Installation\n\nInstall giternity:\n\n``` shell\nsudo pip3 install giternity\n```\n\nYou also need to have git installed.\n\n# Configuration\n\nThe configuration file is at `/etc/giternity.toml`:\n\u003c!-- TODO: ini should be toml when pygments has toml support --\u003e\n``` ini\n# path for the git mirrors\ngit_data_path = \"/srv/git/\"\n\n# path for checkouts of the git mirrors (optional)\n# checkout_path = \"/srv/git_checkout/\"\n\n# public URL of your cgit instance (optional)\n# cgit_url = \"https://git.cpu.re/\"\n\n[github]\nrepositories = [\n    \"rahiel\",\n    \"sunsistemo\",\n    \"TeMPOraL/nyan-mode\",\n]\n\n# Include arbitrary repositories with this pattern (1 [[repos]] block\n# each):\n#\n#    [[repos]]\n#    name = \"repo-name\"\n#    owner = \"owner\"\n#    description = \"description\"\n#    homepage = \"https://example.local\"\n#    clone_url = \"https://git.example.local/owner/repo-name.git\"\n[[repos]]\nname = \"giternity\"\nowner = \"rahiel\"\ndescription = \"Mirror git repositories and retrieve metadata for cgit \"\nhomepage = \"https://www.rahielkasim.com/mirror-git-repositories-and-serve-them-with-cgit/\"\nclone_url = \"https://github.com/rahiel/giternity.git\"\n```\n\nSet `git_data_path` to the path where you want to store the git repositories. It\nwill contain bare git repositories: the data you usually see in the `.git`\ndirectory in your projects. To also have the actual working files of the repos,\nset `checkout_path` to where to keep them. If you'll be hosting the repos with\ncgit, set `cgit_url` to the public URL.\n\nIn the `[github]` section you specify which repositories to mirror. You list a\nusername (`\"rahiel\"`) or an organization (`\"sunsistemo\"`) to mirror all of their\nnon-fork repositories. For individual repos (`\"TeMPOraL/nyan-mode\"`) you specify\nthem like `owner/repo`.\n\nWith the configuration in place you simply run `giternity`.\n\nFor convenience there is an automatic configuration that sets up a separate\nsystem user, gives this user permissions to `git_data_path` (and to\n`checkout_path` if specified) and creates a cron job at `/etc/cron.d/giternity`\nto update the mirrors every hour. Apply these defaults with:\n\n``` shell\nsudo giternity --configure\n```\n\n# cgit\n\nYour git mirrors are now suitable to serve with cgit. Customize your\n`/etc/cgitrc` as you like and add the following to the bottom:\n\n``` ini\nagefile=info/web/last-modified\nsection-from-path=1\nscan-path=/srv/git/\n```\n\nwhere you replace `/srv/git/` with the `git_data_path` from your\n`/etc/giternity.toml`.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frahiel%2Fgiternity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frahiel%2Fgiternity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frahiel%2Fgiternity/lists"}