Skip to content

docs: allow unchanged default-branch workflow runs without dry-run - #77570

Merged
pelikhan merged 1 commit into
mainfrom
pelikhan-dependabot-workflow
Nov 13, 2026
Merged

pelikhan merged 1 commit into
mainfrom
pelikhan-dependabot-workflow

Conversation

@pelikhan

Copy link
Copy Markdown
Collaborator

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

  • Add an explicit default-branch exception and require verification of the published revision before and after dispatch.
  • Preserve security review, explicit authorization, effect and monitoring bounds, and stricter host/repository restrictions, including Copilot cloud's dry-run-only rule.
  • Keep changed workflows subject to the existing branch preparation gates and add a focused guidance regression.

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.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI adaptive review requested due to automatic review settings November 13, 2026 22:11
@pelikhan
pelikhan merged commit be1dfd6 into main Nov 13, 2026
17 checks passed
@pelikhan
pelikhan deleted the pelikhan-dependabot-workflow branch November 13, 2026 22:11
Copilot stopped reviewing on behalf of pelikhan due to an error November 13, 2026 22:11

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 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.
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v1.3.0

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants