Fix agent job: symlink Copilot CLI from toolcache to /usr/local/bin/copilot - #429
Merged
Merged
Conversation
…opilot The `install_copilot_cli.sh 1.0.56` step finds the binary in the runner toolcache at `/opt/hostedtoolcache/copilot-cli/1.0.56/x64/bin/copilot` and adds it to PATH, but does NOT create a symlink at the hardcoded path `/usr/local/bin/copilot` that the AWF harness expects. Add a "Symlink Copilot CLI to expected path" step after each install step in both agent jobs that creates `/usr/local/bin/copilot -> $(command -v copilot)` whenever the binary isn't already there. Co-authored-by: BenjaminMichaelis <[email protected]>
Copilot
AI
changed the title
[WIP] Fix failing GitHub Actions job agent
Fix agent job: symlink Copilot CLI from toolcache to /usr/local/bin/copilot
Aug 12, 2026
Co-authored-by: BenjaminMichaelis <[email protected]>
There was a problem hiding this comment.
Pull request overview
This PR aims to fix the Dependabot Major Version Reviewer agent job failing when the AWF harness checks for an absolute /usr/local/bin/copilot path, by adjusting the generated workflow and related action locks.
Changes:
- Bumped
github/gh-aw-actions/setupused by the generateddependabot-major-review.lock.ymlworkflow tov0.86.2. - Updated
.github/aw/actions-lock.jsonto lockgithub/gh-aw-actions/[email protected]to the new SHA. - Updated the local composite action
.github/actions/setup-nodeto useactions/setup-node@v7(fromv6).
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| .github/workflows/dependabot-major-review.lock.yml | Updates the locked workflow to use github/gh-aw-actions/[email protected]. |
| .github/aw/actions-lock.json | Updates the action lock entry for github/gh-aw-actions/setup to v0.86.2 and its SHA. |
| .github/actions/setup-node/action.yml | Bumps actions/setup-node used by the composite action from v6 to v7. |
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
98
to
103
| - name: Setup Scripts | ||
| id: setup | ||
| uses: github/gh-aw-actions/setup@2709137ea6c5b0e19aa621454dc643ea8dc526b1 # v0.85.4 | ||
| uses: github/gh-aw-actions/setup@6aab9e5b5c91c615506061f09bedd81a23babe3c # v0.86.2 | ||
| with: | ||
| destination: ${{ runner.temp }}/gh-aw/actions | ||
| job-name: ${{ github.job }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
Dependabot Major Version Revieweragent job was failing at Execute GitHub Copilot CLI becauseinstall_copilot_cli.sh 1.0.56resolves from the runner toolcache (/opt/hostedtoolcache/copilot-cli/1.0.56/x64/bin/copilot) and only adds that path toPATH— it does not create/usr/local/bin/copilot, which the AWF harness checks via absoluteF_OK(not PATH resolution).Changes
dependabot-major-review.lock.yml— added a "Symlink Copilot CLI to expected path" step after each "Install GitHub Copilot CLI" step in both agent jobs:The guard (
[ ! -f /usr/local/bin/copilot ]) makes this a no-op when the binary is already at the expected path (e.g., a future non-cached install that writes directly to/usr/local/bin).Context
The prior fix (PR #426) pinned the engine to
1.0.56to use the cached binary instead of attempting a network download. That eliminated the download failure but surfaced this path mismatch: cached installs never write to/usr/local/bin, while release-download installs do.