Skip to content

Preview deployments fail for fork PRs #51

@benhayes21

Description

@benhayes21

Problem

External contributors who submit PRs from forks do not get preview deployments. GitHub blocks secrets from being passed to workflows triggered by fork pull requests, so BUILD_PREVIEW_TOKEN is unavailable and the deploy step fails silently.

This was first noticed with PR #43 from @fl-modex.

Fix

Split the preview workflow into two steps:

  • Build (pull_request trigger) — no secrets needed, safe for forks
  • Deploy (workflow_run trigger) — runs in base repo context, has access to secrets

Tracked in PR #50.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions