Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ repos:
exclude: "^.*drawio$"
- id: detect-private-key
exclude: "^.*drawio$"

# - id: detect-aws-credentials
# exclude: "^.*drawio$"
- id: check-ast
Expand All @@ -39,3 +40,22 @@ repos:
# hooks:
# - id: cspell
# docker run --rm -v $PWD:/app madewithlove/htaccess-cli -p _site https://orionrobots.co.uk/wiki/usb - verified htaccess on one file. But doesnt validate whole file syntax.

- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
rev: 3.2.1
hooks:
- id: editorconfig-checker
alias: ec

- repo: https://github.com/gitleaks/gitleaks
rev: v8.16.1
hooks:
- id: gitleaks

- repo: https://github.com/semgrep/pre-commit
rev: 'v1.117.0'
hooks:
- id: semgrep-docker
require_serial: true
pass_filenames: false
args: ["ci", "--dry-run", "--baseline-commit", "HEAD"]
Copy link
Preview

Copilot AI Aug 8, 2025

Choose a reason for hiding this comment

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

Using HEAD as the baseline commit may cause issues in CI/CD environments where the commit history differs. Consider using a more stable reference like the main branch or a specific commit hash.

Suggested change
args: ["ci", "--dry-run", "--baseline-commit", "HEAD"]
args: ["ci", "--dry-run", "--baseline-commit", "main"]

Copilot uses AI. Check for mistakes.