Skip to content

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

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#429
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
Copilot AI review requested due to automatic review settings March 14, 2026 01:04
@github-actions github-actions bot added the fix label Mar 14, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Fixes a runtime regression in the Action’s Docker image where GitHub Actions overrides the container working directory, causing uv run to miss /action/workspace/pyproject.toml and fall back to system Python.

Changes:

  • Update the Docker ENTRYPOINT to pass --project /action/workspace to uv run so the project (and its .venv) is consistently discovered regardless of runtime working directory.

@jmeridth jmeridth merged commit 08ba119 into main Mar 14, 2026
41 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.

2 participants