diff options
author | Colin Walters <walters@verbum.org> | 2021-08-26 17:25:59 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-26 17:25:59 -0400 |
commit | 77a86ccba31d742654fb167d1c6af23933215e28 (patch) | |
tree | ab76ee727dbaf1004b957a8e1c40d4507168b933 | |
parent | 6e32084b6752fd6306ab1241dd78b9c6b10e180c (diff) | |
parent | fdeee165f6f82b2902fb791e33472e4600845a2b (diff) | |
download | ostree-77a86ccba31d742654fb167d1c6af23933215e28.tar.gz |
Merge pull request #2424 from cgwalters/test-nonroot-ci
ci: Run GH action CI build+test as non-root
-rw-r--r-- | .github/workflows/tests.yml | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index df1b1e07..c17a1c0d 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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. |