Skip to content
Merged
Show file tree
Hide file tree
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
44 changes: 44 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
repos:
- repo: https://github.com/rhysd/actionlint
rev: v1.7.12
hooks:
- id: actionlint

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

- repo: https://github.com/DavidAnson/markdownlint-cli2
rev: v0.22.1
hooks:
- id: markdownlint-cli2-docker

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-json
- id: check-merge-conflict
- id: check-added-large-files
- id: mixed-line-ending

- repo: https://github.com/scop/pre-commit-shfmt
rev: v3.13.1-1
hooks:
- id: shfmt-docker
args: [-sr, -i, '2', -w, -ci]
files: \.(sh|bats)$

- repo: https://github.com/koalaman/shellcheck-precommit
rev: v0.11.0
hooks:
- id: shellcheck
files: \.(sh|bats)$

- repo: https://github.com/woodruffw/zizmor-pre-commit
rev: v1.25.2
hooks:
- id: zizmor
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ And setup an alias like this:
alias json='docker run -i --rm chorrell/json:latest'
```


## Using the GitHub Container Registry image

The lateset version of this image is published to the GitHub Container Registry. You can use it like this:
Expand Down
2 changes: 1 addition & 1 deletion test.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"name": "Christopher",
"value": true
}
}