Commit 0d0ebe4
authored
Pin PyGithub Dependency Using uv Lockfile (#4835)
This PR replaces the unpinned `pip install PyGithub` in the tagging
workflow
with `uv run --locked`, which uses a committed lockfile containing
SHA-256
hashes for PyGithub and all its transitive dependencies. This hardens
the
release tagging pipeline against supply chain attacks on PyPI.
Changes:
- Added PEP 723 inline script metadata to `internal/genkit/tagging.py`
- Generated `internal/genkit/tagging.py.lock` with pinned versions and
hashes
- Updated `tagging.yml` to use `uv run --locked` instead of pip
## Review Guide
- **Core**: `internal/genkit/tagging.py` preamble + `tagging.yml`
workflow change
- **Generated**: `internal/genkit/tagging.py.lock` - verify it resolves
PyGithub and deps
Co-authored-by: Omer Lachish <rauchy@users.noreply.github.com>1 parent 993fae3 commit 0d0ebe4
3 files changed
Lines changed: 309 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
| 54 | + | |
| 55 | + | |
58 | 56 | | |
59 | 57 | | |
60 | 58 | | |
61 | 59 | | |
62 | 60 | | |
63 | | - | |
64 | | - | |
| 61 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
3 | 7 | | |
4 | 8 | | |
5 | 9 | | |
| |||
0 commit comments