Skip to content

Fork workflow dispatch cannot download artifacts from the fork #683

Description

@100yenadmin

Summary

When the reusable Node/Java/Python workflows are dispatched in a fork with a
precompiled run ID from that fork, scripts/download-liblbug.sh still defaults
artifact lookup to LadybugDB/ladybug. The run ID is repository-scoped, so the
download returns HTTP 404 and the matrix fails before build or test.

Reproduction

  1. Dispatch .github/workflows/precompiled-bin-workflow.yml in a fork.
  2. Dispatch .github/workflows/nodejs-workflow.yml in the same fork with that
    successful run ID.
  3. Observe gh run download "$RUN_ID" --repo LadybugDB/ladybug.

Observed failure:

HTTP 404: Not Found (.../repos/LadybugDB/ladybug/actions/runs/<fork-run-id>/artifacts)
Artifact liblbug-static-osx-arm64 does not contain liblbug-static-osx-arm64.tar.gz

The first error is the root cause; the missing-archive message is secondary.

Expected behavior

When LBUG_PRECOMPILED_RUN_ID is set in GitHub Actions, artifact lookup should
default to the current github.repository, while preserving
LBUG_GITHUB_REPOSITORY as an explicit override and preserving the canonical
upstream repository for release downloads.

Evidence

A one-line workflow-only override:

LBUG_GITHUB_REPOSITORY: ${{ github.repository }}

allows the existing script to download the exact fork artifact successfully.
This was validated locally before rerunning the fork matrix.

No publication or deployment is involved.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions