Skip to content

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

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

fix: add --project flag to uv entrypoint for GitHub Actions compatibility#457
jmeridth merged 1 commit into
mainfrom
fix/uv-entrypoint-project-flag

Conversation

@jmeridth

Copy link
Copy Markdown
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

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Updates the Docker image entrypoint so the GitHub Actions container runner’s overridden working directory (/github/workspace) no longer prevents uv run from finding the project at /action/workspace, avoiding fallback to system Python and missing dependencies.

Changes:

  • Add --project /action/workspace to the Docker ENTRYPOINT so uv reliably discovers pyproject.toml and the .venv regardless of runtime working directory.

@jmeridth jmeridth merged commit d0f1b1d into main Mar 14, 2026
38 checks passed
@jmeridth jmeridth deleted the fix/uv-entrypoint-project-flag branch March 14, 2026 01:18
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