Skip to content

Commit

Permalink
No permissions, but tokens...
Browse files Browse the repository at this point in the history
  • Loading branch information
javagl committed Oct 15, 2023
1 parent 8a49e5c commit 7f70d92
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,14 @@ jobs:
build:
runs-on: ubuntu-latest

permissions: write-all

steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Checkout PR
run: gh pr checkout ${{ github.event.pull_request.number }}
env:
GH_TOKEN: ${{ github.token }}
run: gh pr checkout ${{ github.event.pull_request.number }}

- name: Set up PHP
uses: shivammathur/setup-php@v2
Expand All @@ -36,6 +34,8 @@ jobs:
php util/model.php --no-warn --check --update --process-repo --verbose
- name: Commit list of files back into the repository
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
Expand Down

0 comments on commit 7f70d92

Please sign in to comment.