Skip to content

👷 Fix latest-changes checkout target#292

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

👷 Fix latest-changes checkout target#292
tiangolo merged 1 commit into
mainfrom
codex/fix-latest-changes-checkout-ref-20260704

Conversation

@tiangolo

@tiangolo tiangolo commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

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.

@tiangolo tiangolo added the internal Internal changes label Jul 4, 2026
@tiangolo tiangolo merged commit 6e905ea into main Jul 4, 2026
22 of 23 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant