Study FAQ
How can I preview GitHub Agentic Workflow outputs without applying their writes?
Also asked as 2
- How does staged mode work for gh-aw safe outputs?
- What should I check before treating a gh-aw run as a safe-output preview?
Answer
Set staged: true under safe-outputs to preview its writes in the GitHub Actions step summary instead of applying them. You can also stage one output type, but other enabled types can still execute normally. Inspect effective defaults and independent integrations before treating the whole run as having no write effects.
For example:
safe-outputs:
staged: true
create-issue:
This stages the configured safe-output writes. By contrast, staging only create-pull-request while leaving add-comment unstaged allows the comment path to execute. Staged handlers may still read target resources to validate filters.
Omitting safe-outputs does not establish a no-write workflow. With no section, or only system output types, gh-aw automatically enables create-issue with a maximum of one issue and workflow-based labels and title prefix. Setting create-issue: false disables that tool and its automatic reporting instruction while retaining system outputs; it does not disable every other effect path.
Before an authorized preview run, inspect source and compiled configuration for each enabled or implicit output, custom handler and external credential. Afterward, compare the step summary with actual affected resources. A preview for one output type is evidence about that handler's staged behavior, not proof that authored steps or external services made no changes.
References: Safe Outputs, Security Architecture.
Full explanation
GH-700: Constrain Workflow Effects with Permissions and Safe Outputs
Study guide · GH-700
Read the full explanation