Skip to content

馃懛 Fix latest-changes checkout target - #1883

Merged
tiangolo merged 1 commit into
masterfrom
codex/fix-latest-changes-checkout-ref-20260704
Jul 4, 2026
Merged

馃懛 Fix latest-changes checkout target#1883
tiangolo merged 1 commit into
masterfrom
codex/fix-latest-changes-checkout-ref-20260704

Conversation

@tiangolo

@tiangolo tiangolo commented Jul 4, 2026

Copy link
Copy Markdown
Member

What changed

  • Configure the latest-changes workflow checkout step to use the repository default branch explicitly.
  • This keeps pull_request_target runs on trusted base-repository code when actions/checkout@v7 is used.

Why

actions/checkout@v7 refuses fork PR code in trusted pull_request_target contexts. For merged PR release-note workflows, the safe target is the base repository default branch.

Validation

  • Ran git diff --check for the changed workflow.
  • Verified the pattern end to end in tiangolo/sandbox.

AI Disclaimer

Using Codex with GPT-5. Reviewed manually.

@github-actions github-actions Bot added the internal Internal changes label Jul 4, 2026
@tiangolo
tiangolo merged commit 51f0de0 into master Jul 4, 2026
27 checks passed
@tiangolo
tiangolo deleted the codex/fix-latest-changes-checkout-ref-20260704 branch July 4, 2026 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal Internal changes

1 participant