Error code 128 #348
-
Hi I get this kind of error:
I don't know how this fix this kind of issue. I work on PR that is open-source. Link to the PR |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Thanks for reporting. In your specific case the problem looks like this:
As mentioned in the docs, if possible we suggest running linter/fixers on the However, the project you're working on could use the The updated workflow would look like this name: Run tests & format
on:
workflow_dispatch:
pull_request:
+ pull_request_target:
push:
branches:
- main
jobs:
test:
name: Run tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: nanasess/setup-php@master
with:
php-version: 8.1
- name: Install Dependencies
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress
- name: Composer dump-autoload
run: composer dump-autoload
- name: Execute tests (Unit and Feature tests) via PHPUnit
run: vendor/phpunit/phpunit/phpunit Tests
format:
name: Fix PHP Coding Style
runs-on: ubuntu-latest
+ permissions:
+ contents: write
steps:
- uses: actions/checkout@v4
with:
+ # Checkout the fork/head-repository and push changes to the fork.
+ # If you skip this, the base repository will be checked out and changes
+ # will be committed to the base repository!
+ repository: ${{ github.event.pull_request.head.repo.full_name }}
+ # Checkout the branch made in the fork. Will automatically push changes
+ # back to this branch.
+ ref: ${{ github.head_ref }}
- uses: nanasess/setup-php@master
with:
php-version: 8.1
- name: Install Dependencies
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress
- name: Composer dump-autoload
run: composer dump-autoload
- name: Run php-cs-fixer
run: ./vendor/bin/php-cs-fixer fix
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Apply php-cs-fixer changes |
Beta Was this translation helpful? Give feedback.
Hi @flavio-schoute
Thanks for reporting.
This error is related to a known problem when the action is used in public repositories. (We have some documentation for this, which would be intended for the maintainer of the project your contributing to)
In your specific case the problem looks like this:
plug-and-pay/sdk-php
repository is checked out with a token that is associated with your userplug-and-pay/sdk-php
repository with a token associated with your user. Your user probably doesn't have the permis…