Skip to content

Commit 6974cbe

Browse files
authored
test: update snapshots (#2283)
The snapshots have changed, probably due to OSV advisories being changed. Please review the differences to make sure that they're expected!
1 parent f7ac016 commit 6974cbe

File tree

2 files changed

+19
-18
lines changed

2 files changed

+19
-18
lines changed

cmd/osv-scanner/scan/image/__snapshots__/command_test.snap

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ You can also view the full vulnerability list in your terminal with: `osv-scanne
315315
Scanning local image tarball "./testdata/test-ubuntu.tar"
316316
317317
Container Scanning Result (Ubuntu 22.04.5 LTS):
318-
Total 19 packages affected by 38 known vulnerabilities (2 Critical, 12 High, 19 Medium, 4 Low, 1 Unknown) from 1 ecosystem.
318+
Total 19 packages affected by 38 known vulnerabilities (2 Critical, 12 High, 20 Medium, 3 Low, 1 Unknown) from 1 ecosystem.
319319
19 vulnerabilities can be fixed.
320320
321321
@@ -360,7 +360,7 @@ You can also view the full vulnerability list in your terminal with: `osv-scanne
360360
Scanning local image tarball "./testdata/test-ubuntu.tar"
361361
362362
Container Scanning Result (Ubuntu 22.04.5 LTS):
363-
Total 19 packages affected by 38 known vulnerabilities (2 Critical, 12 High, 19 Medium, 4 Low, 1 Unknown) from 1 ecosystem.
363+
Total 19 packages affected by 38 known vulnerabilities (2 Critical, 12 High, 20 Medium, 3 Low, 1 Unknown) from 1 ecosystem.
364364
19 vulnerabilities can be fixed.
365365
366366
@@ -424,8 +424,8 @@ failed to load image from tarball with path "../../testdata/locks-manyoci-image/
424424
Scanning local image tarball "./testdata/test-java-full.tar"
425425
426426
Container Scanning Result (Alpine Linux v3.21):
427-
Total 20 packages affected by 35 known vulnerabilities (3 Critical, 13 High, 18 Medium, 0 Low, 1 Unknown) from 2 ecosystems.
428-
35 vulnerabilities can be fixed.
427+
Total 21 packages affected by 36 known vulnerabilities (3 Critical, 14 High, 18 Medium, 0 Low, 1 Unknown) from 2 ecosystems.
428+
36 vulnerabilities can be fixed.
429429
430430
431431
Maven
@@ -442,6 +442,7 @@ Maven
442442
| io.netty:netty-codec | 4.1.100.Final | Fix Available | 1 | # 12 Layer | -- |
443443
| io.netty:netty-codec-http | 4.1.100.Final | Fix Available | 2 | # 12 Layer | -- |
444444
| io.netty:netty-codec-http2 | 4.1.100.Final | Fix Available | 1 | # 12 Layer | -- |
445+
| io.netty:netty-codec-smtp | 4.1.100.Final | Fix Available | 1 | # 12 Layer | -- |
445446
| io.netty:netty-common | 4.1.100.Final | Fix Available | 2 | # 12 Layer | -- |
446447
| io.netty:netty-handler | 4.1.100.Final | Fix Available | 1 | # 12 Layer | -- |
447448
| org.apache.avro:avro | 1.9.2 | Fix Available | 2 | # 12 Layer | -- |

cmd/osv-scanner/scan/source/__snapshots__/command_test.snap

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1703,18 +1703,18 @@ Total 0 packages affected by 0 known vulnerabilities (0 Critical, 0 High, 0 Medi
17031703
Scanned <rootdir>/testdata/locks-git/osv-scanner.json file as a osv-scanner and found 4 packages
17041704
Skipping commit scanning for: 45fda76bc1b9fd74d10e85e0ce9b65a12dcc58b0
17051705
Loaded GIT local db from <tempdir>/osv-scanner/GIT/all.zip
1706-
Total 2 packages affected by 8 known vulnerabilities (2 Critical, 2 High, 0 Medium, 0 Low, 4 Unknown) from 1 ecosystem.
1706+
Total 2 packages affected by 8 known vulnerabilities (2 Critical, 3 High, 3 Medium, 0 Low, 0 Unknown) from 1 ecosystem.
17071707
0 vulnerabilities can be fixed.
17081708

17091709

17101710
+--------------------------------+------+-----------+--------------------------+--------------------------+---------------+-------------------------------------+
17111711
| OSV URL | CVSS | ECOSYSTEM | PACKAGE | VERSION | FIXED VERSION | SOURCE |
17121712
+--------------------------------+------+-----------+--------------------------+--------------------------+---------------+-------------------------------------+
17131713
| https://osv.dev/CVE-2016-2183 | 7.5 | GIT | https://github.com/openssl/openssl@aea7aaf2 | -- | testdata/locks-git/osv-scanner.json |
1714-
| https://osv.dev/CVE-2025-4575 | | GIT | https://github.com/openssl/openssl@aea7aaf2 | -- | testdata/locks-git/osv-scanner.json |
1715-
| https://osv.dev/CVE-2025-9230 | | GIT | https://github.com/openssl/openssl@aea7aaf2 | -- | testdata/locks-git/osv-scanner.json |
1716-
| https://osv.dev/CVE-2025-9231 | | GIT | https://github.com/openssl/openssl@aea7aaf2 | -- | testdata/locks-git/osv-scanner.json |
1717-
| https://osv.dev/CVE-2025-9232 | | GIT | https://github.com/openssl/openssl@aea7aaf2 | -- | testdata/locks-git/osv-scanner.json |
1714+
| https://osv.dev/CVE-2025-4575 | 6.5 | GIT | https://github.com/openssl/openssl@aea7aaf2 | -- | testdata/locks-git/osv-scanner.json |
1715+
| https://osv.dev/CVE-2025-9230 | 7.5 | GIT | https://github.com/openssl/openssl@aea7aaf2 | -- | testdata/locks-git/osv-scanner.json |
1716+
| https://osv.dev/CVE-2025-9231 | 6.5 | GIT | https://github.com/openssl/openssl@aea7aaf2 | -- | testdata/locks-git/osv-scanner.json |
1717+
| https://osv.dev/CVE-2025-9232 | 5.9 | GIT | https://github.com/openssl/openssl@aea7aaf2 | -- | testdata/locks-git/osv-scanner.json |
17181718
| https://osv.dev/CVE-2016-10931 | 8.1 | GIT | https://github.com/sfackler/rust-openssl@0f428d19 | -- | testdata/locks-git/osv-scanner.json |
17191719
| https://osv.dev/CVE-2018-20997 | 9.8 | GIT | https://github.com/sfackler/rust-openssl@0f428d19 | -- | testdata/locks-git/osv-scanner.json |
17201720
| https://osv.dev/CVE-2023-53159 | 9.1 | GIT | https://github.com/sfackler/rust-openssl@0f428d19 | -- | testdata/locks-git/osv-scanner.json |
@@ -1728,28 +1728,28 @@ Total 2 packages affected by 8 known vulnerabilities (2 Critical, 2 High, 0 Medi
17281728

17291729
[TestCommand_CommitSupport/online_uses_git_commits - 1]
17301730
Scanned <rootdir>/testdata/locks-git/osv-scanner.json file as a osv-scanner and found 4 packages
1731-
Total 3 packages affected by 15 known vulnerabilities (3 Critical, 1 High, 3 Medium, 0 Low, 8 Unknown) from 1 ecosystem.
1731+
Total 3 packages affected by 15 known vulnerabilities (3 Critical, 2 High, 8 Medium, 2 Low, 0 Unknown) from 1 ecosystem.
17321732
0 vulnerabilities can be fixed.
17331733

17341734

17351735
+--------------------------------+------+-----------+----------------------------+-----------------------------+---------------+-------------------------------------+
17361736
| OSV URL | CVSS | ECOSYSTEM | PACKAGE | VERSION | FIXED VERSION | SOURCE |
17371737
+--------------------------------+------+-----------+----------------------------+-----------------------------+---------------+-------------------------------------+
1738-
| https://osv.dev/CVE-2024-12797 | | GIT | https://github.com/openssl/openssl@45fda76b | -- | testdata/locks-git/osv-scanner.json |
1739-
| https://osv.dev/CVE-2024-13176 | | GIT | https://github.com/openssl/openssl@45fda76b | -- | testdata/locks-git/osv-scanner.json |
1740-
| https://osv.dev/CVE-2024-9143 | | GIT | https://github.com/openssl/openssl@45fda76b | -- | testdata/locks-git/osv-scanner.json |
1741-
| https://osv.dev/CVE-2025-9230 | | GIT | https://github.com/openssl/openssl@45fda76b | -- | testdata/locks-git/osv-scanner.json |
1742-
| https://osv.dev/CVE-2025-9231 | | GIT | https://github.com/openssl/openssl@45fda76b | -- | testdata/locks-git/osv-scanner.json |
1743-
| https://osv.dev/CVE-2025-9232 | | GIT | https://github.com/openssl/openssl@45fda76b | -- | testdata/locks-git/osv-scanner.json |
1738+
| https://osv.dev/CVE-2024-12797 | 6.3 | GIT | https://github.com/openssl/openssl@45fda76b | -- | testdata/locks-git/osv-scanner.json |
1739+
| https://osv.dev/CVE-2024-13176 | 4.1 | GIT | https://github.com/openssl/openssl@45fda76b | -- | testdata/locks-git/osv-scanner.json |
1740+
| https://osv.dev/CVE-2024-9143 | 4.3 | GIT | https://github.com/openssl/openssl@45fda76b | -- | testdata/locks-git/osv-scanner.json |
1741+
| https://osv.dev/CVE-2025-9230 | 7.5 | GIT | https://github.com/openssl/openssl@45fda76b | -- | testdata/locks-git/osv-scanner.json |
1742+
| https://osv.dev/CVE-2025-9231 | 6.5 | GIT | https://github.com/openssl/openssl@45fda76b | -- | testdata/locks-git/osv-scanner.json |
1743+
| https://osv.dev/CVE-2025-9232 | 5.9 | GIT | https://github.com/openssl/openssl@45fda76b | -- | testdata/locks-git/osv-scanner.json |
17441744
| https://osv.dev/CVE-2023-53159 | 9.1 | GIT | https://github.com/sfackler-fork/rust-openssl@3b064fdb | -- | testdata/locks-git/osv-scanner.json |
17451745
| https://osv.dev/CVE-2023-6180 | 5.3 | GIT | https://github.com/sfackler-fork/rust-openssl@3b064fdb | -- | testdata/locks-git/osv-scanner.json |
17461746
| https://osv.dev/CVE-2025-24898 | 6.3 | GIT | https://github.com/sfackler-fork/rust-openssl@3b064fdb | -- | testdata/locks-git/osv-scanner.json |
1747-
| https://osv.dev/CVE-2025-3416 | | GIT | https://github.com/sfackler-fork/rust-openssl@3b064fdb | -- | testdata/locks-git/osv-scanner.json |
1747+
| https://osv.dev/CVE-2025-3416 | 3.7 | GIT | https://github.com/sfackler-fork/rust-openssl@3b064fdb | -- | testdata/locks-git/osv-scanner.json |
17481748
| https://osv.dev/CVE-2016-10931 | 8.1 | GIT | https://github.com/sfackler/rust-openssl@0f428d19 | -- | testdata/locks-git/osv-scanner.json |
17491749
| https://osv.dev/CVE-2018-20997 | 9.8 | GIT | https://github.com/sfackler/rust-openssl@0f428d19 | -- | testdata/locks-git/osv-scanner.json |
17501750
| https://osv.dev/CVE-2023-53159 | 9.1 | GIT | https://github.com/sfackler/rust-openssl@0f428d19 | -- | testdata/locks-git/osv-scanner.json |
17511751
| https://osv.dev/CVE-2023-6180 | 5.3 | GIT | https://github.com/sfackler/rust-openssl@0f428d19 | -- | testdata/locks-git/osv-scanner.json |
1752-
| https://osv.dev/CVE-2025-3416 | | GIT | https://github.com/sfackler/rust-openssl@0f428d19 | -- | testdata/locks-git/osv-scanner.json |
1752+
| https://osv.dev/CVE-2025-3416 | 3.7 | GIT | https://github.com/sfackler/rust-openssl@0f428d19 | -- | testdata/locks-git/osv-scanner.json |
17531753
+--------------------------------+------+-----------+----------------------------------------------------------+---------------+-------------------------------------+
17541754

17551755
---

0 commit comments

Comments
 (0)