Skip to content

Commit 7c5e9a0

Browse files
ci: fix download artifact vulnerability
Versions of actions/download-artifact before 4.1.7 are vulnerable to arbitrary file write when downloading and extracting a specifically crafted artifact that contains path traversal filenames [1]. 1. https://github.com/tarantool/tarantool-python/security/dependabot/4
1 parent e50f762 commit 7c5e9a0

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

.github/workflows/packing.yml

+10-10
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
run: make pip-dist-check
4444

4545
- name: Archive pip artifacts
46-
uses: actions/upload-artifact@v3
46+
uses: actions/upload-artifact@v4.4.0
4747
with:
4848
name: pip_dist
4949
path: pip_dist
@@ -84,7 +84,7 @@ jobs:
8484
tarantool-version: '2.11'
8585

8686
- name: Download pip package artifacts
87-
uses: actions/download-artifact@v3
87+
uses: actions/download-artifact@v4.1.8
8888
with:
8989
name: pip_dist
9090
path: pip_dist
@@ -134,7 +134,7 @@ jobs:
134134
run: python3 .github/scripts/remove_source_code.py
135135

136136
- name: Download pip package artifacts
137-
uses: actions/download-artifact@v3
137+
uses: actions/download-artifact@v4.1.8
138138
with:
139139
name: pip_dist
140140
path: pip_dist
@@ -202,7 +202,7 @@ jobs:
202202
run: pip3 install twine
203203

204204
- name: Download pip package artifacts
205-
uses: actions/download-artifact@v3
205+
uses: actions/download-artifact@v4.1.8
206206
with:
207207
name: pip_dist
208208
path: pip_dist
@@ -271,7 +271,7 @@ jobs:
271271
run: make rpm-dist-check
272272

273273
- name: Archive RPM artifacts
274-
uses: actions/upload-artifact@v3
274+
uses: actions/upload-artifact@v4.4.0
275275
with:
276276
name: rpm_dist_${{ matrix.target.os }}_${{ matrix.target.dist }}
277277
path: rpm_dist
@@ -324,7 +324,7 @@ jobs:
324324
dnf install -y tarantool tarantool-devel
325325
326326
- name: Download RPM artifacts
327-
uses: actions/download-artifact@v3
327+
uses: actions/download-artifact@v4.1.8
328328
with:
329329
name: rpm_dist_${{ matrix.target.os }}_${{ matrix.target.dist }}
330330
path: rpm_dist
@@ -372,7 +372,7 @@ jobs:
372372
run: sudo apt install -y curl make
373373

374374
- name: Download RPM artifacts
375-
uses: actions/download-artifact@v3
375+
uses: actions/download-artifact@v4.1.8
376376
with:
377377
name: rpm_dist_${{ matrix.target.os }}_${{ matrix.target.dist }}
378378
path: rpm_dist
@@ -433,7 +433,7 @@ jobs:
433433
run: make deb-dist-check
434434

435435
- name: Archive deb artifacts
436-
uses: actions/upload-artifact@v3
436+
uses: actions/upload-artifact@v4.4.0
437437
with:
438438
name: deb_dist
439439
path: deb_dist
@@ -490,7 +490,7 @@ jobs:
490490
DEBIAN_FRONTEND: noninteractive
491491

492492
- name: Download deb artifacts
493-
uses: actions/download-artifact@v3
493+
uses: actions/download-artifact@v4.1.8
494494
with:
495495
name: deb_dist
496496
path: deb_dist
@@ -542,7 +542,7 @@ jobs:
542542
run: sudo apt install -y curl make
543543

544544
- name: Download deb artifacts
545-
uses: actions/download-artifact@v3
545+
uses: actions/download-artifact@v4.1.8
546546
with:
547547
name: deb_dist
548548
path: deb_dist

.github/workflows/reusable_testing.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
repository: ${{ github.repository_owner }}/tarantool-python
2020

2121
- name: Download the tarantool build artifact
22-
uses: actions/download-artifact@v4
22+
uses: actions/download-artifact@v4.1.8
2323
with:
2424
name: ${{ inputs.artifact_name }}
2525

0 commit comments

Comments
 (0)