diff --git a/.github/workflows/benchmarks.yml b/.github/workflows/benchmarks.yml index a037b0f9..19e243cc 100644 --- a/.github/workflows/benchmarks.yml +++ b/.github/workflows/benchmarks.yml @@ -226,7 +226,12 @@ jobs: # Same marker-upsert shape as the build-timing comment in # `lean_action_ci.yml`, so repeated runs replace rather than pile up. - name: Upsert benchmark PR comment - if: always() && steps.target.outputs.pr != '' + # Fork pull_request tokens are read-only; keep their report in the + # Actions summary and artifact instead of failing on a comment write. + if: >- + always() && steps.target.outputs.pr != '' && + (github.event_name != 'pull_request' || + github.event.pull_request.head.repo.full_name == github.repository) uses: actions/github-script@v7 with: script: |