From 9863b4a57d4f5d8a2976097b75901de5cc054903 Mon Sep 17 00:00:00 2001 From: ProblemPrincipal <3653544699@qq.com> Date: Fri, 16 Oct 2026 15:57:42 +0800 Subject: [PATCH 1/2] ci: restrict workflows to upstream repository --- .github/workflows/production-smoke.yml | 1 + .github/workflows/stale.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/production-smoke.yml b/.github/workflows/production-smoke.yml index 224c57ff..13ce96f0 100644 --- a/.github/workflows/production-smoke.yml +++ b/.github/workflows/production-smoke.yml @@ -26,6 +26,7 @@ permissions: jobs: smoke: + if: github.repository == 'HydroRoll-Team/DropOut' name: Smoke dropout.hydroroll.team runs-on: ubuntu-latest timeout-minutes: 15 diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 4005b2c7..046dc842 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -11,6 +11,7 @@ permissions: jobs: stale: + if: github.repository == 'HydroRoll-Team/DropOut' runs-on: ubuntu-latest steps: - uses: actions/stale@v9 From ed5a2c19b0ec351e02b630ab7228ef26ee19234d Mon Sep 17 00:00:00 2001 From: ProblemPrincipal <3653544699@qq.com> Date: Fri, 16 Oct 2026 16:04:09 +0800 Subject: [PATCH 2/2] ci: skip production smoke for fork PRs --- .github/workflows/production-smoke.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/production-smoke.yml b/.github/workflows/production-smoke.yml index 13ce96f0..1cf8a024 100644 --- a/.github/workflows/production-smoke.yml +++ b/.github/workflows/production-smoke.yml @@ -26,7 +26,10 @@ permissions: jobs: smoke: - if: github.repository == 'HydroRoll-Team/DropOut' + if: >- + github.repository == 'HydroRoll-Team/DropOut' && + (github.event_name != 'pull_request' || + github.event.pull_request.head.repo.full_name == 'HydroRoll-Team/DropOut') name: Smoke dropout.hydroroll.team runs-on: ubuntu-latest timeout-minutes: 15