Skip to content

Fix PR previews for forks - #314

Merged
bugadani merged 1 commit into
probe-rs:masterfrom
bugadani:preview-workflow-run
Oct 24, 2026
Merged

bugadani merged 1 commit into
probe-rs:masterfrom
bugadani:preview-workflow-run

Conversation

@bugadani

Copy link
Copy Markdown
Contributor

The preview workflow ran PR code with the Cloudflare secrets. actions/checkout@v7 now refuses this, so previews from forks failed.

  • build-preview.yml builds the PR on pull_request, with no secrets.
  • deploy-preview.yml deploys the artifact on workflow_run, to pr-<N>, and posts the URL on the PR.

This PR cannot preview itself. The first PR after the merge tests it.

I recommend to rotate the Cloudflare token and limit it to Pages: Edit on this project.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@bugadani
bugadani merged commit 90f033b into probe-rs:master Oct 24, 2026
1 of 2 checks passed
@bugadani
bugadani deleted the preview-workflow-run branch October 24, 2026 19:06
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