Silent CI Bug: A Security Scanner Passed for Two Months While Scanning Nothing
A software developer discovered that a secrets-scanning script was silently passing CI checks for two months because it was receiving file paths instead of directories, causing its glob pattern to match zero files. Since both a clean scan and an empty scan exit with code 0 and print 'PASS', the failure was completely indistinguishable from a genuine pass. The only honest signal — a log line reading 'files scanned: 0' — was overlooked repeatedly because the word 'PASS' appeared immediately after it. The developer fixed the issue by adding an explicit check that exits with a distinct error code when zero files are scanned, refusing to report success. The key lesson: any verification step that gates a release must print how many items it examined and treat a zero-match result as a hard failure, not a silent pass.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in