Refactor awf command in workflows to set container working directory to GITHUB_WORKSPACE#4767
Conversation
There was a problem hiding this comment.
Pull request overview
This PR refactors the AWF (Agentic Workflow Firewall) command to set the container working directory to GITHUB_WORKSPACE, ensuring that the working directory inside the container matches the workspace path that the AI agent is informed about in prompts. This prevents path mismatches that could confuse the agent.
Key Changes
- Added
--container-workdirflag to AWF commands in copilot engine - Updated all generated workflow files to include the new flag
- Improved security by removing token length logging in ai-triage-campaign workflow
Reviewed changes
Copilot reviewed 22 out of 22 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| pkg/workflow/copilot_engine.go | Added --container-workdir argument to AWF command generation with proper quoting and explanatory comments |
| .github/workflows/weekly-issue-summary.lock.yml | Updated generated workflow to include --container-workdir flag |
| .github/workflows/technical-doc-writer.lock.yml | Updated generated workflow to include --container-workdir flag |
| .github/workflows/smoke-copilot.lock.yml | Updated generated workflow to include --container-workdir flag |
| .github/workflows/research.lock.yml | Updated generated workflow to include --container-workdir flag |
| .github/workflows/release-highlights.lock.yml | Updated generated workflow to include --container-workdir flag |
| .github/workflows/python-data-charts.lock.yml | Updated generated workflow to include --container-workdir flag |
| .github/workflows/mcp-inspector.lock.yml | Updated generated workflow to include --container-workdir flag |
| .github/workflows/glossary-maintainer.lock.yml | Updated generated workflow to include --container-workdir flag |
| .github/workflows/github-mcp-structural-analysis.lock.yml | Updated generated workflow to include --container-workdir flag |
| .github/workflows/firewall.lock.yml | Updated generated workflow to include --container-workdir flag |
| .github/workflows/docs-noob-tester.lock.yml | Updated generated workflow to include --container-workdir flag |
| .github/workflows/daily-repo-chronicle.lock.yml | Updated generated workflow to include --container-workdir flag |
| .github/workflows/daily-news.lock.yml | Updated generated workflow to include --container-workdir flag |
| .github/workflows/daily-fact.lock.yml | Updated generated workflow to include --container-workdir flag |
| .github/workflows/copilot-pr-prompt-analysis.lock.yml | Updated generated workflow to include --container-workdir flag |
| .github/workflows/copilot-pr-nlp-analysis.lock.yml | Updated generated workflow to include --container-workdir flag |
| .github/workflows/cli-version-checker.lock.yml | Updated generated workflow to include --container-workdir flag |
| .github/workflows/cli-consistency-checker.lock.yml | Updated generated workflow to include --container-workdir flag |
| .github/workflows/changeset.lock.yml | Updated generated workflow to include --container-workdir flag |
| .github/workflows/artifacts-summary.lock.yml | Updated generated workflow to include --container-workdir flag |
| .github/workflows/ai-triage-campaign.lock.yml | Removed token length logging for improved security; updated workflow to include --container-workdir flag |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…to GITHUB_WORKSPACE Signed-off-by: Jiaxiao (mossaka) Zhou <duibao55328@gmail.com>
see release notes: https://github.com/githubnext/gh-aw-firewall/releases/tag/v0.3.0 Signed-off-by: Jiaxiao (mossaka) Zhou <duibao55328@gmail.com>
8ccd036 to
d2cb97e
Compare
|
✅ Agentic Changeset Generator completed successfully. |
| "version": "v6", | ||
| "sha": "018cc2cf5baa6db3ef3c5f8a56943fffe632ef53" | ||
| }, | ||
| "actions/github-script@v7": { |
There was a problem hiding this comment.
we should not be using v7
Signed-off-by: Jiaxiao (mossaka) Zhou <duibao55328@gmail.com>
|
@copilot format, lint, fix tests |
|
✅ Agentic Changeset Generator completed successfully. |
* Initial plan * fix: remove actions/github-script@v7 from action pins and fix tests Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
|
✅ Agentic Changeset Generator completed successfully. |
This PR is waiting for a new release from theawfSigned-off-by: Jiaxiao (mossaka) Zhou duibao55328@gmail.com