{"id":18397800,"url":"https://github.com/secretlint/git-hooks","last_synced_at":"2025-04-07T04:33:34.621Z","repository":{"id":114445009,"uuid":"245645804","full_name":"secretlint/git-hooks","owner":"secretlint","description":"Global git hooks integration example","archived":false,"fork":false,"pushed_at":"2024-04-22T12:48:34.000Z","size":8,"stargazers_count":16,"open_issues_count":1,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-22T13:38:00.092Z","etag":null,"topics":["git","global","hook","secretlint"],"latest_commit_sha":null,"homepage":null,"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/secretlint.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},"funding":{"github":"azu"}},"created_at":"2020-03-07T14:19:06.000Z","updated_at":"2024-12-19T01:07:37.000Z","dependencies_parsed_at":"2024-11-06T02:21:53.688Z","dependency_job_id":"f5b16274-aad7-4d3c-bf21-b3d0007b9665","html_url":"https://github.com/secretlint/git-hooks","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/secretlint%2Fgit-hooks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/secretlint%2Fgit-hooks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/secretlint%2Fgit-hooks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/secretlint%2Fgit-hooks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/secretlint","download_url":"https://codeload.github.com/secretlint/git-hooks/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247595370,"owners_count":20963939,"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":["git","global","hook","secretlint"],"created_at":"2024-11-06T02:18:47.776Z","updated_at":"2025-04-07T04:33:34.597Z","avatar_url":"https://github.com/secretlint.png","language":"Shell","funding_links":["https://github.com/sponsors/azu"],"categories":["Shell"],"sub_categories":[],"readme":"# Global git-hooks\n\nIntegrate secretlint with global git hooks.\n\nPrevent credentials on any Git project by [secretlint](https://github.com/secretlint/secretlint).\n\n## Features\n\n- Global Git Hooks using [`core.hooksPath`](https://git-scm.com/docs/githooks) on Git 2.9+\n- If project has setup local git hook, call local hooks too\n    - Order: local hooks -\u003e global hooks \n- Define ignoring project paths by `IGNORE_GLOBAL_HOOKS` file\n\n## Hooks\n\n- `pre-commit`\n    - [secretlint](https://github.com/secretlint/secretlint) prevent to commit credentials\n\n## Installation\n\n**Requirement:**\n\n- Docker\n- Git 2.9+\n\nCheck if you already have any global git hooks:\n\n    git config --global core.hooksPath\n\nIf output is not empty, run following steps:\n\n```shell script\n# clone this repository\ngit clone https://github.com/secretlint/git-hooks git-hooks\ncd git-hooks\n# setup git config\ngit config --global core.hooksPath $(pwd)/hooks\n```\n\n## Options\n\nYou can create `IGNORE_GLOBAL_HOOKS` file in git-hooks project dir.\nIt is collection of absolute path to ignore global hooks.\n\n`IGNORE_GLOBAL_HOOKS`:\n```\n/path/to/my-project-a\n/path/to/my-project-b\n```\n\nIf the project path is included in `IGNORE_GLOBAL_HOOKS`, global git hook does not run. \n\n## FAQ\n\n### Ignore `pre-commit` hook when commit example\n\nUse [`--no-verify`](https://git-scm.com/docs/git-commit#Documentation/git-commit.txt---no-verify) options.\n\n```\ngit commit --no-verify\n```\n\n## Related\n\n- [azu/git-hooks: @azu's global git hooks](https://github.com/azu/git-hooks)\n\n## Contributing\n\nPull requests and stars are always welcome.\n\nFor bugs and feature requests, [please create an issue](https://github.com/secretlint/git-hooks/issues).\n\n1. Fork it!\n2. Create your feature branch: `git checkout -b my-new-feature`\n3. Commit your changes: `git commit -am 'Add some feature'`\n4. Push to the branch: `git push origin my-new-feature`\n5. Submit a pull request :D\n\n## Author\n\n- [github/azu](https://github.com/azu)\n- [twitter/azu_re](https://twitter.com/azu_re)\n\n## License\n\nMIT © azu","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsecretlint%2Fgit-hooks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsecretlint%2Fgit-hooks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsecretlint%2Fgit-hooks/lists"}