diff --git a/.github/workflows/docs_suggestions.yml b/.github/workflows/docs_suggestions.yml index df6f001d2a08d5c577401b3c4dd099a1622d8d70..8cf98e978cddfe38688b2f9b47df17f48e472362 100644 --- a/.github/workflows/docs_suggestions.yml +++ b/.github/workflows/docs_suggestions.yml @@ -52,13 +52,15 @@ env: jobs: # Job for PRs merged to main - batch suggestions to branch + # Only runs for PRs from the same repo (not forks) since secrets aren't available for fork PRs batch-suggestions: runs-on: ubuntu-latest timeout-minutes: 10 if: | (github.event_name == 'pull_request' && github.event.pull_request.merged == true && - github.event.pull_request.base.ref == 'main') || + github.event.pull_request.base.ref == 'main' && + github.event.pull_request.head.repo.full_name == github.repository) || (github.event_name == 'workflow_dispatch' && inputs.mode == 'batch') steps: