php-actions / composer

Use the Composer CLI in your Github Actions.
174 stars 54 forks source link

Unable to execute composer-action.bash in act #119

Open ibindoff opened 2 months ago

ibindoff commented 2 months ago
      - name: Do composer install for SAP backend
        uses: php-actions/composer@v6.1.0
        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/php-actions-composer@v6.1.1/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?

g105b commented 1 month ago

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