AWF creates a root-owned `.gradle` directory that the agent can’t write to
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 78/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- docker, shell, typescript
- Domain
- devops, infrastructure
Research direction
Start with containers/agent/entrypoint.sh around lines 384–403, where AWF seeds Gradle proxy settings and sets ownership. Trace how the fresh ~/.gradle directory is created, preserving existing directories and gradle.properties. Reproduce with the issue’s ./gradlew --version steps and verify Gradle can create its wrapper lock file without elevated privileges.
Written by the indexing model from the issue text.
Description
When AWF seeds Gradle’s proxy settings on a fresh runner, it creates ~/.gradle as root. The entrypoint gives awfuser ownership of gradle.properties, but the directory stays root:root with mode 0755.
To reproduce: Run ./gradlew --version in an AWF agent with proxy configuration enabled, a fresh agent home, and no cached Gradle distribution. The wrapper fails before downloading Gradle because it can’t create its lock file under ~/.gradle/wrapper/dists.
Expected: When AWF creates ~/.gradle, the agent can write there without elevated privileges. AWF should not change ownership of existing directories or overwrite an existing gradle.properties.
We observed this on AWF v0.29.11 in a GitHub-hosted run. The same ownership behavior is present in the v0.29.21 entrypoint.
- Dominant language
- TypeScript
- Stars
- 169
- Forks
- 89
- Avg merge
- 5h 18m
- Merged PRs (30d)
- 450
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from github/gh-aw-firewall
-
code-quality refactoring
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
github/gh-aw-firewall#12411 ·
Maintainers usually reply within 1 day
-
code-quality refactoring
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
github/gh-aw-firewall#12345 ·
Maintainers usually reply within 1 day
-
[Duplicate Code] Repeated lstat identity-swap stub and fixture setup in src/nvx/live-mount-policy.test.tsPossibly taken @lpcox claimed this 1 day ago. Opencode-quality refactoring
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
github/gh-aw-firewall#12023 · 1 reaction · 2 assignees ·
Maintainers usually reply within 1 day
-
awf-triage
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
github/gh-aw-firewall#11612 ·
Maintainers usually reply within 1 day
-
agentic-workflows automated dependencies
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
github/gh-aw-firewall#3837 ·
Maintainers usually reply within 1 day
All issues in github/gh-aw-firewall
Similar issues
-
agents-window vscode api adoption
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
alefragnani/vscode-copy-word#126 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
opensro-dev/opensro#4949 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
agent:linux priority:high
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
fa0311/better-tokuly#1204 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 73/100
Maintainers usually reply within 1 day