Skip to content

Commit 08fa529

Browse files
committed
ci: pass special User-Agent string when downloading kernel sources snapshot
Konstantin Ryabitsev started blocking requests to download kernel source code snapshots by SHA, generally speaking. For BPF CI, we'll have to use a special User-Agent string to make it work again. Signed-off-by: Andrii Nakryiko <[email protected]>
1 parent d164c1c commit 08fa529

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

get-linux-source/checkout_latest_kernel.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ if [ ! -d "${REPO_PATH}" ]; then
2929
mkdir -p $(dirname "${REPO_PATH}")
3030
cd $(dirname "${REPO_PATH}")
3131
# attempt to fetch desired bpf-next repo snapshot
32-
if [ -n "${SNAPSHOT_URL}" ] && wget -nv ${SNAPSHOT_URL} && tar xf bpf-next-${LINUX_SHA}.tar.gz --totals ; then
32+
if [ -n "${SNAPSHOT_URL}" ] && \
33+
wget -U 'BPFCIBot/1.0 ([email protected])' -nv ${SNAPSHOT_URL} && \
34+
tar xf bpf-next-${LINUX_SHA}.tar.gz --totals ; then
3335
mv bpf-next-${LINUX_SHA} $(basename ${REPO_PATH})
3436
else
3537
# but fallback to git fetch approach if that fails

0 commit comments

Comments
 (0)