Skip to content

ci: Add Bicep parameter validation workflow and script#2149

Open
Harsh-Microsoft wants to merge 2 commits intoAzure-Samples:devfrom
Harsh-Microsoft:hb-psl-38859
Open

ci: Add Bicep parameter validation workflow and script#2149
Harsh-Microsoft wants to merge 2 commits intoAzure-Samples:devfrom
Harsh-Microsoft:hb-psl-38859

Conversation

@Harsh-Microsoft
Copy link
Copy Markdown
Contributor

@Harsh-Microsoft Harsh-Microsoft commented Apr 3, 2026

Purpose

This pull request introduces a new GitHub Actions workflow for validating Bicep parameter files in the repository. The workflow is designed to run automatically on a schedule, on pull requests to main and dev branches, and can also be triggered manually. It checks the integrity of Bicep parameter mappings, uploads validation results, and sends email notifications to the team based on the outcome.

The most important changes are:

New CI/CD Workflow for Bicep Parameter Validation

  • Added .github/workflows/validate-bicep-params.yml to automate validation of Bicep parameter files in the infra/ directory. The workflow runs on a schedule (weekly), on pull requests to main and dev, and via manual triggers.
  • The workflow uses scripts/validate_bicep_params.py to perform strict validation, outputs results to summary and artifact, and fails the workflow if errors are detected.

Notification and Reporting Enhancements

  • On scheduled runs, the workflow sends an email notification using a Logic App webhook if validation fails or succeeds, including detailed results and a link to the workflow run.
  • Validation results are uploaded as an artifact (infra_results.json) and retained for 30 days for audit and troubleshooting purposes.

Does this introduce a breaking change?

  • Yes
  • No

How to Test

  • Get the code
git clone [repo-address]
cd [repo-name]
git checkout [branch-name]
npm install
  • Test the code

What to Check

Verify that the following are valid

  • ...

Other Information

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant