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 dfa2e9a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/gotest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,18 @@ env:

jobs:
commit:
name: "💾 Commit message"
name: "💾 Commit message and checks"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 2
path: code
- uses: actions/setup-python@v3
- uses: pre-commit/[email protected]
with:
path: code
- uses: actions/checkout@v3
with:
repository: "RHEnVision/changelog"
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 dfa2e9a

Please sign in to comment.