Skip to content

fix: remove restrictive bash allowlist from test-improver workflow#3887

Merged
lpcox merged 1 commit intomainfrom
fix/test-improver-bash-allowlist
Apr 15, 2026
Merged

fix: remove restrictive bash allowlist from test-improver workflow#3887
lpcox merged 1 commit intomainfrom
fix/test-improver-bash-allowlist

Conversation

@lpcox
Copy link
Copy Markdown
Collaborator

@lpcox lpcox commented Apr 15, 2026

Problem

The Test Improver workflow failed (#3838) because the AWF sandbox blocked make agent-finished — the workflow had a restrictive bash allowlist that only permitted specific commands like go test -v ./....

Same root cause as #3826 (go-logger workflow).

Agent's report_incomplete reason:

Unable to execute make agent-finished command. The system is enforcing a permission restriction that prevents execution of binaries and commands.

Fix

  • Replace restrictive bash allowlist with bash: true (AWF sandbox provides security)
  • Add go ecosystem identifier to network.allowed for module downloads
  • Recompile lock file

Closes #3838

The Test Improver workflow (#3838) failed because the agent tried to
run 'make agent-finished' but the bash allowlist only permitted
specific commands. The AWF sandbox already provides security.

Changes:
- Remove restrictive bash command allowlist, use 'bash: true' instead
- Add 'go' ecosystem identifier to network.allowed for module downloads
- Recompile lock file

Closes #3838

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings April 15, 2026 17:14
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

Removes an overly restrictive bash command allowlist from the Test Improver agentic workflow so it can execute required make targets within the AWF sandbox, and updates networking rules to support Go module downloads.

Changes:

  • Add go to network.allowed in the workflow frontmatter.
  • Replace the bash command allowlist with bash: true.
  • Recompile the workflow lockfile to reflect the updated network/tool permissions.
Show a summary per file
File Description
.github/workflows/test-improver.md Expands network allowlist for Go and enables unrestricted bash tool usage (per AWF sandbox model).
.github/workflows/test-improver.lock.yml Regenerated compiled workflow to include the updated domain allowlist and tool permissions.

Copilot's findings

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 2/2 changed files
  • Comments generated: 0

@lpcox lpcox merged commit 54ed8b2 into main Apr 15, 2026
13 checks passed
@lpcox lpcox deleted the fix/test-improver-bash-allowlist branch April 15, 2026 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[aw] Test Improver failed

2 participants