Skip to content

fix: add --project flag to uv entrypoint for GitHub Actions compatibility#356

Merged
jmeridth merged 1 commit intomainfrom
fix/uv-entrypoint-project-flag
Mar 14, 2026
Merged

fix: add --project flag to uv entrypoint for GitHub Actions compatibility#356
jmeridth merged 1 commit intomainfrom
fix/uv-entrypoint-project-flag

Conversation

@jmeridth
Copy link
Collaborator

Problem

The uv migration introduced a runtime regression in the Docker image. GitHub Actions' Docker container runner overrides the working directory to /github/workspace via --workdir, which causes uv run to not find the pyproject.toml at /action/workspace. It falls back to system Python (which has no packages installed), resulting in:

ModuleNotFoundError: No module named 'github3'

Fix

Add --project /action/workspace to the ENTRYPOINT so uv always discovers the project and its .venv regardless of the runtime working directory.

Testing

Verified locally with Docker:

Test Outcome
Before fix (--workdir /github/workspace) ModuleNotFoundError: No module named 'github3'
After fix (--project /action/workspace) Imports succeed, runs correctly ✅

…lity

Signed-off-by: Jason Meridth <jmeridth@gmail.com>
Signed-off-by: jmeridth <jmeridth@gmail.com>
@jmeridth jmeridth requested a review from zkoppert as a code owner March 14, 2026 01:04
@github-actions github-actions bot added the fix label Mar 14, 2026
@jmeridth jmeridth merged commit 2cb9bad into main Mar 14, 2026
37 checks passed
@jmeridth jmeridth deleted the fix/uv-entrypoint-project-flag branch March 14, 2026 01:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant