mirror of
https://github.com/ostreedev/ostree.git
synced 2024-12-25 01:34:34 +03:00
Merge pull request #2424 from cgwalters/test-nonroot-ci
ci: Run GH action CI build+test as non-root
This commit is contained in:
commit
77a86ccba3
5
.github/workflows/tests.yml
vendored
5
.github/workflows/tests.yml
vendored
@ -120,8 +120,11 @@ jobs:
|
||||
- name: Install dependencies
|
||||
run: ./ci/gh-install.sh ${{ matrix.extra-packages }}
|
||||
|
||||
- name: Add non-root user
|
||||
run: "useradd builder && chown -R -h builder: ."
|
||||
|
||||
- name: Build and test
|
||||
run: ./ci/gh-build.sh ${{ matrix.configure-options }}
|
||||
run: runuser -u builder -- ./ci/gh-build.sh ${{ matrix.configure-options }}
|
||||
env:
|
||||
# GitHub hosted runners currently have 2 CPUs, so run 2
|
||||
# parallel make jobs.
|
||||
|
Loading…
Reference in New Issue
Block a user