From 2fbc5590846bb9ceec54175e7d4e0d339b04dcf9 Mon Sep 17 00:00:00 2001 From: Helio Chissini de Castro Date: Fri, 8 Sep 2023 09:52:29 +0200 Subject: [PATCH] fix(docker): Android snippet need privileges to change permissions Signed-off-by: Helio Chissini de Castro --- scripts/docker_snippets/android.snippet | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/docker_snippets/android.snippet b/scripts/docker_snippets/android.snippet index 59b33f357e088..bbf9908b0fe8f 100644 --- a/scripts/docker_snippets/android.snippet +++ b/scripts/docker_snippets/android.snippet @@ -21,6 +21,6 @@ ENV ANDROID_USER_HOME=$HOME/.android ENV PATH=$PATH:$ANDROID_HOME/cmdline-tools/latest/bin:$ANDROID_HOME/cmdline-tools/bin ENV PATH=$PATH:$ANDROID_HOME/platform-tools COPY --from=ghcr.io/oss-review-toolkit/android --chown=$USER:$USER $ANDROID_HOME $ANDROID_HOME -RUN chmod -R o+rw $ANDROID_HOME +RUN sudo chmod -R o+rw $ANDROID_HOME RUN syft $ANDROID_HOME -o spdx-json --file /usr/share/doc/ort/ort-android.spdx.json