Skip to content

composer should be executed by the user with same uid:gid as owner of composer.json #31

Closed
@zaporylie

Description

@zaporylie

I've experienced this issue by running following 2-steps-job on the self-hosted runner:

 steps:
    - uses: actions/checkout@v2
    - uses: php-actions/composer@v4

I've managed to debug this issue and it is happening because actions/checkout cannot reset the state of the workdir, which is caused by php-actions/composer running as root:root. However,actions/checkout is being run by the same user who "owns" the self-hosted runner (non-root user).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions