Skip to content

fix(ci): allow showtime to check out fork PR code under checkout v7 - #41643

Merged
hainenber merged 1 commit into
masterfrom
fix-showtime-permissions
Jul 2, 2026
Merged

fix(ci): allow showtime to check out fork PR code under checkout v7#41643
hainenber merged 1 commit into
masterfrom
fix-showtime-permissions

Conversation

@sadpandajoe

Copy link
Copy Markdown
Member

SUMMARY

Showtime ephemeral-environment launches fail on every fork PR since #41358 bumped actions/checkout from 6.0.3 to 7.0.0. checkout v7 introduced a safety guard that refuses to fetch fork-PR code inside a pull_request_target workflow unless the step explicitly opts in, so the "🎪 Sync PR to desired state" job now dies at the checkout step with:

Refusing to check out fork pull request code from a 'pull_request_target' workflow.

Checking out and building fork PR code is Showtime's entire purpose, and the checkout step is already gated behind the maintainer-authorization step (only actors with write/admin permission pass) and uses persist-credentials: false. This PR sets allow-unsafe-pr-checkout: true on that step — the opt-in the guard itself prescribes — and fixes the stale zizmor comment at the top of the workflow, which claimed the workflow never checks out PR-provided code.

The other pull_request_target workflows (labeler.yml, welcome-new-users.yml) have no checkout step, and the workflow_run docs workflows either restrict to same-repo heads or run on push, so this is the only workflow affected by the v7 guard.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

N/A (CI workflow change)

TESTING INSTRUCTIONS

  1. After merge, add the showtime-trigger-start label to a fork PR (e.g. re-trigger on fix(explore): restore drag-and-drop reordering broken by @dnd-kit migration #41637, where the failure was observed: run 28544444889).
  2. The "🎪 Sync PR to desired state" job should proceed past the "Checkout PR code" step and build/deploy the environment.

Pre-commit (check yaml, zizmor GHA security audit) passes on the changed file.

ADDITIONAL INFORMATION

🤖 Generated with Claude Code

actions/checkout v7.0.0 (#41358) refuses to check out fork PR code from a
pull_request_target workflow unless the step sets
allow-unsafe-pr-checkout: true, which broke every showtime launch on fork
PRs. The checkout is already gated behind the maintainer-authorization
step (write/admin actors only) and uses persist-credentials: false, so
opt in explicitly and fix the stale zizmor comment that claimed the
workflow never checks out PR code.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@github-actions github-actions Bot added the github_actions Pull requests that update GitHub Actions code label Jul 1, 2026
@sadpandajoe sadpandajoe added the 🎪 ⚡ showtime-trigger-start Create new ephemeral environment for this PR label Jul 1, 2026
@github-actions github-actions Bot added 🎪 55bf380 🚦 building 🎪 ⌛ 48h Environment expires after 48 hours (default) and removed 🎪 ⚡ showtime-trigger-start Create new ephemeral environment for this PR labels Jul 1, 2026
@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

🎪 Showtime is building environment on GHA for 55bf380

@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

🎪 Showtime deployed environment on GHA for 55bf380

Environment: http://54.218.247.178:8080 (admin/admin)
Lifetime: 48h auto-cleanup
Updates: New commits create fresh environments automatically

@sadpandajoe
sadpandajoe marked this pull request as ready for review July 2, 2026 17:19

@rusackas rusackas left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@hainenber
hainenber merged commit c1bd45f into master Jul 2, 2026
87 checks passed
@hainenber
hainenber deleted the fix-showtime-permissions branch July 2, 2026 17:31
@github-actions github-actions Bot removed 🎪 ⌛ 48h Environment expires after 48 hours (default) 🎪 55bf380 🤡 sadpandajoe labels Jul 2, 2026
@bito-code-review

Copy link
Copy Markdown
Contributor

Bito Automatic Review Skipped – PR Already Merged

Bito scheduled an automatic review for this pull request, but the review was skipped because this PR was merged before the review could be run.
No action is needed if you didn't intend to review it. To get a review, you can type /review in a comment and save it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

github_actions Pull requests that update GitHub Actions code size/XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants