Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing permissions not permitted #22

Open
atournayre opened this issue May 1, 2023 · 4 comments
Open

Changing permissions not permitted #22

atournayre opened this issue May 1, 2023 · 4 comments

Comments

@atournayre
Copy link

I'm having an issue running the CI and here is the log.

Run php-actions/phpstan@v3
  with:
    path: src
    configuration: tools/phpstan/phpstsan.neon
    version: composer
    php_version: latest
    command: analyse
Run set -e
  set -e
  bash <(curl -s https://raw.githubusercontent.com/php-actions/php-build/59e915e4b8eeab830231a5dce6ad0998adebac05/php-build.bash) phpstan
  /home/runner/work/_actions/php-actions/phpstan/v3/phpstan-action.bash
  shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
  env:
    ACTION_TOKEN: ***
    ACTION_VERSION: composer
    ACTION_PHP_VERSION: latest
    ACTION_PHPSTAN_PATH: 
    ACTION_PHP_EXTENSIONS: 
    ACTION_COMMAND: analyse
    ACTION_PATH: src
    ACTION_CONFIGURATION: tools/phpstan/phpstsan.neon
    ACTION_LEVEL: 
    ACTION_PATHS_FILE: 
    ACTION_AUTOLOAD_FILE: 
    ACTION_ERROR_FORMAT: 
    ACTION_GENERATE_BASELINE: 
    ACTION_MEMORY_LIMIT: 
    ACTION_ARGS: 
Building PHP latest with extensions:  ...
chmod: changing permissions of '/home/runner/work/[PROJECT]/[PROJECT]/vendor/bin/phpstan': Operation not permitted
Error: Process completed with exit code 1.

CI was working well 3 days ago and today this issue. No change to the CI configuration of the project were made.

It seems that some new commits appends to this repos, maybe it could be related.

@g105b
Copy link
Member

g105b commented May 2, 2023

Hi, thank you for bringing this to my attention. You are right that the latest updates are probably to blame for this. Because of this, I will do some more rigorous testing and update soon.

In the meantime, a solution is to use a fixed version number for your action:

php-actions/phpstan@v3.0.2 will keep you clamped to the previous version. Using @v3 will receive updates. I test updates that are made to the v3 rolling release to try and avoid any knock-on effects like this, but it seems the latest update has introduced some backwards incompatible changes.

I will look into this, document accordingly, and possibly supply a revert commit to v3 and release v4 instead, if the changes can not be free from backwards breaking changes.

@atournayre
Copy link
Author

Thanks for your answer @g105b !

Fixing the version works like a charm.

Will you close this issue when it will be fixed or do I close it?

@g105b
Copy link
Member

g105b commented May 2, 2023

I'll close this issue once I've worked on and tested a solution. I'll keep you updated via this thread.

@ozahorulia
Copy link

ozahorulia commented Nov 21, 2023

I'm getting the same problem on both v3.0.2 and master:

with:
    memory_limit: 1G
    php_version: "8.1"
    php_extensions: redis
    path: src/
    version: composer
``

Result:
``
chmod: changing permissions of '/home/runner/work/<PROJECT>/<PROJECT>/vendor/bin/phpstan': Operation not permitted
``

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants