{"id":20144957,"url":"https://github.com/michalswi/github-c2","last_synced_at":"2026-01-30T06:14:12.883Z","repository":{"id":112989158,"uuid":"601594253","full_name":"michalswi/github-c2","owner":"michalswi","description":"pull files from a github repository","archived":false,"fork":false,"pushed_at":"2024-10-24T13:16:39.000Z","size":13,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-09T19:17:41.617Z","etag":null,"topics":["command-and-control","github-api","github-pull","go-github","golang"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/michalswi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-02-14T12:02:44.000Z","updated_at":"2024-10-25T15:37:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"cf0ba68d-e84f-4603-bda4-3b41655d9c39","html_url":"https://github.com/michalswi/github-c2","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michalswi%2Fgithub-c2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michalswi%2Fgithub-c2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michalswi%2Fgithub-c2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michalswi%2Fgithub-c2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/michalswi","download_url":"https://codeload.github.com/michalswi/github-c2/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248094988,"owners_count":21046770,"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","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":["command-and-control","github-api","github-pull","go-github","golang"],"created_at":"2024-11-13T22:12:58.046Z","updated_at":"2026-01-30T06:14:07.859Z","avatar_url":"https://github.com/michalswi.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"## github c2 - pull\n\n![](https://img.shields.io/github/stars/michalswi/github-c2)\n![](https://img.shields.io/github/forks/michalswi/github-c2)\n![](https://img.shields.io/github/last-commit/michalswi/github-c2)\n![](https://img.shields.io/github/issues/michalswi/github-c2)\n\nUse GitHub as a way to store configuration information.  \nCode is **pulling** file(s) from a GitHub repository to the local file system.\n\nInstead of **Classic Tokens** you can use **Fine-grained personal access tokens**. Create a repo (public/private) and generate token (PAT) **only** for this repo. Set `GITHUB_PAT` env variable.\n\n```\nexport GITHUB_PAT=github_pat_(...)\n```\n\nScript is downloading all the files to your local catalog (default `/tmp`). If you re-run it will compare SHA1 before downloading. If checksum the same, file won't be downloaded.\n\nSet repository details and local path using env variables:\n```\nexport REPO_OWNER=\u003c\u003e\nexport REPO_NAME=\u003c\u003e\nexport BASE_PATH=\u003c\u003e\n```\nExample:\n```\nexport REPO_OWNER=\"michalswi\"\nexport REPO_NAME=\"github-c2\"\nexport BASE_PATH=\"/tmp\"\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichalswi%2Fgithub-c2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmichalswi%2Fgithub-c2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichalswi%2Fgithub-c2/lists"}