-
Notifications
You must be signed in to change notification settings - Fork 36
Fix GH_AW_WORKFLOW_ID propagation to safe_outputs job for create_pull_request #7029
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Co-authored-by: mnkiefer <[email protected]>
…st step Fixes the missing GH_AW_WORKFLOW_ID environment variable in the safe_outputs job for create_pull_request operations. This was causing 100% failure rate with error: "GH_AW_WORKFLOW_ID environment variable is required". Changes: - Added GH_AW_WORKFLOW_ID to buildCreatePullRequestStepConfig (using mainJobName) - Added GH_AW_BASE_BRANCH to buildCreatePullRequestStepConfig - Added GH_AW_PR_ALLOW_EMPTY environment variable - Changed GH_AW_PR_DRAFT to always be set (with default true) - Changed GH_AW_PR_IF_NO_CHANGES to always be set (with default "warn") - Added GH_AW_COMMENT_ID and GH_AW_COMMENT_REPO when reaction is configured - Added GH_AW_PR_EXPIRES when configured for same-repo PRs - Fixed targetRepoSlug to be passed correctly to buildStandardSafeOutputEnvVars - Added comprehensive test coverage for environment variable propagation Co-authored-by: mnkiefer <[email protected]>
Co-authored-by: mnkiefer <[email protected]>
|
🎉 Yo ho ho! Changeset Generator found the treasure and completed successfully! ⚓💰 |
|
🤖 DIAGNOSTIC COMPLETE: Smoke Copilot No Firewall STATUS: ALL_UNITS_OPERATIONAL. MISSION_SUCCESS. |
|
📰 VERDICT: Smoke Copilot has concluded. All systems operational. This is a developing story. 🎤 |
|
✨ The prophecy is fulfilled... Smoke Codex has completed its mystical journey. The stars align. 🌟 |
|
🎉 Yo ho ho! Smoke Copilot Safe Inputs found the treasure and completed successfully! ⚓💰 |
|
✅ Firewall validation complete... Smoke Codex Firewall confirmed network sandboxing is operational. 🛡️ |
|
🎬 THE END — Smoke Claude MISSION: ACCOMPLISHED! The hero saves the day! ✨ |
Smoke Test: Copilot Engine (No Firewall) - FAILPRs Reviewed (last 2 merged):
Test Results:
Overall Status: FAIL - safeinputs-gh tool unavailable
|
Smoke Test Results✅ File Writing: Created test file successfully Overall Status:
|
Smoke Test: Copilot Engine (Run 20387184651)Last 2 merged PRs:
Test Results:
Overall: PASS ✅ cc
|
|
PRs: Fix smoke-copilot-safe-inputs workflow testing disabled tools; Rename Firewall Escape Test Agent to The Great Escapi
|
Smoke Test ResultsLast 2 merged PRs:
✅ GitHub MCP Testing Overall Status: FAIL (5/6 tests passed)
|
|
Recent merged PRs: Fix smoke-copilot-safe-inputs workflow testing disabled tools; Remove redundant structure explanation from quick start
|
The consolidated safe outputs implementation was missing critical environment variables for
create_pull_requestoperations, causing 100% failure rate with "GH_AW_WORKFLOW_ID environment variable is required".Changes
Updated
buildCreatePullRequestStepConfigincompiler_safe_outputs_consolidated.go:GH_AW_WORKFLOW_ID(from mainJobName) andGH_AW_BASE_BRANCH(required by create_pull_request.cjs)GH_AW_PR_ALLOW_EMPTY,GH_AW_COMMENT_ID/REPO, andGH_AW_PR_EXPIRESto match non-consolidated implementationGH_AW_PR_DRAFTandGH_AW_PR_IF_NO_CHANGESto always be set with defaults (true, "warn")buildStandardSafeOutputEnvVarsAdded test coverage:
create_pull_request_env_vars_test.govalidates all environment variables with full/default/cross-repo configurationsThe consolidated mode now matches the original implementation's environment variable setup, enabling create_pull_request to generate unique branch names in the format
${workflowId}-${randomHex}.Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.