{"repo":"Azure4DevOps/check-azure-bicep","free":true,"listed":false,"github":"https://github.com/Azure4DevOps/check-azure-bicep","clone":"git clone https://github.com/Azure4DevOps/check-azure-bicep.git","description":"Pre-commit hooks for Azure Bicep validation, with built-in support for GitHub Workflows, Azure Pipelines, and more! Enabling shift left approach for Azure Bicep infrastructure as code.","language":"Bicep","stars":28,"topics":["azure","bicep","cli","git","pre-commit","azure-devops","github-actions","shift-left"],"license":"MIT","category":"cli-tools","readme_excerpt":"[![pre-commit][pre-commit-image]][pre-commit-link] [pre-commit-image]: https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&style=flat-square [pre-commit-link]: https://github.com/pre-commit/pre-commit check-azure-bicep pre-commit hooks for Azure Bicep validation, with built-in support for GitHub Workflows, Azure Pipelines, and more! Enabling shift left approach for Azure Bicep infrastructure as code. About This repository provide one hook to use with pre-commit that validate bicep files: it will call az bicep build . It requires the az bicep toolchain installed, and uses az bicep under the hood. Demo Example usage of pre-commit run --all-files and git commit after hook innstall in git repository pre-commit install Azure Bicep Install To install az bicep use install or install or az bicep install for Azure cli. pre-commit Install Before you can run hooks, you need to have the pre-commit package manager installed. Using pip: Example usage Add a snippet to your .pre-commit-config.yaml file in root of repository. Example local run run pre-commit install to set up the git hook scripts in your git repository # scan all modyfied miles before making commint (git hooks) or run pre-commit run --all-files # scanning all files at result all bicep files will or modified will be validated doing az bicep build Example Azure Pipelines usage azure-pipelines-ci.yml Example Github Workflow usage github-action-ci.yml 📄 License This project is distributed under the terms","default_branch":null,"files":null,"tree":[],"storefront":"/r/Azure4DevOps","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Azure4DevOps/check-azure-bicep/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}