{"id":22444630,"url":"https://github.com/zapkub/credscan","last_synced_at":"2025-03-27T10:43:05.548Z","repository":{"id":72450502,"uuid":"571420872","full_name":"zapkub/credscan","owner":"zapkub","description":"Repository scanner, looking for specific keyword","archived":false,"fork":false,"pushed_at":"2022-11-28T05:41:51.000Z","size":628,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-01T15:25:43.771Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/zapkub.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":"2022-11-28T04:51:32.000Z","updated_at":"2022-11-28T05:22:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"74415d38-d210-443f-a72d-88da3ed6bacc","html_url":"https://github.com/zapkub/credscan","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/zapkub%2Fcredscan","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zapkub%2Fcredscan/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zapkub%2Fcredscan/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zapkub%2Fcredscan/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zapkub","download_url":"https://codeload.github.com/zapkub/credscan/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245832607,"owners_count":20679701,"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":[],"created_at":"2024-12-06T03:09:05.316Z","updated_at":"2025-03-27T10:43:05.528Z","avatar_url":"https://github.com/zapkub.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Credscan\nminimal repository scanner service\n\n\n## Stack on this app\n- Sqlite3\n- Golang\n\n## How Worker works\n- find queued job if exist\n- Clone repository to working dir\n- iterate through the files\n- write the result back to database\n\n![level0](./docs/level0.png)\n\n## Todo\n- [ ] single entity get API\n- [ ] Containerized\n- [ ] handling repository scan error\n- [ ] recover failed/crash job\n- [ ] Optimize worker pool\n- [ ] Ability to remove Job\n- [ ] better to have docker compose for quick start\n\n## How to use it\nyou need to run both server and worker and mount the same working dir\n```\n$ docker run -v $(pwd)/data:/app/data -p 3000:3000 credscan/server \n$ docker run -v $(pwd)/data:/app/data -p 3000:3000 credscan/worker\n```\nthen you can try to post some job via server\n\n```\n$ curl -X \"POST\" \"http://localhost:3000/job\" \\\n     -H 'Content-Type: application/x-www-form-urlencoded; charset=utf-8' \\\n     --data-urlencode \"repositoryUrl=https://github.com/guardrailsio/backend-engineer-challenge\" \\\n     --data-urlencode \"repositoryName=Test Repo\"\n```\n\nand you can query all of the result from this API\n\n\n```\n$ curl \"http://localhost:3000/jobs\"\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzapkub%2Fcredscan","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzapkub%2Fcredscan","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzapkub%2Fcredscan/lists"}