Repository navigation
Commit 05eb9ef
fix(install): keep the venv and wheels out of the caller's workspace
The composite step ran in $GITHUB_WORKSPACE and left `venv/` (63 MB) and
fourteen wheels next to the caller's sources, where any later `git status`,
linter or `upload-artifact: .` step saw them. It also downloaded the
dependency closure twice: `pip download` fetched all fourteen wheels, then
`pip install commit_check-*.whl pygithub-*.whl` resolved the twelve
transitive ones against PyPI again, so the installed wheels were not
provably the downloaded ones. And when `gh` was missing, as on a self-hosted
runner, the failure read "Artifact verification failed", blaming the wheel
for an absent tool.
Work under $RUNNER_TEMP/commit-check-action instead: one `pip download -d`
into it, an explicit `command -v gh` check with its own `::error::`,
`gh attestation verify` on the single downloaded commit-check wheel, and an
offline `pip install --no-index --find-links` of requirements.txt so the
verified wheel is the installed one and nothing is fetched twice. The
Windows/Linux activation logic and DEB_PYTHON_INSTALL_LAYOUT are unchanged.
Simulated in a scratch workspace seeded with README.md: before, `ls -A`
showed README.md, 14 wheels and venv; after, README.md alone, with venv and
wheels/ under $RUNNER_TEMP and zero "Downloading" lines on a forced
reinstall from the wheel directory.
Point the README SLSA badge at the current verify block; it linked to
line numbers in an April 2025 revision of action.yml that no longer match.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018xYa7m3qup5wyN5MaXFgf61 parent ccfa72b commit 05eb9ef
2 files changed
Lines changed: 27 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
62 | 61 | | |
63 | 62 | | |
64 | 63 | | |
65 | 64 | | |
66 | 65 | | |
67 | 66 | | |
68 | | - | |
69 | 67 | | |
70 | 68 | | |
71 | | - | |
72 | | - | |
73 | | - | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
74 | 80 | | |
75 | | - | |
76 | | - | |
| 81 | + | |
| 82 | + | |
77 | 83 | | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
82 | 94 | | |
83 | 95 | | |
84 | | - | |
85 | | - | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
86 | 99 | | |
87 | 100 | | |
88 | 101 | | |
| |||
0 commit comments