diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3c276f475..ae5b63609 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -2,7 +2,7 @@ name: Check format run-name: Checking format on: - - pull_request_target + - pull_request jobs: install: @@ -46,7 +46,9 @@ jobs: echo "format-check-result=$?" >> $GITHUB_OUTPUT - name: Output formatting error - if: steps.prettier-check.outputs.format-check-result == 1 + if: | + steps.prettier-check.outputs.format-check-result == 1 && + ${{ github.event.pull_request.head.repo.full_name == 'OffchainLabs/arbitrum-docs' }} uses: actions/github-script@v6 with: github-token: ${{ secrets.GITHUB_TOKEN }}