Skip to content

Propagate git PAT to ~/.netrc for dependency authentication#26

Merged
soustruh merged 6 commits intomainfrom
SUPPORT-15344
Apr 24, 2026
Merged

Propagate git PAT to ~/.netrc for dependency authentication#26
soustruh merged 6 commits intomainfrom
SUPPORT-15344

Conversation

@devin-ai-integration
Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration Bot commented Feb 19, 2026

Summary

  • Write the configured PAT to ~/.netrc during token auth setup so that uv sync can authenticate when fetching private git dependencies from the same host
  • Pass --clear to uv venv to handle pre-existing virtual environments gracefully
  • Add workflow_dispatch trigger to the CI pipeline for manual runs

What changed

src/source_git.py — When PAT authentication is configured, the token is written to ~/.netrc with restricted permissions (0600). This allows any subsequent git operation within the container (e.g. uv sync resolving [tool.uv.sources] git dependencies) to authenticate against the same host without embedding tokens in pyproject.toml.

src/venv_manager.py — Added --clear flag to uv venv creation, preventing failures when a virtual environment already exists at the target path.

.github/workflows/push.yml — Added workflow_dispatch trigger to enable manual CI runs from the GitHub Actions UI.

Refs

  • CFTL-336
  • SUPPORT-15344

@devin-ai-integration
Copy link
Copy Markdown
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@soustruh soustruh force-pushed the SUPPORT-15344 branch 2 times, most recently from e8d4070 to b14e080 Compare April 23, 2026 07:35
@soustruh soustruh changed the title feat: propagate git PAT to ~/.netrc for dependency authentication Propagate git PAT to ~/.netrc for dependency authentication Apr 23, 2026
@soustruh soustruh requested a review from a team April 24, 2026 06:44
@soustruh soustruh marked this pull request as ready for review April 24, 2026 06:44
Copy link
Copy Markdown

@kudj kudj left a comment

Choose a reason for hiding this comment

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

LGTM

@devin-ai-integration
Copy link
Copy Markdown
Contributor Author

❌ Cannot revive Devin session - the session is too old. Please start a new session instead.

@soustruh soustruh merged commit 1ea3695 into main Apr 24, 2026
8 checks passed
@soustruh soustruh deleted the SUPPORT-15344 branch April 24, 2026 07:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants