Skip to content

ci: Update CI and CodeQL workflows to include additional paths #518

Merged
Roopan-Microsoft merged 3 commits intomicrosoft:devfrom
Harmanpreet-Microsoft:dev
Dec 23, 2025
Merged

ci: Update CI and CodeQL workflows to include additional paths #518
Roopan-Microsoft merged 3 commits intomicrosoft:devfrom
Harmanpreet-Microsoft:dev

Conversation

@Harmanpreet-Microsoft
Copy link
Copy Markdown
Contributor

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:

  • Updated .github/workflows/CI.yml to only trigger on changes to files in the infra, App, and Deployment directories, or azure.yaml.
  • Updated .github/workflows/codeql.yml to 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 .dockerignore files.

Does this introduce a breaking change?

  • Yes
  • No

Golden Path Validation

  • I have tested the primary workflows (the "golden path") to ensure they function correctly without errors.

Deployment Validation

  • I have validated the deployment process successfully and all services are running as expected with this change.

What to Check

Verify that the following are valid

  • ...

Other Information

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread .github/workflows/CI.yml
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread .github/workflows/CI.yml Outdated
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@Roopan-Microsoft Roopan-Microsoft merged commit 1f5a12e into microsoft:dev Dec 23, 2025
8 checks passed
@github-actions
Copy link
Copy Markdown

🎉 This PR is included in version 1.2.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants