Use sudo instead of su

This commit is contained in:
topjohnwu 2025-05-13 17:26:09 -07:00
parent 5a762f0a8e
commit b92626cacc

View File

@ -194,7 +194,7 @@ jobs:
- name: Run Cuttlefish test - name: Run Cuttlefish test
timeout-minutes: 10 timeout-minutes: 10
run: su $USER -c 'scripts/cuttlefish.sh test' run: sudo -E -u $USER scripts/cuttlefish.sh test
- name: Upload logs on error - name: Upload logs on error
if: ${{ failure() }} if: ${{ failure() }}