Skip to content

ci: accept zlib1g findings until FOCA 0.22.0 - #92

Merged
uniqueg merged 3 commits into
devfrom
ci/zlib-ignore
Nov 9, 2026
Merged

uniqueg merged 3 commits into
devfrom
ci/zlib-ignore

Conversation

@uniqueg

@uniqueg uniqueg commented Nov 9, 2026 •

Copy link
Copy Markdown
Member

Summary

Accept the two fixable HIGH zlib1g findings of the FOCA 0.21.0 base image (CVE-2026-76844, CVE-2026-85091) in .trivyignore.yaml until 2026-11-30, as Pubgrade-Sidecar does. They currently fail the pubgrade image scan, and with it CI passed, on every pull request (e.g. #90). The entries are limited to the affected zlib1g version (purls), because the file applies to both images. The move to the FOCA 0.22.0 base image removes them.

Closes #91

Verification

  • git diff --check: clean.
  • The failing scan of ci: label Dependabot PRs #90 (run 42542549739) shows exactly these two findings for zlib1g 1:1.3.dfsg+really1.3.1-1+b1; this PR's own CI scan checks that the entries (with purls) match.
  • Adversarial review (subagent): schema, wiring (the shared scan-image action passes the file to Trivy in ci.yml, release.yml and scan.yml) and expiry OK; its one finding (no purls, so the entries would also cover other packages and the updater image) is fixed in the second commit.
  • The first purls form (epoch in the version) did not match; Trivy's report gives the epoch as a qualifier (?epoch=1), which the third commit uses.
  • CI on 73c528a: all checks passed, including Scan image (pubgrade) and CI passed.
  • pre-commit did not run locally (no pre-commit version configured in this environment); CI runs the same hooks.

Lane

Full lane in short form: the change accepts scan findings, so it got the adversarial review; no quality review, as it changes only a YAML ignore list.

Declined review findings

  • The updater image has the same zlib1g version (seen in its scan report), so the purls don't tell the images apart (the shared action uses one ignore file per repo). Accepted: the updater's scan only reports, and the entries expire on 2026-11-30.

Open questions

None.

🤖 Generated with Claude Code

Summary by Sourcery

Temporarily accept the known FOCA 0.21.0 zlib1g scan findings until the base image can be upgraded.

Enhancements:

  • Allow the two known zlib1g vulnerabilities in the FOCA 0.21.0 base image to pass image scans until the FOCA 0.22.0 upgrade.

CI:

  • Scope the temporary vulnerability exceptions to the affected zlib1g package version and set them to expire on 2026-11-30.

uniqueg and others added 2 commits November 9, 2026 02:34
The FOCA 0.21.0 base image has zlib1g with two fixable HIGH findings,
which fail the image scan of every pull request. Accept them until
2026-11-30, with the same statement as Pubgrade-Sidecar; the FOCA 0.22.0
base image fixes them, and the move to it removes the entries.

Closes #91

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The file applies to both images, so limit the entries to the zlib1g
version of the FOCA 0.21.0 base image (`purls`), as Pubgrade-Sidecar's
header recommends.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@uniqueg uniqueg added this to the v0.1.0 milestone Nov 9, 2026
@uniqueg uniqueg added the type: ci / cd Related to continuous integration / delivery label Nov 9, 2026
@sourcery-ai

sourcery-ai Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

Reviewer's Guide

Configuration

Add temporary, version-scoped Trivy ignores for the two FOCA 0.21.0 zlib1g findings, expiring on 2026-11-30.

  • .trivyignore.yaml L5-19

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@codecov

codecov Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (55b235f) to head (73c528a).

Additional details and impacted files
@@            Coverage Diff            @@
##               dev       #92   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           17        17           
  Lines         1518      1518           
=========================================
  Hits          1518      1518           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Trivy gives the Debian epoch as the qualifier `epoch`, not in the
version, so the entries did not match (seen in the scan report).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@uniqueg
uniqueg marked this pull request as ready for review November 9, 2026 02:11
@uniqueg
uniqueg requested a review from akash2237778 as a code owner November 9, 2026 02:11

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've reviewed your changes and they look great!

Linked issues

#91 ci: accept zlib1g findings until FOCA 0.22.0 · 2 of 2 met

# Requirement Status Notes
1 Accept CVE-2026-76844 and CVE-2026-85091 with the same statement and 2026-11-30 expiry as Pubgrade-Sidecar. ✅ Met Both entries are present with the same statement and expiry, and are limited to the affected zlib1g PURL.
2 Remove the entries when the base image moves to FOCA 0.22.0. ✅ Met The base image remains on FOCA 0.21.0; the YAML comment records that the entries should be removed when it is bumped.

Sourcery assessment

Needs a human reviewer. The security scan did not finish, and these entries make CI ignore two zlib CVEs for the specified package version, allowing affected images to pass without those findings until the expiry date. Reverting restores the checks, but any affected images built or shipped while the findings are suppressed may remain exposed.


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

@uniqueg
uniqueg merged commit 01be821 into dev Nov 9, 2026
56 of 59 checks passed
@uniqueg
uniqueg deleted the ci/zlib-ignore branch November 9, 2026 03:40
This was referenced Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: ci / cd Related to continuous integration / delivery

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ci: accept zlib1g findings until FOCA 0.22.0

1 participant