Skip to content

Refactor awf command in workflows to set container working directory to GITHUB_WORKSPACE#4767

Merged
Mossaka merged 7 commits into
mainfrom
update-to-awf-v0.3.0
Nov 25, 2025
Merged

Refactor awf command in workflows to set container working directory to GITHUB_WORKSPACE#4767
Mossaka merged 7 commits into
mainfrom
update-to-awf-v0.3.0

Conversation

@Mossaka
Copy link
Copy Markdown
Collaborator

@Mossaka Mossaka commented Nov 25, 2025

This PR is waiting for a new release from the awf

Signed-off-by: Jiaxiao (mossaka) Zhou duibao55328@gmail.com

Copilot AI review requested due to automatic review settings November 25, 2025 19:03
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-workdir flag 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>
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Nov 25, 2025

✅ Agentic Changeset Generator completed successfully.

Comment thread .github/aw/actions-lock.json Outdated
"version": "v6",
"sha": "018cc2cf5baa6db3ef3c5f8a56943fffe632ef53"
},
"actions/github-script@v7": {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should not be using v7

@pelikhan
Copy link
Copy Markdown
Collaborator

@copilot format, lint, fix tests

Copy link
Copy Markdown
Contributor

Copilot AI commented Nov 25, 2025

@pelikhan I've opened a new pull request, #4777, to work on those changes. Once the pull request is ready, I'll request review from you.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Nov 25, 2025

✅ 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>
@Mossaka Mossaka added smoke and removed smoke labels Nov 25, 2025
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Nov 25, 2025

✅ Agentic Changeset Generator completed successfully.

@Mossaka Mossaka merged commit 6e2795a into main Nov 25, 2025
46 checks passed
@Mossaka Mossaka deleted the update-to-awf-v0.3.0 branch November 25, 2025 20:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants