# Download the patch from the workflow run
gh run download 32529700625 -n agent -D /tmp/agent-32529700625
# Create a new branch
git checkout -b q/pr-sous-chef-cwi-approval-65c3c0ccf560d8bb main
# Apply the patch (--3way handles cross-repo patches)
git am --3way /tmp/agent-32529700625/aw-q-pr-sous-chef-cwi-approval.patch
# Push the branch and create the pull request
git push origin q/pr-sous-chef-cwi-approval-65c3c0ccf560d8bb
gh pr create --title '[q] pr-sous-chef: approve CWI workflow runs alongside CGO/CJS' --base main --head q/pr-sous-chef-cwi-approval-65c3c0ccf560d8bb --repo github/gh-aw
Q Workflow Optimization Report
Issue Found
PR Sous Chef (
.github/workflows/pr-sous-chef.md)/qcomment on issue Fix two CodeQL alerts in pkg/workflow: allocation overflow and unsafe JS quoting #54574: after Copilot finishes a round of review-feedback fixes, PRs can idle withaction_requiredchecks waiting oncgo.yml,cjs.yml, and/orCWI.yml(the Go/JS/Windows CI workflows requiring maintainer approval to run).pr-sous-chefalready had logic to detect and approve action-requiredcjs.yml/cgo.ymlruns (using theAWI_MAINTENANCE_TOKENmaintenance secret, same token used for its nudge comments) but was missingCWI.yml(Windows CI) from the allowlist, so Windows-only action-required runs were left stuck.Changes Made
.github/workflows/pr-sous-chef.mdCWI.ymlto theapprove-workflow-run.allowed-workflowssafe-output configuration (alongside existingcjs.yml,cgo.yml).gh run listfilter query to also match.github/workflows/CWI.yml.AWI_MAINTENANCE_TOKENusage — it already backs bothadd-commentandapprove-workflow-runsafe outputs, matching the maintenance-token requirement from the request.Expected Improvements
pr-sous-chefwill now auto-approve action-required Windows CI (CWI.yml) runs in addition to Go (cgo.yml) and JS (cjs.yml) runs, using the same maintenance token already configured, unblocking idling PRs waiting only on maintainer test approval.Validation
Compiled successfully with the
gh-aw compiletool (pre-built binary, since the repo'sgo.modtoolchain requirement could not be downloaded in this sandbox):Note:
.lock.ymlis intentionally excluded from this PR and will be regenerated automatically after merge.Warning
Protected Files — Push Permission Denied
This was originally intended as a pull request, but the patch modifies protected files. A human must create the pull request manually.
Protected files
Create the pull request manually
Warning
Firewall blocked 1 domain
The following domain was blocked by the firewall during workflow execution:
proxy.golang.orgTo allow these domains, add them to the
network.allowedlist in your workflow frontmatter:See Network Configuration for more information.