action-setup icon indicating copy to clipboard operation
action-setup copied to clipboard

The action breaks the container environment in the openSUSE

Open ueokande opened this issue 1 year ago • 0 comments

When I use the action in the openSUSE container, the action breaks the environment after using pnpm/action-setup. I cannot run any commands with run directive. The job fails with the following error:

CI runtime exec failed: exec failed: unable to start container process: exec: "sh": executable file not found in $PATH: unknown

I guess GitHub Actions execute sh internally when we use container for a job.

Here is a minimal GitHub Action manifest to reproduce the issue. The id command run successfully, before and after pnpm/action-setup, in the Fedora and Debian container. For the openSUSE, the id command run successfully before pnpm/action-setup`, but the command fails after using the action.

name: 'build-test'
on:
  push:

jobs:
  test:
    strategy:
      fail-fast: false
      matrix:
        container:
          - fedora
          - debian
          - opensuse/leap
    runs-on: ubuntu-latest
    container: ${{ matrix.container }}
    steps:
      - name: prepare package.json
        run: |
          echo '{ "packageManager": "[email protected]" }' >package.json
      - run: id
      - uses: pnpm/action-setup@v3
      - run: id  # <-- command fails here

See the result in the GitHub Actions

ueokande avatar Feb 18 '24 08:02 ueokande