-
Notifications
You must be signed in to change notification settings - Fork 6
Add GitHub Actions workflow to validate AZD template #21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Co-authored-by: diberry <[email protected]>
Co-authored-by: diberry <[email protected]>
diberry
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a scheduled run every sunday night.
Co-authored-by: diberry <[email protected]>
Added scheduled run every Sunday at 9 PM UTC (cron: '0 21 * * 0'). Commit: ed10cdb |
diberry
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a scheduled run every sunday night.
|
The fails with 'ERROR: Bicep CLI not found. Install it now by running "az bicep install".' @copilot fix this issue in the PR |
|
@copilot Look at the failing check and fix it. |
Co-authored-by: diberry <[email protected]>
Fixed by adding explicit
Fixed the Bicep CLI installation error. Added |
Purpose
Validates Azure infrastructure templates on every change and on a weekly schedule using Azure CLI Bicep build and Microsoft Security DevOps template analyzer. Results upload to GitHub Security tab for tracking.
Does this introduce a breaking change?
Pull Request Type
How to Test
Workflow triggers automatically on:
azure.yamlorinfra/**files changeTo verify locally:
az bicep install az config set bicep.use_binary_from_path=false az bicep build -f infra/main.bicep --stdoutWhat to Check
Verify that the following are valid
templateanalyzertoolOther Information
Workflow structure:
az bicep installinfra/main.bicepwithaz bicep build --stdoutmicrosoft/security-devops-action@v1targeting IaC categoriesgithub/codeql-action/upload-sarif@v3Workflow triggers:
azure.yamlorinfra/**change0 21 * * 0)Permissions:
contents: read- checkout codesecurity-events: write- upload SARIF resultsactions: read- workflow metadataBug fix applied:
az bicep installstep to resolve "Bicep CLI not found" error that was causing workflow failuresAction versions pinned for reproducibility.
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.