diff --git a/.github/workflows/autoformat.yml b/.github/workflows/autoformat.yml index f0d20e85a..529b76934 100644 --- a/.github/workflows/autoformat.yml +++ b/.github/workflows/autoformat.yml @@ -31,7 +31,7 @@ jobs: - uses: actions/checkout@v4 with: ref: ${{ github.head_ref }} - token: ${{ secrets.GA_PAT }} + token: ${{ secrets.GA_PAT == '' && secrets.GA_PAT || secrets.GITHUB_TOKEN }} - uses: shivammathur/setup-php@v2 with: @@ -59,7 +59,7 @@ jobs: - uses: actions/checkout@v4 with: ref: ${{ github.head_ref }} - token: ${{ secrets.GA_PAT }} + token: ${{ secrets.GA_PAT == '' && secrets.GA_PAT || secrets.GITHUB_TOKEN }} - uses: shivammathur/setup-php@v2 with: