From fd0538b26e8c51455f8aff9eb7cde71a0fb58830 Mon Sep 17 00:00:00 2001 From: yuhan6665 <1588741+yuhan6665@users.noreply.github.com> Date: Sun, 6 Jul 2025 17:30:28 -0400 Subject: [PATCH] Prettier workflow to have write permission --- .github/workflows/prettier.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/prettier.yml b/.github/workflows/prettier.yml index d5a6c04..9add3a6 100644 --- a/.github/workflows/prettier.yml +++ b/.github/workflows/prettier.yml @@ -3,17 +3,16 @@ name: Prettier Action on: pull_request: branches: [main] +permissions: + contents: write jobs: prettier: runs-on: ubuntu-latest - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} steps: - name: Checkout uses: actions/checkout@v4 with: - token: ${{ secrets.GITHUB_TOKEN }} ref: ${{ github.event.pull_request.head.ref }} - name: Prettify code