Add the following to your .pre-commit-config.yaml:
repos:
- repo: https://github.com/cybozu/pre-commit-jsonnet
rev: v0.3.2
hooks:
- id: jsonnet-fmt
args: ["--test"] # you can specify any options of jsonnetfmt command
- id: jsonnet-lint
args: [] # you can specify any options of jsonnet-lint command
Update pinned GitHub Actions
This repository uses pinact to update and verify pinned GitHub Actions.
GITHUB_TOKEN="$(gh auth token)" pinact run --update --min-age 14