This is a set of pre-commit hooks intended for projects using Packer.
Hook name | Description |
---|---|
packer_validate |
Validate all Packer templates. |
packer_fmt |
Check that Packer HCL templates are properly formatted. |
repos:
- repo: https://github.com/cisagov/pre-commit-packer
rev: v0.0.2
hooks:
- id: packer_validate
args:
- manual_file_entry
- id: packer_fmt
This hook matches any paths ending in packer.json
and .pkr.hcl
by default.
File paths can be added for checking manually as additional arguments.
We welcome contributions! Please see CONTRIBUTING.md
for
details.
This project is in the worldwide public domain.
This project is in the public domain within the United States, and copyright and related rights in the work worldwide are waived through the CC0 1.0 Universal public domain dedication.
All contributions to this project will be released under the CC0 dedication. By submitting a pull request, you are agreeing to comply with this waiver of copyright interest.