diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 4739190a..697d2924 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -98,7 +98,12 @@ jobs: image: redhat/ubi8 options: "--user root" runs-on: ${{ matrix.os }} - container: ${{ matrix.container }} + container: + image: ${{ matrix.container.image }} + options: ${{ matrix.container.options }} + # An image without PATH in its config (e.g. rockylinux:9 9.9+) makes bash unfindable after setup-node. + env: + PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin steps: - uses: actions/checkout@v4 with: diff --git a/.github/workflows/test-cli.yml b/.github/workflows/test-cli.yml index 7666fadb..6ca60248 100644 --- a/.github/workflows/test-cli.yml +++ b/.github/workflows/test-cli.yml @@ -60,7 +60,11 @@ jobs: needs: resolve-version if: ${{ inputs.test_executables }} runs-on: ${{ matrix.os }} - container: ${{ matrix.container }} + container: + image: ${{ matrix.container }} + # rockylinux:9 (9.9+) sets no PATH in its image config; without it, bash isn't found after setup-node. + env: + PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin env: ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true @@ -250,7 +254,11 @@ jobs: needs: resolve-version if: ${{ inputs.test_npm }} runs-on: ${{ matrix.os }} - container: ${{ matrix.container }} + container: + image: ${{ matrix.container }} + # rockylinux:9 (9.9+) sets no PATH in its image config; without it, bash isn't found after setup-node. + env: + PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin env: ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true