Repository navigation
docs: allow unchanged default-branch workflow runs without dry-run - #77570
Merged
Merged
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The unchanged-workflow exception conflicts with linked preparation requirements and does not explicitly require a completed agentic security review for the published source/lock hashes.
2 open issues
What changed in this PR
Updates gh-aw’s live-testing guidance to allow explicitly requested, unchanged default-branch workflows to run without dry-run compilation or a separate feature branch, subject to existing safety restrictions.
Changes:
- Adds a default-branch exception with published-revision review and commit verification before and after dispatch.
- Preserves changed-workflow preparation gates and stricter restrictions, including Copilot cloud’s dry-run-only rule.
- Adds a focused regression test for the new guidance.
| File | Description |
|---|---|
.github/skills/agentic-workflows/tests/test_guidance.py |
Adds assertions for the unchanged default-branch execution guidance. |
.github/aw/debug-live-testing.md |
Documents the exception and distinguishes unchanged runs from branch-based workflow testing. |
Review effort: Max (dynamic)
Comment on lines
+16
to
+18
| default branch, **dry-run is not required** if the workflow is unmodified. | ||
| Do not recompile, replace its published lock with a diagnostic lock, or require | ||
| a feature branch solely to dispatch that workflow. |
Comment on lines
+21
to
+25
| Review the published source, generated lock, imports and pins at that commit; | ||
| apply the authorization, effect-scope, run/time/spend bounds, monitoring and | ||
| stop conditions in [Live Debug Loop](#live-debug-loop). Dispatch with | ||
| `gh aw run WORKFLOW --ref DEFAULT_BRANCH`, rechecking the remote commit before | ||
| dispatch and verifying the resulting run SHA. |
Contributor
|
🎉 This pull request is included in a new release. Release: |
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.

Why
Running an existing, unmodified workflow from the default branch should not require dry-run compilation or a separate feature branch solely for dispatch.
Changes
Validation
The new regression and the edited guide's instruction-prefix check pass. The guidance suite passed 79 of 80 tests; the existing verbatim Squad prompt test fails on this Windows CRLF checkout. The final repository gate is blocked by prefix-byte limits in three untouched instruction files.
No workflow source or generated lock was changed, and no workflow was dispatched.