diff --git a/action.yml b/action.yml index a4b8332..4efbd2e 100644 --- a/action.yml +++ b/action.yml @@ -107,7 +107,7 @@ runs: id: composer_run run: | set -e - bash <(curl -s https://raw.githubusercontent.com/php-actions/php-build/v2.2.0/php-build.bash) composer + bash <(curl -s https://raw.githubusercontent.com/php-actions/php-build/8e7b8be8ce6c9bc342fc698b9a35de69e7b855b7/php-build.bash) composer ${{ github.action_path }}/composer-action.bash shell: bash diff --git a/composer-action.bash b/composer-action.bash index b61a22f..a208faf 100755 --- a/composer-action.bash +++ b/composer-action.bash @@ -203,9 +203,10 @@ fi echo "name=full_command::${command_string}" >> $GITHUB_OUTPUT docker run --rm \ + --user $(id -u):$(id -g) \ --volume "${github_action_path}/composer.phar":/usr/local/bin/composer \ - --volume ~/.gitconfig:/root/.gitconfig \ - --volume ~/.ssh:/root/.ssh \ + --volume ~/.gitconfig:/home/runner/.gitconfig \ + --volume ~/.ssh:/home/runner/.ssh \ --volume "${GITHUB_WORKSPACE}":/app \ --volume "/tmp/composer-cache":/tmp/composer-cache \ --workdir ${container_workdir} \ @@ -213,3 +214,5 @@ docker run --rm \ --network host \ ${memory_limit} \ ${docker_tag} ${command_string} + +ls -la