From aac0e2f24f53fa043e5e85567c096f8f124abcde Mon Sep 17 00:00:00 2001 From: Robert Sturla Date: Sun, 5 Jan 2025 11:30:27 +0000 Subject: [PATCH] fix: no-op sudo --- .github/workflows/build.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 18ef01a..6e9d9e8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -59,15 +59,21 @@ jobs: id-token: write steps: - - name: Checkout - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 - - - name: Install Podman + - name: Setup Container run: | dnf install -y \ + git \ podman \ skopeo + echo -e "#!/bin/bash\nexec \"\$@\"" > /usr/bin/sudo + chmod +x /usr/bin/sudo + + mkdir -p /home/runner/work/${{ github.repository_name }}/${{ github.repository_name }} + + - name: Checkout + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 + - name: Setup Just uses: extractions/setup-just@dd310ad5a97d8e7b41793f8ef055398d51ad4de6 # v2