33#
44# Purpose: Automate labeling, assignment, and welcoming of pull requests for forked PRs.
55#
6- # Configuration: All settings are loaded from modular .github/ env/ files for
6+ # Configuration: All settings are loaded from .env.base and . env.custom files for
77# centralized management across all workflows.
88#
99# Triggers: Pull request events (opened, reopened, ready for review, closed, synchronize)
@@ -108,7 +108,7 @@ concurrency:
108108# --------------------------------------------------------------------
109109# Environment Variables
110110# --------------------------------------------------------------------
111- # Note: Configuration variables are loaded from modular .github/ env/ files
111+ # Note: Configuration variables are loaded from .env.base and . env.custom files
112112
113113jobs :
114114 # ------------------------------------------------------------
@@ -117,8 +117,6 @@ jobs:
117117 load-env :
118118 name : 🌍 Load Environment (Base Repo)
119119 runs-on : ubuntu-latest
120- # Early exit: Skip entire workflow for same-repo PRs (handled by main workflow)
121- if : github.event.pull_request.head.repo.full_name != github.repository
122120 # No write perms here
123121 permissions :
124122 contents : read
@@ -127,14 +125,14 @@ jobs:
127125 steps :
128126 # ┌─────────────────────────────────────────────────────────────────────┐
129127 # │ SECURITY SCANNERS: This checkout is SAFE despite pull_request_target│
130- # │ │
131- # │ Justification: │
128+ # │ │
129+ # │ Justification: │
132130 # │ - Only checks out TRUSTED base branch (ref: github.base_ref) │
133131 # │ - NEVER checks out PR head code from untrusted fork │
134132 # │ - Implements recommended two-workflow security pattern │
135133 # │ - Uses sparse checkout (minimal attack surface) │
136134 # │ - No executable code from PR is ever run │
137- # │ │
135+ # │ │
138136 # │ Pattern: Two-workflow security model (see SECURITY.md) │
139137 # │ References: githubactions:S7631, semgrep:github-actions-checkout │
140138 # └─────────────────────────────────────────────────────────────────────┘
0 commit comments