cli icon indicating copy to clipboard operation
cli copied to clipboard

[BUG] GitHub Action leaves files with wrong permissions

Open boonto opened this issue 9 months ago • 2 comments

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

  1. Setup a non-root self-hosted runner
  2. Use the asyncapi/cli action in a workflow with a checkout beforehand
  3. Run the workflow, it should succeed
  4. 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?

Are you willing to work on this issue ?

None

boonto avatar Feb 27 '25 08:02 boonto

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.

github-actions[bot] avatar Feb 27 '25 08:02 github-actions[bot]

@boonto @AceTheCreator Can I work on this bug

Rustix69 avatar Mar 05 '25 21:03 Rustix69

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:

github-actions[bot] avatar Jul 04 '25 00:07 github-actions[bot]