Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix(ci): skip eval sticky PR comment on fork PRs

Louis Beaumont4d364a776632
diff --git a/.github/workflows/eval-diarization.yml b/.github/workflows/eval-diarization.yml
index e729a6032..a217c80e6 100644
--- a/.github/workflows/eval-diarization.yml
+++ b/.github/workflows/eval-diarization.yml
@@ -445,7 +445,9 @@ jobs:
/tmp/eval-report.md
- name: Post sticky PR comment
- if: github.event_name == 'pull_request'
+ # Skip on fork PRs: the default GITHUB_TOKEN is read-only for forks, so
+ # gh pr comment can never succeed there and would fail the whole job.
+ if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR_NUMBER: ${{ github.event.pull_request.number }}
diff --git a/.github/workflows/eval-meeting-detection.yml b/.github/workflows/eval-meeting-detection.yml
index d7d52ebf0..6105ffd45 100644
--- a/.github/workflows/eval-meeting-detection.yml
+++ b/.github/workflows/eval-meeting-detection.yml
@@ -160,7 +160,9 @@ jobs:
path: /tmp/meeting-eval/
- name: Post sticky PR comment
- if: github.event_name == 'pull_request'
+ # Skip on fork PRs: the default GITHUB_TOKEN is read-only for forks, so
+ # gh pr comment can never succeed there and would fail the whole job.
+ if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR_NUMBER: ${{ github.event.pull_request.number }}