Skip to content

setup.sh: Permission denied #245

@baconcheese113

Description

@baconcheese113

I get the following Permission denied error when running this action locally on Windows 11 with nektos/act

[main/android]   🐳  docker exec cmd=[bash --noprofile --norc -e -o pipefail /var/run/act/workflow/2-composite-flutter-action.sh] user= workdir=
| /var/run/act/workflow/2-composite-flutter-action.sh: line 2: /var/run/act/actions/subosito-flutter-action@v2.10.0/setup.sh: Permission denied

I'm using this command to run

act -P macos-12=ghcr.io/catthehacker/ubuntu:runner-latest

And my docker container has the following file permissions for the subosito-flutter-action folder

$ cd /var/run/act/actions/subosito-flutter-action@v2.10.0
$ ls -al
total 40
drwxr-xr-x 5 runner runner 4096 Sep  9 20:11 .
drwxr-xr-x 4 root   root   4096 Sep  9 20:11 ..
drwxr-xr-x 4 runner runner 4096 Sep  9 20:11 .git
drwxr-xr-x 3 runner runner 4096 Sep  9 20:11 .github
-rw-rw-rw- 1 runner runner 1102 Sep  9 19:50 LICENSE
-rw-rw-rw- 1 runner runner 3947 Sep  9 20:11 README.md
-rw-rw-rw- 1 runner runner 2236 Sep  9 19:50 action.yml
-rw-rw-rw- 1 runner runner 5213 Sep  9 20:11 setup.sh
drwxr-xr-x 2 runner runner 4096 Sep  9 20:11 test

I tried chmoding the setup.sh file in the container directly, however it's reset each time the action is run

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions