diff --git a/.github/workflows/pull.yml b/.github/workflows/pull.yml index 513383c828c..72c3dc6222d 100644 --- a/.github/workflows/pull.yml +++ b/.github/workflows/pull.yml @@ -909,6 +909,8 @@ jobs: test-samsung-models-linux: name: test-samsung-models-linux + # Skip this job if the pull request is from a fork (secrets are not available) + if: github.event.pull_request.head.repo.full_name == github.repository || github.event_name != 'pull_request' uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main permissions: id-token: write