Merge main into fix/web-app-jitsi/join-after-realign

Brings in #3090 (sys-ctl-hlth-runtime rebuilds an unreadable SBOM) from main 911ec3cd; no conflicts.

🎯 Fix: 98 %
💥 Break: 1 %
💸 Tokens: –
⏱️ Velocity: –
🛡️ Security: 100 %
🏆 Score: 97
🚦 Gate: ✅ 90/5, tokens and velocity <= 100, security 100 %

Created-with: https://s.veen.world/skills
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
kevinveenbirkenbachandClaude Opus 5.5 committed 2026-11-28 12:27:04 +00:00
commit c51c896b8a
2 files changed
+50 -4

No files matched your search

@@ -1428,6 +1428,34 @@ class TestScan(TestCase):
(["syft container quay.io/centos/centos:stream10: exited 2: boom"], False),
)
def test_an_sbom_cut_off_mid_write_is_built_again(self):
self.targets = [CENTOS_TARGET]
syft, cyclonedx = SCRIPT.sbom_paths(self.layout, CENTOS_TARGET)
syft.write_text("", encoding="utf-8")
cyclonedx.write_text(json.dumps(CENTOS_10), encoding="utf-8")
with contextlib.redirect_stdout(io.StringIO()):
_findings, errors, runner = self._scan(_config(targets=["container"]), {})
self.assertEqual(errors, [])
self.assertTrue(any("docker:sha256:abc" in call for call in runner.calls))
def test_without_syft_an_unreadable_sbom_keeps_the_os_packages_in_trivy(self):
self.targets = [CENTOS_TARGET]
for name, content in (("empty", ""), ("too deep", "[" * 100_000)):
with self.subTest(name):
SCRIPT.sbom_paths(self.layout, CENTOS_TARGET)[1].write_text(
content, encoding="utf-8"
)
_findings, errors, runner = self._scan(
_config(
targets=["container"],
engines=["trivy", "grype"],
trivy_unmatched_os=UNMATCHED_OS,
),
{},
)
(trivy,) = [call for call in runner.calls if "--image-src" in call]
self.assertEqual((errors, "--pkg-types" in trivy), ([], False))
def test_a_failed_sbom_skips_the_sbom_readers_of_that_target(self):
_findings, errors, runner = self._scan(
_config(targets=["host"], engines=["syft", "grype"]),