Skip to content

Commit 6af7c1a

Browse files
committed
CI: create the bundle directory before sudo
download-deb-closure.sh runs as root, so a debs directory it creates is root-owned and the unprivileged index step cannot write Packages into it. Create the directory as the runner user first; the script then chowns the .debs to match.
1 parent 612237d commit 6af7c1a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎.github/workflows/ci-deps-image.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ jobs:
5252

5353
- name: Resolve and download the .deb closure
5454
run: |
55+
# Created unprivileged so the later steps can write the index.
56+
mkdir -p debs
5557
sudo bash .github/scripts/download-deb-closure.sh \
5658
".github/ci-deps/packages-${{ matrix.tag }}.txt" debs
5759

0 commit comments

Comments
 (0)