Skip to content

docs: tell contributors how to enable the shipped gitleaks pre-commit hook - #342

Merged
Chris-Wolfgang merged 3 commits into
mainfrom
docs/hooks-path
Sep 18, 2026
Merged

Chris-Wolfgang merged 3 commits into
mainfrom
docs/hooks-path

Conversation

@Chris-Wolfgang

Copy link
Copy Markdown
Owner

The template upgrade shipped .githooks/pre-commit (gitleaks secret scan), but git only runs hooks from that directory after git config core.hooksPath .githooks — and neither README nor CONTRIBUTING said so (repository-baseline item 4: hook present, core.hooksPath not documented).

Adds the template's Getting Started step 2 to CONTRIBUTING.md (enable command, CLI install hint, --no-verify escape hatch) and renumbers the following steps. Docs only; no protected files.

🤖 Generated with Claude Code

… hook

The template upgrade added .githooks/pre-commit, but git only runs it after
`git config core.hooksPath .githooks`, and nothing in the repository said so.
Adds the template's Getting Started step (hook, CLI install, --no-verify).

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings September 18, 2026 01:21

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The new gitleaks install guidance omits Linux despite the shipped hook explicitly calling out Linux install guidance, leaving contributor instructions incomplete for a supported platform.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

Updates contributor documentation to explain how to enable and use the repo’s shipped gitleaks pre-commit hook (.githooks/pre-commit) by setting core.hooksPath, so contributors catch secret leaks before opening PRs.

Changes:

  • Add a new “Getting Started” step describing enabling the .githooks pre-commit secret scan (git config core.hooksPath .githooks).
  • Document installation hints for gitleaks and the git commit --no-verify escape hatch.
  • Renumber subsequent “Getting Started” steps accordingly.
File summaries
File Description
CONTRIBUTING.md Documents enabling the shipped gitleaks pre-commit hook and renumbers the onboarding steps.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread CONTRIBUTING.md Outdated
…ls", comma

Review feedback (repo-template#577 carries the same wording upstream).

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@Chris-Wolfgang
Chris-Wolfgang merged commit a7f7d0c into main Sep 18, 2026
16 checks passed
@Chris-Wolfgang
Chris-Wolfgang deleted the docs/hooks-path branch September 18, 2026 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants