Skip to content

Commit ef87f92

Browse files
committed
fix: forked prs
1 parent 0837127 commit ef87f92

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

.github/workflows/fortress-performance-summary.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ jobs:
128128
echo "| **Workflow** | ${{ github.workflow }} |"
129129
echo "| **Run Number** | ${{ github.run_number }} |"
130130
echo "| **Trigger** | ${{ github.event_name }} |"
131+
echo "| **Source** | ${{ github.event.pull_request.head.repo.full_name == github.repository && 'Internal' || 'Fork' }} |"
131132
echo ""
132133
133134
# Process cache statistics if available

.github/workflows/fortress-security-scans.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@ jobs:
229229
gitleaks:
230230
name: 🕵️ Run Gitleaks (Secret Scan)
231231
runs-on: ${{ inputs.primary-runner }}
232+
if: github.event.pull_request.head.repo.full_name == github.repository
232233
steps:
233234
# ————————————————————————————————————————————————————————————————
234235
# Parse environment variables

.github/workflows/pull-request-management.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,8 @@ jobs:
640640
contents: write
641641
if: |
642642
github.event.action == 'closed' &&
643-
github.event.pull_request.merged == true
643+
github.event.pull_request.merged == true &&
644+
github.event.pull_request.head.repo.full_name == github.repository
644645
outputs:
645646
branch-deleted: ${{ steps.delete.outputs.branch-deleted }}
646647

@@ -755,6 +756,7 @@ jobs:
755756
echo "**📋 PR:** #$PR_NUMBER - $PR_TITLE" >> $GITHUB_STEP_SUMMARY
756757
echo "**🎬 Action:** $PR_ACTION" >> $GITHUB_STEP_SUMMARY
757758
echo "**👤 Author:** @$PR_AUTHOR" >> $GITHUB_STEP_SUMMARY
759+
echo "**🔗 Source:** ${{ github.event.pull_request.head.repo.full_name == github.repository && 'Internal' || 'Fork' }}" >> $GITHUB_STEP_SUMMARY
758760
echo "" >> $GITHUB_STEP_SUMMARY
759761
760762
# Show results based on action type

0 commit comments

Comments
 (0)