{"id":28906668,"url":"https://github.com/cycodelabs/cicd-leak-scanner","last_synced_at":"2026-02-28T16:32:09.498Z","repository":{"id":282890046,"uuid":"949461642","full_name":"CycodeLabs/cicd-leak-scanner","owner":"CycodeLabs","description":"CI/CD Leak Scanner is a security tool designed to scan build logs from CI/CD pipelines to identify leaks of sensitive data.","archived":false,"fork":false,"pushed_at":"2025-03-18T08:58:52.000Z","size":40,"stargazers_count":6,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-21T15:08:47.189Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","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/CycodeLabs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-03-16T14:17:55.000Z","updated_at":"2025-03-23T18:01:02.000Z","dependencies_parsed_at":"2025-03-17T14:28:13.317Z","dependency_job_id":"9ab54538-2db9-4f38-9a6c-11bfc6abbab1","html_url":"https://github.com/CycodeLabs/cicd-leak-scanner","commit_stats":null,"previous_names":["cycodelabs/cicd-leak-scanner"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/CycodeLabs/cicd-leak-scanner","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CycodeLabs%2Fcicd-leak-scanner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CycodeLabs%2Fcicd-leak-scanner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CycodeLabs%2Fcicd-leak-scanner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CycodeLabs%2Fcicd-leak-scanner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CycodeLabs","download_url":"https://codeload.github.com/CycodeLabs/cicd-leak-scanner/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CycodeLabs%2Fcicd-leak-scanner/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29942833,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-28T13:49:17.081Z","status":"ssl_error","status_checked_at":"2026-02-28T13:48:50.396Z","response_time":90,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":[],"created_at":"2025-06-21T15:08:44.888Z","updated_at":"2026-02-28T16:32:09.489Z","avatar_url":"https://github.com/CycodeLabs.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CI/CD Leak Scanner\n\nCI/CD Leak Scanner is a security tool designed to scan build logs from CI/CD pipelines to identify leaks of sensitive data, tokens, or credentials.\n\nDue to the recent malicious actions involving [tj-actions/changed-files](https://cycode.com/blog/github-action-tj-actions-changed-files-supply-chain-attack-the-complete-guide/), we've created this tool to empower security teams to proactively scan and determine if their CI/CD pipelines have been compromised.\n\n## Features\n\n* Sensitive Data Detection: Quickly identifies leaked secrets, tokens, and credentials in build logs.\n* Configurable Rules: Customize the scanner to detect specific patterns or keywords.\n* Reporting: Generates a detailed report with the list of leaks found in the build logs.\n\n\n## Installation\n\n``` bash\ngit clone https://github.com/CycodeLabs/cicd-leak-scanner.git\ncd cicd-leak-scanner\ngo build -o cicd-leak-scanner .\n```\n\nIn some cases (e.g., building in a minimal Docker environment or a platform without CGO support), specify `CGO_ENABLED=0`:\n\n``` bash\nCGO_ENABLED=0 go build -o cicd-leak-scanner .\n```\n\n\n## Usage\n\nScan public build logs:\n\n``` bash\n./cicd-leak-scanner -t $GITHUB_TOKEN\n```\n\nScan Specific Organization:\n\n``` bash\n./cicd-leak-scanner -t $GITHUB_TOKEN -o organization\n```\n\nScan Specific Repository:\n\n``` bash\n./cicd-leak-scanner -t $GITHUB_TOKEN  -r orgName/repoName\n```\n\n\n## Configuration\n\nThe scanner uses a configuration file to define the rules for detecting leaks. The configuration file is located at `config.yaml` and can be customized to detect specific patterns or keywords.\n\n``` yaml\nscanner:\n  workflow-runs-to-scan: 3\n\noutput:\n  method: file\n  filename: output.json\n\nrules:\n  - name: Detect base64 secrets leaked by tj-actions/changed-files\n    query: tj-actions/changed-files language:yaml path:.github/workflows\n    regex: \u003e\n      ##\\[group\\]changed-files\\s*\\r?\\n\\d{4}-\\d{2}-\\d{2}T[\\d:.]+Z\\s+([A-Za-z0-9+/=]+)\n    decoders:\n      - id: base64_decode\n        repeat: 2\n```\n\n## Contributing\n\nContributions are welcome! Please open a pull request or an issue if you'd like to suggest improvements or report bugs.\n\n## Limitations\n\n* GitHub API Limit: GitHub's search and workflow run APIs return a maximum of `1000` results per query.\n\n## License\n\n[Apache License 2.0](https://github.com/CycodeLabs/cicd-leak-scanner/blob/main/LICENSE.md)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcycodelabs%2Fcicd-leak-scanner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcycodelabs%2Fcicd-leak-scanner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcycodelabs%2Fcicd-leak-scanner/lists"}