Skip to content

Commit f3bf1b1

Browse files
authored
Merge pull request #25 from OpenCortexIDE/fix-linux-electron-sandbox
Fix linux electron sandbox
2 parents d9a84b7 + 2a599ce commit f3bf1b1

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/pr-linux-test.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,19 @@ jobs:
155155
env:
156156
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
157157

158+
- name: Configure Electron sandbox permissions
159+
if: ${{ inputs.electron_tests || inputs.remote_tests }}
160+
run: |
161+
set -e
162+
ELECTRON_ROOT=.build/electron
163+
if [ -f "$ELECTRON_ROOT/chrome-sandbox" ]; then
164+
sudo chown root "$ELECTRON_ROOT/chrome-sandbox"
165+
sudo chmod 4755 "$ELECTRON_ROOT/chrome-sandbox"
166+
stat "$ELECTRON_ROOT/chrome-sandbox"
167+
else
168+
echo "Warning: chrome-sandbox not found at $ELECTRON_ROOT/chrome-sandbox"
169+
fi
170+
158171
- name: 🧪 Run unit tests (Electron)
159172
if: ${{ inputs.electron_tests }}
160173
timeout-minutes: 15

0 commit comments

Comments
 (0)