Repository navigation
chore: enhance pre-commit hooks and add gitleaks configuration for secret scanning - #41
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Coverage variation | ✅ +0.16% coverage variation (-1.00%) |
| Diff coverage | ✅ ∅ diff coverage |
Coverage variation details
Coverable lines Covered lines Coverage Common ancestor commit (7e307cc) 1259 1037 82.37% Head commit (b3c3ce7) 1259 (+0) 1039 (+2) 82.53% (+0.16%) Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch:
<coverage of head commit> - <coverage of common ancestor commit>
Diff coverage details
Coverable lines Covered lines Diff coverage Pull request (#41) 0 0 ∅ (not applicable) Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified:
<covered lines added or modified>/<coverable lines added or modified> * 100%
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Description
This pull request enhances the project's code quality and security checks by expanding and configuring pre-commit hooks, adding secret scanning, and improving workflow safety. The most important changes are organized below by theme.
Pre-commit and Workflow Safety Enhancements:
.pre-commit-config.yamlto check for large files, executable scripts, private keys, and prevent direct commits to protected branches (main,dev,master,testing)..github/workflows/ci.yml) to skip local-only pre-commit hooks (branch guard and secret scan) during CI runs, ensuring these checks are only enforced locally.Secret Scanning Improvements:
.gitleaks.tomlconfiguration file to standardize secret scanning across repositories, enabling default rules but disabling the generic API key rule to avoid false positives, and adding allowlists for third-party bundles and placeholder secrets.gitleaksas a pre-commit hook to automatically scan for secrets before commits.Additional Linting and Validation Hooks:
actionlint, JSON schema checks for GitHub workflows and Dependabot, and Python project validation to further improve code and configuration quality.Related Issues
Type of Change
Checklist