Skip to content

Commit f49455a

Browse files
committed
fix(ci): add execute permissions for Copilot binary on Linux
- Fixes permission denied error when running agent scenarios - Dynamically locates and chmod +x the copilot binary
1 parent 9adaeb9 commit f49455a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/agent-scenarios.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,14 @@ jobs:
4141
python -m pip install --upgrade pip
4242
python -m pip install -r requirements.txt
4343
44+
- name: Fix Copilot binary permissions (Linux/Mac)
45+
run: |
46+
COPILOT_BIN=$(python -c "import copilot; import os; print(os.path.join(os.path.dirname(copilot.__file__), 'bin', 'copilot'))")
47+
if [ -f "$COPILOT_BIN" ]; then
48+
chmod +x "$COPILOT_BIN"
49+
echo "✓ Made copilot binary executable: $COPILOT_BIN"
50+
fi
51+
4452
- name: Validate required secrets
4553
env:
4654
PROVIDER: ${{ inputs.provider }}

0 commit comments

Comments
 (0)