{"id":20556649,"url":"https://github.com/clevertech/findsecrets","last_synced_at":"2026-03-05T10:03:03.381Z","repository":{"id":145694324,"uuid":"112748430","full_name":"clevertech/findsecrets","owner":"clevertech","description":"Prevent pushing secrets to the repository","archived":false,"fork":false,"pushed_at":"2018-09-13T01:01:19.000Z","size":5,"stargazers_count":4,"open_issues_count":3,"forks_count":2,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-14T13:11:57.585Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/clevertech.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":"2017-12-01T14:22:50.000Z","updated_at":"2021-07-19T01:21:59.000Z","dependencies_parsed_at":"2023-04-11T11:00:54.283Z","dependency_job_id":null,"html_url":"https://github.com/clevertech/findsecrets","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/clevertech/findsecrets","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clevertech%2Ffindsecrets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clevertech%2Ffindsecrets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clevertech%2Ffindsecrets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clevertech%2Ffindsecrets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/clevertech","download_url":"https://codeload.github.com/clevertech/findsecrets/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clevertech%2Ffindsecrets/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30118932,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T09:35:22.236Z","status":"ssl_error","status_checked_at":"2026-03-05T09:35:20.028Z","response_time":93,"last_error":"SSL_read: 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":"2024-11-16T03:31:11.904Z","updated_at":"2026-03-05T10:03:03.342Z","avatar_url":"https://github.com/clevertech.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# findsecrets\n\nLooks for secrets in your code. Ignores `.env` files. The idea is preventing pushing secrets to a repository, so it is useful to invoke it in a `precommit` hook. You can use it in combination with `lint-staged` and `husky` for example so all (and only) modified files in a commit get analyzed.\n\nExample secret:\n\n```javascript\nconst FACEBOOK_API_SECRET = 'ZVyyCKt7i2JMtlaJgnYExjRyBlI1KOHbxiDcseWQ9at5uHFvQl'\n```\n\nRunning manually:\n\n```\nfindsecrets /path/to/code.js\n```\n\nOutput:\n\n```\nFound secrets in /path/to/code.js\n    at line 1 ZVyyCKt7i2JMtlaJgnYExjRyBl...\n```\n\n## Installing\n\nInstall locally. Perfect for using it in combination with `lint-staged` and `husky` or any npm script.\n\n```\nnpm install @clevertech.biz/findsecrets\n```\n\nOptionally install it globally\n\n```\nnpm install @clevertech.biz/findsecrets -g\n```\n\n## Usage\n\n```\nfindsecrets /path/to/code.js\n```\n\n## Skipping lines or files\n\nSometimes you'll get false positives. You can ignore a line like this:\n\n```javascript\nconst falsePositive = 'yLjaLLAnycACDX3aAeA8Vnac' // findsecrets-ignore-line\n```\n\nYou can also ignore a whole file by putting a comment containing `findsecrets-ignore-file` in the first line.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclevertech%2Ffindsecrets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclevertech%2Ffindsecrets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclevertech%2Ffindsecrets/lists"}