From f67e53f72e2c09190b0b05b385a8c346b91be3c4 Mon Sep 17 00:00:00 2001 From: Kenneth Bingham Date: Thu, 22 Aug 2024 14:37:48 -0400 Subject: [PATCH] set runner user to root --- .github/workflows/test-deployments.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test-deployments.yml b/.github/workflows/test-deployments.yml index 45ee78fb7..ecd4b84ff 100644 --- a/.github/workflows/test-deployments.yml +++ b/.github/workflows/test-deployments.yml @@ -68,7 +68,9 @@ jobs: name: ${{ format('{0}:{1}', matrix.distro.name, matrix.distro.version) }} ${{ matrix.arch.gox }} runs-on: ubuntu-latest # iterate over an assortment of popular distribution images from the docker.io/library of vetted images - container: ${{ format('{0}:{1}', matrix.distro.name, matrix.distro.version) }} + container: + image: docker.io/library/${{ format('{0}:{1}', matrix.distro.name, matrix.distro.version) }} + options: --user 0:0 strategy: matrix: distro: @@ -116,10 +118,10 @@ jobs: ls -lR ./release/ case "${{ matrix.distro.type }}" in rpm) - sudo yum install -y ./release/*.${{ matrix.distro.type }} + yum install -y ./release/*.${{ matrix.distro.type }} ;; deb) - sudo apt install -y ./release/*.${{ matrix.distro.type }} + apt install -y ./release/*.${{ matrix.distro.type }} ;; esac