{"id":27391331,"url":"https://github.com/andygol/check-leaks","last_synced_at":"2025-04-13T20:15:08.421Z","repository":{"id":214103423,"uuid":"735682933","full_name":"Andygol/check-leaks","owner":"Andygol","description":"This script helps you prevent sensitive data from being leaked","archived":false,"fork":false,"pushed_at":"2023-12-25T21:13:03.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-13T20:15:08.030Z","etag":null,"topics":["leaked-secrets","leaks","prevention","secret","secret-management","security"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/Andygol.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}},"created_at":"2023-12-25T20:07:05.000Z","updated_at":"2023-12-25T21:28:30.000Z","dependencies_parsed_at":"2023-12-25T21:42:59.469Z","dependency_job_id":"3118a6e2-3e4e-4841-9bf9-d7d5dcd9db2e","html_url":"https://github.com/Andygol/check-leaks","commit_stats":null,"previous_names":["andygol/check-leaks"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Andygol%2Fcheck-leaks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Andygol%2Fcheck-leaks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Andygol%2Fcheck-leaks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Andygol%2Fcheck-leaks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Andygol","download_url":"https://codeload.github.com/Andygol/check-leaks/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248774968,"owners_count":21159534,"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":["leaked-secrets","leaks","prevention","secret","secret-management","security"],"created_at":"2025-04-13T20:15:07.269Z","updated_at":"2025-04-13T20:15:08.409Z","avatar_url":"https://github.com/Andygol.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pre-Commit Installation Script\n\nThis script automates the installation, uninstallation, cleanup, and updating of pre-commit hooks in your Git repositories. \n\nPre-commit hooks help ensure that your commits meet certain standards and protect against secret leakages.\n\n## Usage\n\n### Prerequisites\n\n- Python must be installed on your system.\n\n### Installation\n\n#### 1. Download and Run Script\n\nYou can download and run the script directly using curl. Execute the following command in your terminal:\n\n```bash\ncurl -fsSL https://raw.githubusercontent.com/Andygol/check-leaks/main/pre-commit.sh | sh -s install\n```\n\nThis will download and run the script with the `install` command.\n\nAlternatively, you can download the script and make it executable manually:\n\n```bash\ncurl -O https://raw.githubusercontent.com/Andygol/check-leaks/main/pre-commit.sh\n```\n\n#### 2. Make the script executable\n\n```bash\nchmod +x pre-commit.sh\n```\n\n### Commands\n\n#### 1. Install\n\nRun the following command to set up pre-commit hooks for your repository:\n\n```bash\n./pre-commit.sh install\n```\n\nThis will create a virtual environment, install pre-commit, configure hooks including one for detecting secrets, and run pre-commit.\n\n#### 2. Uninstall\n\nTo remove pre-commit from your repository, use the following command:\n\n```bash\n./pre-commit.sh uninstall\n```\n\nThis will uninstall pre-commit and leave your repository without any hooks.\n\n#### 3. Cleanup\n\nIf you want to remove the virtual environment and configuration files, run:\n\n```bash\n./pre-commit.sh cleanup\n```\n\nDo note that this will not remove the hooks from your repository. Use the `uninstall` command to remove them. You can combine `uninstall` and `cleanup` to remove the hooks and the virtual environment.\n\n```bash\n./pre-commit.sh uninstall cleanup\n```\n\n```bash\ncurl -fsSL https://raw.githubusercontent.com/Andygol/check-leaks/main/pre-commit.sh | sh -s uninstall cleanup\n```\n\n#### 4. Update\n\nTo update your pre-commit hooks to the latest versions, use:\n\n```bash\n./pre-commit.sh update\n```\n\nThis will automatically update the hooks using `pre-commit autoupdate`.\n\n### Additional Information\n\n- This script assumes that you have Python installed on your system.\n- For more details on pre-commit, visit the [official documentation](https://pre-commit.com/).\n\nFeel free to customize the script based on your needs.\n\n---\n\n**Note:** Always review scripts before running them, and use them at your own risk.\n\n## License\n\nThis script is licensed under the MIT License. See the [LICENSE](https://github.com/Andygol/check-leaks/blob/main/LICENSE) file for details.\n\n## Author\n\nThis script was created by Andrii Holovin ([Andygol](https://github.com/Andygol)).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandygol%2Fcheck-leaks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandygol%2Fcheck-leaks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandygol%2Fcheck-leaks/lists"}