Skip to content

[review] fix: rootless AWF install uses $HOME/.local and exports $GITHUB_PATH#41321

Merged
pelikhan merged 9 commits into
mainfrom
copilot/fix-rootless-awf-install-review-1782344030882
Jun 24, 2026
Merged

[review] fix: rootless AWF install uses $HOME/.local and exports $GITHUB_PATH#41321
pelikhan merged 9 commits into
mainfrom
copilot/fix-rootless-awf-install-review-1782344030882

Conversation

@github-actions

@github-actions github-actions Bot commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Caution

agentic threat detected
Threat detection flagged this output in warn mode. Manual review is REQUIRED before any follow-up automation.

Details

Potential security threats were detected in the agent output.

Review the workflow run logs for details.

test body

Generated by PR Description Updater for #41321 · 95.1 AIC · ⌖ 13 AIC · ⊞ 4.6K ·

Copilot AI and others added 9 commits June 24, 2026 22:37
- Retarget AWF_INSTALL_DIR/AWF_LIB_DIR to $HOME/.local/{bin,lib/awf} in
  rootless mode so standard GitHub-hosted runners (root-owned /usr/local)
  work without pre-chowning or sudo
- Replace the erroring rootless preflight with mkdir+verify so user dirs
  are created on demand
- Fix bundle wrapper to use ${AWF_LIB_DIR} instead of hardcoded
  /usr/local/lib/awf so the wrapper finds awf-bundle.js in the right place
- Export $GITHUB_PATH after rootless install so the bare awf invocation in
  later steps resolves correctly
- Update comment in copilot_engine_installation.go to reflect new behavior

Closes #41309

Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com>
The export PATH line in rootless mode was redundant: GitHub Actions
subsequent steps inherit PATH additions only via $GITHUB_PATH (not shell
exports), and the --version check at the end of the script already uses
the full path ${AWF_INSTALL_DIR}/${AWF_INSTALL_NAME} directly.

Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com>
…paths

Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com>
…nary_test.sh

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
…' into copilot/fix-rootless-awf-install

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Base automatically changed from copilot/fix-rootless-awf-install to main June 24, 2026 23:37
@pelikhan pelikhan merged commit 919d05c into main Jun 24, 2026
7 checks passed
@pelikhan pelikhan deleted the copilot/fix-rootless-awf-install-review-1782344030882 branch June 24, 2026 23:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants