Skip to content

Commit b8c0eb9

Browse files
committed
github actions: Restore minimal shallow cloning of patchutils repo
This was lost in a previous commit. Bring it back so we don't needlessly clone the entire patchutils repo and history.
1 parent 747a90b commit b8c0eb9

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

.github/workflows/validate-kernel-commits.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -191,14 +191,10 @@ jobs:
191191
# Security: Pin to specific commit to prevent supply chain attacks
192192
EXPECTED_COMMIT="60a60b3909d0e29c0ff286f6a73de4168977b097"
193193
194-
# Clone repository
195-
git clone https://github.com/kerneltoast/patchutils.git
194+
# Clone repository at the specific commit we want
195+
git clone https://github.com/kerneltoast/patchutils.git --depth=1 --revision="$EXPECTED_COMMIT"
196196
cd patchutils
197197
198-
# Fetch the specific commit we want
199-
git fetch origin "$EXPECTED_COMMIT"
200-
git checkout "$EXPECTED_COMMIT"
201-
202198
# Verify we're on the expected commit
203199
ACTUAL_COMMIT=$(git rev-parse HEAD)
204200
if [ "$ACTUAL_COMMIT" != "$EXPECTED_COMMIT" ]; then

0 commit comments

Comments
 (0)