[WIP] Fix missing GitHub Project URL in workflow #12809
Closed
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.
Fix missing GH_AW_PROJECT_URL for missing_data handler ✅
Problem
The
missing_datasafe output handler doesn't have access toGH_AW_PROJECT_URLenvironment variable when the workflow has aproject:configured in frontmatter. This caused issues when the agent tried to record missing data about the GitHub Project URL itself, as described in workflow run: https://github.com/githubnext/gh-aw/actions/runs/21527086220/job/62033708029Root Cause
GH_AW_PROJECT_URLwas only added to the "Process Project-Related Safe Outputs" step but NOT to the "Process Safe Outputs" step wheremissing_data(and other non-project safe outputs) are handled.Solution
GH_AW_PROJECT_URLto the main safe outputs handler stepChanges Made
GH_AW_PROJECT_URLenvironment variable to thebuildHandlerManagerStepfunction (lines 185-191), making it available to all safe output handlersGH_AW_PROJECT_URLis included when a workflow has a project configured.github/workflows/dependabot-burner.lock.ymlto include the new environment variable in the "Process Safe Outputs" stepImpact
missing_datahandler can now properly reference the project URL when recording missing dataVerification
Security Summary
✅ No vulnerabilities found by CodeQL security scanner
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.