Skip to content

chore: enhance pre-commit hooks and add gitleaks configuration for secret scanning - #41

Merged
Ajimaru merged 1 commit into
devfrom
chore/hooks-followup
Dec 2, 2026
Merged

Ajimaru merged 1 commit into
devfrom
chore/hooks-followup

Conversation

@Ajimaru

@Ajimaru Ajimaru commented Dec 2, 2026

Copy link
Copy Markdown
Owner

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:

  • Added several new pre-commit hooks in .pre-commit-config.yaml to check for large files, executable scripts, private keys, and prevent direct commits to protected branches (main, dev, master, testing).
  • Configured the CI workflow (.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:

  • Introduced a .gitleaks.toml configuration 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.
  • Integrated gitleaks as a pre-commit hook to automatically scan for secrets before commits.

Additional Linting and Validation Hooks:

  • Added hooks for 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

  • Bugfix
  • Feature
  • Docs
  • Refactor
  • Security

Checklist

  • Description of change
  • Related issue(s)
  • Tests added / updated
  • Documentation updated

@Ajimaru Ajimaru self-assigned this Dec 2, 2026
@Ajimaru Ajimaru added the ci CI, build or workflow changes label Dec 2, 2026
@coderabbitai

coderabbitai Bot commented Dec 2, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 241faf39-06b5-4a58-b937-b1a4c0f44ef9

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@Ajimaru

Ajimaru commented Dec 2, 2026

Copy link
Copy Markdown
Owner Author

✅ Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
✅ Code Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@codacy-production

codacy-production Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Coverage ∅ diff coverage · +0.16% coverage variation

Metric Results
Coverage variation ✅ +0.16% coverage variation (-1.00%)
Diff coverage ✅ ∅ diff coverage

View coverage diff in Codacy

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

codecov Bot commented Dec 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@Ajimaru
Ajimaru merged commit f0eedd5 into dev Dec 2, 2026
26 checks passed
@Ajimaru
Ajimaru deleted the chore/hooks-followup branch December 2, 2026 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci CI, build or workflow changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant