composer icon indicating copy to clipboard operation
composer copied to clipboard

Unable to execute composer-action.bash in act

Open ibindoff opened this issue 1 year ago • 3 comments

      - name: Do composer install for SAP backend
        uses: php-actions/[email protected]
        with:
          php_version: "8.2"
          container_workdir: backend
          working_dir: backend

Executing with act. Providing GITHUB_TOKEN et al. via .secrets file. e.g. act -b --secret-file my.secrets

| Building PHP 8.2 with extensions:  ...
| /var/run/act/workflow/6-composite-composer_run.sh: line 4: /var/run/act/actions/[email protected]/composer-action.bash: Permission denied

Issue: Since v6.1.1 we're unable to execute this script in the container. 6.1.0 does not exhibit this same error.

Possible fix: Seems like a simple permissions error, need to add +x?

ibindoff avatar Jul 04 '24 01:07 ibindoff

I would expect to see this script as executable already, but I'll double check on this version and provide an update if possible.

g105b avatar Jul 11 '24 06:07 g105b

I have a similar error

| Building PHP latest with extensions: ... | /usr/local/bin/docker-php-entrypoint: exec: line 9: composer: Permission denied

alanef avatar Sep 25 '24 10:09 alanef

Same here: /usr/local/bin/docker-php-entrypoint: exec: line 9: composer: Permission denied

saitho avatar Oct 05 '24 18:10 saitho