{"id":19832064,"url":"https://github.com/ail-project/ail-feeder-github-repo","last_synced_at":"2026-06-12T15:31:57.058Z","repository":{"id":114094134,"uuid":"433775806","full_name":"ail-project/ail-feeder-github-repo","owner":"ail-project","description":"AIL feeder for GitHub Repository","archived":false,"fork":false,"pushed_at":"2023-11-08T04:38:36.000Z","size":30,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-02-28T21:29:04.015Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ail-project.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2021-12-01T10:10:19.000Z","updated_at":"2023-10-22T17:21:22.000Z","dependencies_parsed_at":"2023-11-08T07:03:04.978Z","dependency_job_id":null,"html_url":"https://github.com/ail-project/ail-feeder-github-repo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ail-project/ail-feeder-github-repo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ail-project%2Fail-feeder-github-repo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ail-project%2Fail-feeder-github-repo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ail-project%2Fail-feeder-github-repo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ail-project%2Fail-feeder-github-repo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ail-project","download_url":"https://codeload.github.com/ail-project/ail-feeder-github-repo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ail-project%2Fail-feeder-github-repo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34251774,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-12T02:00:06.859Z","response_time":109,"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":[],"created_at":"2024-11-12T11:36:18.819Z","updated_at":"2026-06-12T15:31:57.041Z","avatar_url":"https://github.com/ail-project.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AIL - feeder from Github Repository\n\nThis AIL feeder is a generic piece of software to extract information from Github Repositories to collect and feed AIL via its ReST API.\n\n\n# Usage\n\n~~~shell\ndacru@dacru:~/git/ail-feeder-github-repo/bin$ python3 github_repo.py --help  \nusage: github_repo.py [-h] -l LIST_REPO [--nocache] [-v] [-d]\n\noptional arguments:\n  -h, --help            show this help message and exit\n  -l LIST_REPO, --list_repo LIST_REPO\n                        list of repo to analyse\n  --nocache             disable store of repository\n  -v, --verbose         verbose, more display\n  -d, --debug           debug mode\n~~~\n\n\n# JSON output format to AIL\n\n- `source` is the name of the AIL feeder module\n- `source-uuid` is the UUID of the feeder (unique per feeder)\n- `data` is data in file\n- `meta` is the generic field where feeder can add the metadata collected\n\nUsing the AIL API, `data` will be compressed in gzip format and encoded in base64. Then a new field will be created, `data-sha256` which will be the result of sha256 on data after treatment.\n\n\n# (main) Requirements\n\n- [PyAIL](https://github.com/ail-project/PyAIL)\n\n- [magic](https://github.com/ahupp/python-magic)\n\n  - For magic, according to your OS, some additional dependecies need to be installed.\n\n    - For Debian/Ubuntu:\n\n    ```\n    sudo apt-get install libmagic1\n    ```\n\n    - For Windows\n\n    ```\n    pip install python-magic-bin\n    ```\n\n    - For MacOS\n\n    ```\n    brew install libmagic\n    ```\n\n- [redis](https://github.com/redis/redis-py)\n\n\n## ail_feeder_github_repo\n\n~~~json\n{\n    \"data\": \"[general]\\nuuid = 183f2812-db38-4935-b5da-ad03f94f118f\\n\\n[github]\\napi_token = \u003cYOURAPIKEY\u003e\\n\\n[cache]\\nexpire = 86400\\n\\n[ail]\\nurl = https://127.0.0.1:7020/api/v1/import/json/item\\napikey = \u003cYOURAPIKEY\u003e \\n\\n[redis]\\nhost = 127.0.0.1\\nport = 6379\\ndb = 0\\n\\n[repo]\\npathRepo = \",\n    \"meta\": {\n        \"github_repo:path_file\": \"ail-feeder-github-repo-main/etc/config.cfg\",\n        \"github_repo:file_size\": \"260\",\n        \"github_repo:file_extention\": \"cfg\",\n        \"github_repo:id\": \"433775806\",\n        \"github_repo:node_id\": \"R_kgDOGdrkvg\",\n        \"github_repo:name\": \"ail-project/ail-feeder-github-repo\",\n        \"github_repo:owner_login\": \"ail-project\",\n        \"github_repo:owner_id\": \"62389074\",\n        \"github_repo:owner_node_id\": \"MDEyOk9yZ2FuaXphdGlvbjYyMzg5MDc0\",\n        \"github_repo:datestamp\": \"2021-12-01\",\n        \"github_repo:timestamp\": \"10:10:19\",\n        \"github_repo:timezone\": \"UTC\"\n    }\n}\n~~~\n\n\n## Format list to process repository\n\n~~~json\n[\n    {\n        \"user\": \"ail-project\",\n        \"repo_name\": \"ail-feeder-github-repo\",\n        \"commit\": \"\",\n        \"branch\": \"\"\n    },\n    {\n        \"user\": \"ahupp\",\n        \"repo_name\": \"python-magic\",\n        \"commit\": \"\",\n        \"branch\": \"libmagic-compat\"\n    }\n] \n~~~\n\n\n## Download all repository from an organization\n\nIf no `repo_name` is given, then the user is consider as an organization and all of is repository will be download\n\n~~~\n[\n\t{\n        \"user\": \"ail-project\",\n        \"repo_name\": \"\",\n        \"commit\": \"\",\n        \"branch\": \"\"\n    }\n]\n~~~\n\n\n## License\n\n\nThis software is licensed under [GNU Affero General Public License version 3](http://www.gnu.org/licenses/agpl-3.0.html)\n\nCopyright (C) 2021-2023 CIRCL - Computer Incident Response Center Luxembourg\nCopyright (C) 2021-2023 David Cruciani\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fail-project%2Fail-feeder-github-repo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fail-project%2Fail-feeder-github-repo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fail-project%2Fail-feeder-github-repo/lists"}