Skip to content

Commit 8827f21

Browse files
committed
fix: simplify raw socket capability command for Linux in CI workflow
1 parent 3818067 commit 8827f21

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
# unfortunately, raw sockets require elevated privileges to run tests, and neither capabilities nor sudo are supported on Linux runners
3333
- name: Set raw socket capability (Linux)
3434
if: runner.os == 'Linux'
35-
run: sudo env "PATH=$PATH" setcap 'cap_net_raw+eip' "$(which node)"
35+
run: sudo setcap cap_net_raw+eip $(which node)
3636

3737
- name: Run tests (Unit)
3838
if: runner.os != 'Windows'

0 commit comments

Comments
 (0)