diff --git a/.github/workflows/reformat-code.yml b/.github/workflows/reformat-code.yml index b24baa37ed..d415b6bbe3 100644 --- a/.github/workflows/reformat-code.yml +++ b/.github/workflows/reformat-code.yml @@ -18,6 +18,9 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 + with: + token: ${{ secrets.BOT_PAT }} + - name: Do reformat uses: leventeBajczi/intellij-idea-format@v1.0 with: @@ -31,9 +34,10 @@ jobs: commit-message: "Reformatted code" branch: "code-reformat" title: '[AutoPR] Reformatted code' + token: ${{ secrets.BOT_PAT }} - name: Commit changes if: ${{ inputs.direct-commit }} uses: stefanzweifel/git-auto-commit-action@3ea6ae190baf489ba007f7c92608f33ce20ef04a with: - commit_message: "Reformatted code" \ No newline at end of file + commit_message: "Reformatted code"