Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core.addPath() can break $PATH in the openSUSE container #1680

Closed
ueokande opened this issue Mar 2, 2024 · 1 comment
Closed

core.addPath() can break $PATH in the openSUSE container #1680

ueokande opened this issue Mar 2, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@ueokande
Copy link

ueokande commented Mar 2, 2024

Describe the bug

When I use core.addPath() in the openSUSE container, it breaks $PATH in the container and any command fails with the following error:

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

Here is a minimal reproduction repository: https://github.com/ueokande/actions-add-path. The action script calls core.addPath() with the custom path. The GitHub Action manifest to reproduce the error is the following:

name: 'ci'
on:
  push:

jobs:
  test:
    strategy:
      fail-fast: false
      matrix:
        container:
          - fedora
          - debian
          - opensuse/leap
    runs-on: ubuntu-latest
    container: ${{ matrix.container }}
    steps:
      - run: id
      - uses: ueokande/actions-add-path@master
      - run: id

It works as expected in the Fedora and Debian containers, but openSUSE does not work.

Expected behavior
The core.addPath() should work in the openSUSE container as other distributions.

Screenshots
Screenshot 2024-03-02 at 10-10-04 use root action · ueokande_actions-add-path@c63ed73
Job result

Additional context
Add any other context about the problem here.

@ueokande ueokande added the bug Something isn't working label Mar 2, 2024
@ueokande ueokande changed the title The core.addPat()h can break $PATH in the openSUSE container core.addPath() can break $PATH in the openSUSE container Mar 2, 2024
@ueokande
Copy link
Author

I found that this issue is caused by the runner agent. I've reported actions/runner#3210 and close this issue. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant