{"id":13612812,"url":"https://github.com/RichardoC/gitlab-secrets","last_synced_at":"2025-04-13T12:32:46.193Z","repository":{"id":224271969,"uuid":"762847622","full_name":"RichardoC/gitlab-secrets","owner":"RichardoC","description":"This tool analyzes a given Gitlab repository and searches for dangling or force-pushed commits containing potential secret or interesting information.","archived":false,"fork":false,"pushed_at":"2024-08-16T10:48:46.000Z","size":10,"stargazers_count":46,"open_issues_count":0,"forks_count":5,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-02T05:13:22.616Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"neodyme-labs/github-secrets","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RichardoC.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":"2024-02-24T21:17:58.000Z","updated_at":"2025-03-18T20:50:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"08994a16-a404-4fd2-ac71-cbf845c1ae0f","html_url":"https://github.com/RichardoC/gitlab-secrets","commit_stats":null,"previous_names":["richardoc/gitlab-secrets"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RichardoC%2Fgitlab-secrets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RichardoC%2Fgitlab-secrets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RichardoC%2Fgitlab-secrets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RichardoC%2Fgitlab-secrets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RichardoC","download_url":"https://codeload.github.com/RichardoC/gitlab-secrets/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248714726,"owners_count":21149954,"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-08-01T20:00:34.803Z","updated_at":"2025-04-13T12:32:45.895Z","avatar_url":"https://github.com/RichardoC.png","language":"Python","readme":"# Gitlab Secrets\n\nThis tool analyzes a given Gitlab repository and searches for dangling or force-pushed commits, containing potential secret or interesting information.\n\nIt's based on \u003chttps://github.com/neodyme-labs/github-secrets\u003e which does the same for Github\n\n## Requirements\n\n- Python3\n- [requests](https://pypi.org/project/requests/)\n\n## Installation\n\n```bash\ngit clone https://github.com/neodyme-labs/github-secrets.git\n```\n\n## Usage\n\nTo get a list of basic options and switches use:\n```bash\npython3 gitlab_scanner.py -h\n```\n\nYou can run this script either completely unauthenticated if you are checking public repositories, or your generated API token by following [this guide](https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html).\n\nThe tokens need requires `read_api` scope.\n\nTo export the token use:\n```bash\nexport GITLAB_ACCOUNT_TOKEN=\u003cyour_secret_api_token\u003e\n```\n\nTo use against a custom instance of Gitlab\n```bash\nexport GITLAB_INSTANCE_URL=\u003cyour_instance_url\u003e\n```\n\nTo run the script and scan a repository:\n```bash\npython3 gitlab_scanner.py \u003corganisation\u003e/\u003crepository\u003e\n```\n\nAn example repository for testing is \u003chttps://gitlab.com/gitlab-secrets/gitlab-secrets\u003e\n\n## Limitations\n\nThis can only detect dangling commits from the last [3 years](https://docs.gitlab.com/ee/api/events.html#event-time-period-limit) due to the retention period on events in Gitlab.\n\n## License\n\nLicensed under either of\n\n * Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or \u003chttp://www.apache.org/licenses/LICENSE-2.0\u003e)\n * MIT license ([LICENSE-MIT](LICENSE-MIT) or \u003chttp://opensource.org/licenses/MIT\u003e)\n\nat your option.\n\n### Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally\nsubmitted for inclusion in the work by you, as defined in the Apache-2.0\nlicense, shall be dual licensed as above, without any additional terms or\nconditions.","funding_links":[],"categories":["Awesome secret leak tools","Techniques"],"sub_categories":["Publicly Exposed Sensitive Data"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FRichardoC%2Fgitlab-secrets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FRichardoC%2Fgitlab-secrets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FRichardoC%2Fgitlab-secrets/lists"}