diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 47da35c1741f..83b234e284e7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -225,8 +225,8 @@ jobs: TYPESCRIPT_ESLINT_EXPERIMENTAL_TSSERVER: true website_tests: - # The NETLIFY_TOKEN secret will not be available on forks - if: github.repository_owner == 'typescript-eslint' + # The NETLIFY_TOKEN secret will not be available on PRs from forks + if: (github.event_name == 'push' && github.ref_name == 'main') || (github.event.pull_request.head.repo.full_name == github.repository) permissions: contents: read # to fetch code (actions/checkout)