[BUG] GitHub Action leaves files with wrong permissions
Describe the bug.
When running the asyncapi/cli GitHub Action on a non-root self-hosted runner, the permissions of the files in the mounted directories are messed up. This seems to be a common issue when running docker containers as root on self-hosted runners, see https://github.com/actions/runner/issues/434.
Expected behavior
The docker container is using the same UID as the runner and the permissions of the mounted directories remain unchanged.
Screenshots
How to Reproduce
- Setup a non-root self-hosted runner
- Use the asyncapi/cli action in a workflow with a checkout beforehand
- Run the workflow, it should succeed
- Run the workflow, it should fail on the checkout step
🥦 Browser
None
👀 Have you checked for similar open issues?
- [x] I checked and didn't find similar issue
🏢 Have you read the Contributing Guidelines?
- [x] I have read the Contributing Guidelines
Are you willing to work on this issue ?
None
Welcome to AsyncAPI. Thanks a lot for reporting your first issue. Please check out our contributors guide and the instructions about a basic recommended setup useful for opening a pull request.
Keep in mind there are also other channels you can use to interact with AsyncAPI community. For more details check out this issue.
@boonto @AceTheCreator Can I work on this bug
This issue has been automatically marked as stale because it has not had recent activity :sleeping:
It will be closed in 120 days if no further activity occurs. To unstale this issue, add a comment with a detailed explanation.
There can be many reasons why some specific issue has no activity. The most probable cause is lack of time, not lack of interest. AsyncAPI Initiative is a Linux Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model.
Let us figure out together how to push this issue forward. Connect with us through one of many communication channels we established here.
Thank you for your patience :heart: