Skip to content

Commit 0f91268

Browse files
committed
Fix FreeBSD CI: run without user directive as non-root runner
1 parent 6d11750 commit 0f91268

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/freebsd.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,10 @@ jobs:
7070
test -f scripts/sniproxy.rc
7171
7272
# Smoke test: start sniproxy with a test config
73+
# cross-platform-actions runs as uid 1001 (runner), not root,
74+
# so omit user directive (can't drop privileges without root)
7375
echo "Running as: $(whoami) (uid=$(id -u))"
7476
printf '%s\n' \
75-
'user nobody' \
7677
'error_log { syslog daemon }' \
7778
'listener 127.0.0.1:18443 {' \
7879
' protocol tls' \
@@ -90,7 +91,7 @@ jobs:
9091
src/sniproxy -c /tmp/sniproxy-test.conf
9192
sleep 2
9293
93-
ps aux | grep sniproxy | grep -v grep
94+
ps aux | grep sniproxy | grep -v grep || true
9495
9596
# Check process flags for capability mode (0x100 bit)
9697
set +e

0 commit comments

Comments
 (0)