{"id":31955886,"url":"https://github.com/cisagov/pre-commit-packer","last_synced_at":"2025-10-14T14:32:30.795Z","repository":{"id":40495200,"uuid":"322932090","full_name":"cisagov/pre-commit-packer","owner":"cisagov","description":"Provides pre-commit hooks for Packer projects.","archived":false,"fork":false,"pushed_at":"2025-10-06T21:28:50.000Z","size":624,"stargazers_count":19,"open_issues_count":9,"forks_count":18,"subscribers_count":4,"default_branch":"develop","last_synced_at":"2025-10-06T23:26:12.921Z","etag":null,"topics":["git-hooks","packer","pre-commit"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cisagov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-12-19T20:26:29.000Z","updated_at":"2025-09-18T15:10:26.000Z","dependencies_parsed_at":"2024-11-20T20:19:06.731Z","dependency_job_id":"28d480f5-aee6-4d5b-8ad3-c32c59d3b26b","html_url":"https://github.com/cisagov/pre-commit-packer","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/cisagov/pre-commit-packer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cisagov%2Fpre-commit-packer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cisagov%2Fpre-commit-packer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cisagov%2Fpre-commit-packer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cisagov%2Fpre-commit-packer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cisagov","download_url":"https://codeload.github.com/cisagov/pre-commit-packer/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cisagov%2Fpre-commit-packer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279019126,"owners_count":26086680,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-14T02:00:06.444Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["git-hooks","packer","pre-commit"],"created_at":"2025-10-14T14:30:57.602Z","updated_at":"2025-10-14T14:32:30.785Z","avatar_url":"https://github.com/cisagov.png","language":"Shell","readme":"# pre-commit-packer #\n\n[![GitHub Build Status](https://github.com/cisagov/pre-commit-packer/workflows/build/badge.svg)](https://github.com/cisagov/pre-commit-packer/actions)\n\nThis is a set of [pre-commit](https://pre-commit.com) hooks intended for\nprojects using [Packer](https://www.packer.io/).\n\n## Available Hooks ##\n\n\u003e [!NOTE]\n\u003e You can pass arguments to these hooks through the normal use of the `args` block\n\u003e in your pre-commit configuration. These arguments should align with whatever options\n\u003e you wish to pass to the underlying `packer` command. However, any arguments that\n\u003e take values must be in the form `-argument=value` rather than `-argument value`\n\u003e to ensure proper processing.\n\n### `packer_fmt` ###\n\nThis hook ensures that any `.pkr.hcl` or `.pkrvars.hcl` files are properly formatted\nusing the `packer fmt` command. The hook will update files by default, but that\nbehavior can be overridden by changing the arguments passed to the hook.\n\n### `packer_validate` ###\n\nThis hook checks that a Packer configuration is valid by running `packer validate`\nagainst any directory that houses `.pkr.hcl` files.\n\n\u003e [!NOTE]\n\u003e The hook will change to each directory and run `packer init` before running\n\u003e `packer validate`.\n\n## Usage ##\n\n```yaml\nrepos:\n  - repo: https://github.com/cisagov/pre-commit-packer\n    rev: v0.3.1\n    hooks:\n      - id: packer_fmt\n      - id: packer_validate\n```\n\n## Contributing ##\n\nWe welcome contributions!  Please see [`CONTRIBUTING.md`](CONTRIBUTING.md) for\ndetails.\n\n## License ##\n\nThis project is in the worldwide [public domain](LICENSE).\n\nThis project is in the public domain within the United States, and\ncopyright and related rights in the work worldwide are waived through\nthe [CC0 1.0 Universal public domain\ndedication](https://creativecommons.org/publicdomain/zero/1.0/).\n\nAll contributions to this project will be released under the CC0\ndedication. By submitting a pull request, you are agreeing to comply\nwith this waiver of copyright interest.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcisagov%2Fpre-commit-packer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcisagov%2Fpre-commit-packer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcisagov%2Fpre-commit-packer/lists"}