Repository navigation
test(security): delete the Trivy ignore tests that read the clock - #6390
Conversation
Trivy drops an ignore entry after its exp: date, so the image scan already fails after the date. The three tests that read the wall clock only made Tests & Coverage fail on each pull request.
Test recordThe change has no Tests of the changed modules (2026-11-19): No test of the three modules reads the clock: The same tests with the clock moved forward (a local pytest plugin that starts The deleted test of Static rows:
Trivy enforces the
|
The MCP Server Image step joins three ignore files, and Trivy hides a finding while one entry of the same ID is valid. Thus the added requirement was false for CVE-2026-78661 and CVE-2026-78669. The delta now only removes the requirement whose scenario names a deleted test.
26ba943 to
29bdeb6
Compare
Test record (head 29bdeb6)This record replaces the earlier one. The review found that the added requirement "An expired MCP ignore entry stops hiding its finding" was false: the MCP Server Image step joins three ignore files, and Trivy hides a finding while one entry of the same ID is valid. The plan now only removes the requirement whose scenario names the deleted test, and adds no requirement. The change has no Tests of the changed modules (2026-11-19): No test of the three modules reads the clock: Static rows:
How Trivy uses the
|
Three tests read the wall clock and the exp: dates of .trivyignore, .trivyignore-tofu and .trivyignore-mcp-server. They made the required Tests & Coverage check fail on each pull request from the first exp: date, also when the pull request changes no image. Trivy drops an ignore entry from 00:00 UTC of its exp: date. Each image scan step joins the files of its trivyignores input into one ignore file, and Trivy hides a finding while one entry of the same ID is valid. Thus the image scan reports a finding again from the last exp: date of that ID in the joined files. The change deletes the three tests, lowers the config read counts to match, and removes the mcp-server-image requirement whose scenario names the deleted test.
Closes #6381
Change:
openspec/changes/archive/2026-11-19-6381-delete-clock-trivyignore-tests/