Skip to content

A platform for community discussion. Free, open, simple.

FIX: scope Patch Triage workflow to discourse/discourse (#39757)

Isaac Janzen8c9c43181e06
diff --git a/.github/workflows/patch-triage.yml b/.github/workflows/patch-triage.yml
index 61b3e64b415..90884409243 100644
--- a/.github/workflows/patch-triage.yml
+++ b/.github/workflows/patch-triage.yml
@@ -26,7 +26,7 @@ permissions:
jobs:
pr-closed:
- if: ${{ github.event_name == 'pull_request' && github.event.action == 'closed' }}
+ if: ${{ github.repository == 'discourse/discourse' && github.event_name == 'pull_request' && github.event.action == 'closed' }}
runs-on: ubuntu-latest
steps:
@@ -69,7 +69,7 @@ jobs:
abort "VM returned #{res.code}: #{res.body}" unless res.is_a?(Net::HTTPSuccess)
security-scan:
- if: ${{ github.event_name == 'workflow_dispatch' || (github.event.action != 'closed' && !github.event.pull_request.draft) }}
+ if: ${{ github.repository == 'discourse/discourse' && (github.event_name == 'workflow_dispatch' || (github.event.action != 'closed' && !github.event.pull_request.draft)) }}
runs-on: ubuntu-latest
steps: