Remove XPIA prompt injection step and configuration#10085
Merged
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Remove XPIA prompt insertion step and prompt file
Remove XPIA prompt injection step and configuration
Jan 15, 2026
Contributor
|
@copilot merge main, recompile |
…rompt-step # Conflicts: # .github/workflows/security-fix-pr.lock.yml
Contributor
Author
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.
Remove XPIA Prompt Insertion Step and Prompt File
This PR removes the XPIA (Cross-Prompt Injection Attack) security warning functionality from gh-aw workflows.
Summary of Changes
Removed Files:
actions/setup/md/xpia_prompt.md- XPIA security warning prompt filepkg/workflow/xpia_test.go- XPIA-specific test fileModified Files:
pkg/workflow/prompts.go- RemovedgenerateXPIAPromptStep()functionpkg/workflow/compiler_yaml.go- Removed call to generate XPIA steppkg/workflow/sh.go- RemovedxpiaPromptFileconstantpkg/workflow/compiler_types.go- RemovedSafetyPromptfield fromWorkflowDatapkg/workflow/tools_types.go- RemovedSafetyPromptfield fromToolsConfigpkg/workflow/frontmatter_extraction_metadata.go- RemovedextractSafetyPromptSetting()pkg/workflow/compiler_orchestrator.go- Removed safety-prompt extraction and initializationpkg/workflow/codex_engine.go- Removed SafetyPrompt field initializationpkg/workflow/tools_parser.go- RemovedparseSafetyPromptTool()and referencespkg/parser/schemas/main_workflow_schema.json- Removedsafety-promptschema definitionpkg/parser/schemas/included_file_schema.json- Removedsafety-promptschema definitiondocs/src/content/docs/reference/frontmatter-full.md- Removed safety-prompt documentationspecs/layout.md- Removed xpia_prompt.md reference.lock.ymlworkflow files - Recompiled without XPIA stepTest Updates:
temp_folder_test.go,importable_tools_test.go,prompt_step_test.go, andprompt_step_helper_test.goRecent Updates
Validation Results
✅ Build: Successfully compiled binary with embedded schemas
✅ Recompile: All 123 workflow files compiled successfully
✅ Format: All Go, JavaScript, and JSON files properly formatted
✅ Lint: No linting issues detected
✅ Tests: All XPIA-related tests removed; remaining test failures are pre-existing (confirmed on base commit)
Pre-existing Test Failures (Not Related to This PR)
The following tests were already failing on the base commit before these changes:
TestGenerateSafeOutputsConfig/create-agent-session_configTestGenerateFilteredToolsJSON(multiple subtests)TestGetSafeOutputsToolsJSONThese failures are unrelated to XPIA removal and existed before this PR.
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.