fix: Restrict deploy workflow to manual trigger only#849
Merged
Conversation
Remove push trigger to prevent automatic resource provisioning. The workflow now only runs via workflow_dispatch. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the GitHub Actions deploy workflow to prevent automatic Azure provisioning by removing the push trigger, leaving the workflow runnable only via workflow_dispatch (manual invocation). This aligns with the repo’s operational needs since the workflow runs azd up, which can create/modify Azure resources and incur cost if run unintentionally.
Changes:
- Removed the
pushtrigger (including branch/path filters) from.github/workflows/azure-dev.yml. - Kept
workflow_dispatchas the sole workflow trigger.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Prajwal-Microsoft
approved these changes
May 15, 2026
Contributor
|
🎉 This PR is included in version 2.5.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Removes
pushand/orpull_requesttriggers from the deploy workflow (azure-dev.yml). The workflow now only runs viaworkflow_dispatch(manual trigger).Why
The workflow runs
azd upwhich provisions Azure resources. Auto-triggering on every push/PR causes unintended resource provisioning without cleanup, leading to orphaned resource groups and unnecessary costs.