Skip to content

Conversation

@TooAngel
Copy link
Contributor

Summary

Restores the pull_request_target trigger that was accidentally lost when PR #3 was squash merged. This is required for fork PRs to access repository secrets needed for the migrate app authentication.

Problem

PR #27 (migration test) was failing because the workflow couldn't access MIGRATE_APP_ID and MIGRATE_APP_PRIVATE_KEY secrets. The secrets exist but weren't being passed to the workflow because pull_request doesn't provide secrets to fork PRs.

Solution

Restore the original security model from commit d7de949:

  • Use pull_request_target to run workflow in base repository context (secrets available)
  • Checkout trusted scripts from main branch
  • Sparse checkout only REPOSITORIES.md from the PR
  • Copy PR's REPOSITORIES.md to working directory for analysis

This maintains security while allowing fork PRs to work.

Test Plan

@worlddriven
Copy link
Contributor

worlddriven bot commented Jan 24, 2026

🤖 Worlddriven Status

📊 Live Status Dashboard

🗓️ Merge Date: 2026-01-25 at 07:33:04 UTC (in 1 day)
📅 Started: 2026-01-24 at 08:41:39 UTC
Speed Factor: 0.10 (90% faster due to reviews)
Positive votes: 19/21 contribution weight (coefficient: 0.90)
📈 Base Merge Time: 10 days → Current: 1 days

🎯 Want to influence when this merges?

Your review matters! As a contributor to this project, your voice helps determine the merge timeline.

How to review:

  1. Check the changes
    Files changed

  2. Leave your review
    Review changes

Your options:

  • ✅ Agree & Speed Up: Approve Approving makes this merge faster
  • ❌ Disagree & Slow Down: Request changes Requesting changes delays the merge

💡 Pro tip: The more contributors who agree, the faster this gets merged!

📊 View detailed stats on the dashboard

📋 Recent Activity

2026-01-24, 08:30:46 - Pull request opened
2026-01-24, 08:39:01 - Branch synchronized (merge timer reset)
2026-01-24, 08:39:02 - Branch synchronized (merge timer reset)
2026-01-24, 08:41:46 - Branch synchronized (merge timer reset)
2026-01-24, 08:41:47 - Branch synchronized (merge timer reset)


This comment is automatically updated by worlddriven

@TooAngel TooAngel force-pushed the fix/restore-pull-request-target branch from 743ad4c to 5a810db Compare January 24, 2026 08:38
The workflow was accidentally regressed to use pull_request instead of
pull_request_target when PR worlddriven#3 was squash merged. This prevented fork PRs
from accessing repository secrets needed for the migrate app authentication.

Changes:
- Restore pull_request_target trigger
- Add sparse checkout of REPOSITORIES.md from PR
- Keep trusted scripts from main branch for security
- Maintain MIGRATE_APP_ID/PRIVATE_KEY env vars from PR worlddriven#28
@TooAngel TooAngel force-pushed the fix/restore-pull-request-target branch from 5a810db to 6bd8597 Compare January 24, 2026 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant