Skip to content

Commit

Permalink
chore: add pre-commit action
Browse files Browse the repository at this point in the history
Signed-off-by: Lukas Zapletal <[email protected]>
  • Loading branch information
lzap committed Nov 7, 2023
1 parent 9e4b26e commit 7b21ba7
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/gotest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ jobs:
make check-commits
working-directory: code
precommit:
name: "💾 Commit checks"
runs-on: ubuntu-latest
steps:
- uses: actions/setup-python@v3
- uses: pre-commit/[email protected]

build:
name: "🛠️ Go Build"
runs-on: ubuntu-latest
Expand Down
12 changes: 12 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
repos:
- repo: https://github.com/gitleaks/gitleaks
rev: v8.16.1
hooks:
- id: gitleaks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace-fixer
- id: end-of-file-fixer
- id: check-yaml
- id: check-json

0 comments on commit 7b21ba7

Please sign in to comment.