ci: Update CI and CodeQL workflows to include additional paths #518
ci: Update CI and CodeQL workflows to include additional paths #518Roopan-Microsoft merged 3 commits intomicrosoft:devfrom
Conversation
…ment and analysis
There was a problem hiding this comment.
Pull request overview
This PR optimizes CI/CD workflow efficiency by adding path filters to GitHub Actions workflows, ensuring they only run when relevant files are modified. The changes reduce unnecessary workflow executions for the Deploy-Test-Cleanup Pipeline and CodeQL security scanning.
Key Changes:
- Added path filters to CI workflow to trigger only on changes to infrastructure, application code, deployment scripts, or Azure configuration
- Added path filters to CodeQL workflow to trigger only on changes to application code directories while excluding build configuration files
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
.github/workflows/CI.yml |
Added path filters for infra/**, App/**, Deployment/**, and azure.yaml to trigger workflow only on relevant changes |
.github/workflows/codeql.yml |
Added path filters for App subdirectories with exclusions for .gitignore, Dockerfile, and .dockerignore files to focus CodeQL scans on actual code changes |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
🎉 This PR is included in version 1.2.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Purpose
This pull request updates the GitHub Actions workflow triggers to make CI and CodeQL jobs run only when relevant files are changed. This helps reduce unnecessary workflow runs and improves efficiency.
Workflow trigger improvements:
.github/workflows/CI.ymlto only trigger on changes to files in theinfra,App, andDeploymentdirectories, orazure.yaml..github/workflows/codeql.ymlto only trigger on changes to specific subdirectories (App/backend-api,App/frontend-app,App/kernel-memory) or the workflow file itself, and to ignore changes to.gitignore,Dockerfile, and.dockerignorefiles.Does this introduce a breaking change?
Golden Path Validation
Deployment Validation
What to Check
Verify that the following are valid
Other Information