Skip to content

Commit 739b1b1

Browse files
philipc-mwPrabhakar Kumar
authored andcommitted
Security fixes for CVE: https://nvd.nist.gov/vuln/detail/cve-2024-42471 by updating to use actions/download-artifact@v4 and actions/upload-artifact@v4
The CVE is in v3 of actions/download-artifact, but is fixed in v4.1.7, see details here: https://vulners.com/github/GHSA-CXWW-7G56-2VH6
1 parent b7d03b5 commit 739b1b1

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/run-unit-tests.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ jobs:
3434
python_unit_tests:
3535
env:
3636
code-cov-py: "3.11"
37+
code-cov-os: "ubuntu-latest"
3738
strategy:
3839
fail-fast: false
3940
matrix:
@@ -71,8 +72,8 @@ jobs:
7172
run: python3 -m pytest --cov --cov-report=xml tests/unit
7273

7374
- name: Persist coverage data to be uploaded if all jobs are successful.
74-
if: ${{matrix.python-version == env.code-cov-py }}
75-
uses: actions/upload-artifact@v3
75+
if: ${{matrix.python-version == env.code-cov-py && matrix.os == env.code-cov-os}}
76+
uses: actions/upload-artifact@v4
7677
with:
7778
name: coverage_file
7879
path: ./coverage.xml
@@ -114,7 +115,7 @@ jobs:
114115
uses: actions/checkout@v3
115116

116117
- name: Get coverage files from previous job
117-
uses: actions/download-artifact@v3
118+
uses: actions/download-artifact@v4
118119
with:
119120
name: coverage_file
120121

@@ -126,4 +127,4 @@ jobs:
126127
files: ./coverage.xml
127128
fail_ci_if_error: true
128129
verbose: true
129-
token: ${{ secrets.CODECOV_TOKEN }}
130+
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)