From 8f5719e6b442bf87b94a4279700adecfd23957a0 Mon Sep 17 00:00:00 2001 From: webbrain-one <295484252+webbrain-one@users.noreply.github.com> Date: Sun, 9 Aug 2026 22:44:55 +0300 Subject: [PATCH] Fix write permissions for mounted source volume The container runs as the `app` user, which previously lacked write permissions to the mounted source volume. This caused `--dump` and `--addon` features to fail when generating `.dump` files. Adjust permissions to ensure the `app` user can write to the source directory. Closes #54 Fixes #41 --- lib/runner.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/runner.py b/lib/runner.py index c787bf6..2ddf2a0 100644 --- a/lib/runner.py +++ b/lib/runner.py @@ -22,6 +22,9 @@ def run(self): config = self._decode_config() self._print_debug('[cppcheck] config: {}'.format(config)) + # Ensure app user can write to the source volume for dumps/addons + subprocess.run(['chmod', '-R', 'a+w', '/src'], stdout=subprocess.PIPE, stderr=subprocess.PIPE) + workspace = Workspace(config.get('include_paths')) workspace_files = workspace.calculate()