Skip to content

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

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#134
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 ✅

@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 Docker-based GitHub Action caused by GitHub Actions overriding the container working directory, which prevented uv run from discovering the project and virtual environment.

Changes:

  • Updates the Docker image ENTRYPOINT to pass --project /action/workspace to uv run so dependency resolution is independent of the runtime working directory.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@jmeridth jmeridth merged commit 315fd85 into main Mar 14, 2026
43 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