Closed
Add guarded body_file support to safe-output update handlers#48883
body_file support to safe-output update handlers#48883Conversation
5 tasks
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Contributor
|
Caution agentic threat detected DetailsThe threat detection engine failed to produce results. Review the workflow run logs for details. Thanks for starting this work on file-backed body support in safe_outputs! 👋 This is an important feature for secure content delivery, and the checklist clearly outlines the implementation phases. Status & Next Steps: Since this is in [WIP] draft status, here's what's needed to move toward readiness:
Once the code and tests are in place and the checklist items are completed, this should be ready for review. Keep up the great progress! 🚀
|
Copilot
AI
changed the title
[WIP] Add support for local body file references in safe_outputs
Add guarded Jul 29, 2026
body_file support to safe-output update handlers
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.
Safe outputs required large edited bodies to be emitted inline even when the authoritative content already existed on disk, increasing token pressure for editor/update workflows. This change adds opt-in file-backed bodies for update operations without weakening the existing safe-output security model.
Scope
body_file+body_sha256on:update_issueupdate_discussionupdate_pull_requestbody-file: trueRuntime safeguards
RUNNER_TEMP/gh-aw-safe/Validation and schema
body_fileandbody_sha256body_filerequiresbody_sha256)bodyandbody_filecannot both be set)Pipeline parity
bodyAuditability
Docs
body-file: truefor the supported update handlersExample:
{ "type": "update_discussion", "discussion_number": 123, "body_file": "gh-aw-safe/body.md", "body_sha256": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef" }