ci: Add Bicep Parameter Validation Workflow and Script#499
ci: Add Bicep Parameter Validation Workflow and Script#499Harsh-Microsoft wants to merge 11 commits intodevfrom
Conversation
…-bicep-params.yml
There was a problem hiding this comment.
Pull request overview
Introduces an automated CI workflow to validate that infra/**/*.parameters.json parameter names match their corresponding Bicep param declarations, with artifacts and scheduled email notifications to surface issues early.
Changes:
- Added
infra/scripts/validate_bicep_params.pyto discover Bicep/parameter-file pairs and validate mapping/casing/whitespace and some conventions. - Added
.github/workflows/validate-bicep-params.ymlto run the validator on PRs, on a weekly schedule, and via manual dispatch; publish results and (on schedule) notify via Logic App.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| infra/scripts/validate_bicep_params.py | New Python validator for Bicep ↔ parameters.json mapping checks, reporting, and JSON output for CI artifacts. |
| .github/workflows/validate-bicep-params.yml | New GitHub Actions workflow to run the validator (standard + strict), upload artifacts, and send scheduled notifications. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…andling and notifications
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…in validate-bicep-params.yml
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…plify notification conditions
…tification conditions
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Purpose
This pull request introduces a new GitHub Actions workflow to automate the validation of Bicep parameter files in the repository. The workflow is designed to run on a schedule, on pull requests affecting infrastructure files, or manually, and provides feedback through summary reports, artifact uploads, and optional email notifications.
The most important changes are:
Workflow Automation for Bicep Parameter Validation:
.github/workflows/validate-bicep-params.ymlthat validates all Bicep parameter files under theinfra/directory using a Python script, running on a schedule, on PRs tomainanddev, or via manual dispatch.Notification and Error Handling:
Does this introduce a breaking change?
Golden Path Validation
Deployment Validation
What to Check
Verify that the following are valid
Other Information