Skip to content

ci: fail the weekly scan of the app image - #109

Merged
uniqueg merged 1 commit into
devfrom
ci/108-scan-fail
Nov 10, 2026
Merged

uniqueg merged 1 commit into
devfrom
ci/108-scan-fail

Conversation

@uniqueg

@uniqueg uniqueg commented Nov 10, 2026 •

Copy link
Copy Markdown
Member

Summary

Pubgrade 0.2.0 is released, so latest is a current image. The weekly scan (scan.yml) of pubgrade now fails on critical and high findings that have a fix, as CI and release.yml do. pubgrade-updater is not built on FOCA and stays report-only, as in CI and release.yml. The matrix now passes fail per image. The paragraph about the weekly scan in docs/development.md and the workflow's header comment are updated.

Closes #108

Verification

  • Local Trivy scan via Docker (aquasec/trivy:0.67.2 image --ignore-unfixed --severity CRITICAL,HIGH --ignorefile .trivyignore.yaml):
    • elixircloud/pubgrade:0.2.0: 0 findings, so the switch won't fail at once.
    • elixircloud/pubgrade-updater:0.2.0: 5 findings (zlib1g, zlib1g-dev: CVE-2026-76844, CVE-2026-85091; setuptools: CVE-2025-47273). It stays report-only.
  • pre-commit run --all-files (actionlint included): passed.
  • pytest: 715 passed.
  • mkdocs build --strict did not run locally: it needs the external/pubgrade-sidecar submodule, which wasn't checked out. CI builds the docs.

Lane

Light lane: a CI change to the scheduled scan only. No secrets, permissions or release workflow are touched.

🤖 Generated with Claude Code

Summary by Sourcery

Enforce vulnerability scan failures for the weekly application-image scan while preserving report-only checks for the updater image.

Enhancements:

  • Configure the weekly scan to fail for fixable critical and high vulnerabilities in the application image while keeping the updater image report-only.

CI:

  • Pass image-specific failure behavior through the scheduled scan matrix.

Documentation:

  • Update development documentation and workflow guidance to reflect the enforced application-image scan policy.

Pubgrade 0.2.0 is released, so `latest` is a current image. The
weekly scan of `pubgrade` now fails on critical and high findings
that have a fix, as CI and the release workflow do. The updater's
image stays report-only, as in CI and the release workflow.

Closes #108

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@sourcery-ai

sourcery-ai Bot commented Nov 10, 2026

Copy link
Copy Markdown

Reviewer's Guide

Configuration

Enable failure for the weekly pubgrade scan while keeping pubgrade-updater report-only, and update the workflow comment to describe the policy.

  • .github/workflows/scan.yml L7-9, L40-44, L56

Documentation

Update the development guide to explain that the weekly scan of the app image now fails on the same findings as other app-image scans.

  • docs/development.md L218-219

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

@read-the-docs-community

Copy link
Copy Markdown

Documentation build overview

📚 Pubgrade | 🛠️ Build #35771694 | 📁 Comparing 148313b against latest (3247d37)

  🔍 Preview build  

1 file changed
± development/index.html

@codecov

codecov Bot commented Nov 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (3247d37) to head (148313b).

Additional details and impacted files
@@            Coverage Diff            @@
##               dev      #109   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           18        18           
  Lines         1545      1545           
=========================================
  Hits          1545      1545           

☔ 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.

@uniqueg
uniqueg marked this pull request as ready for review November 10, 2026 03:11
@sourcery-ai

sourcery-ai Bot commented Nov 10, 2026

Copy link
Copy Markdown

Linked issues

Checked at commit 148313b

#108 ci: fail the weekly scan on findings · 3 of 3 met

# Requirement Status Notes
1 Remove report-only behavior for the app image scan ✅ Met The pubgrade matrix entry sets fail: "true"; the updater remains report-only.
2 Update docs/development.md accordingly ✅ Met The documentation now says the weekly app-image scan fails on the same findings as the other app-image scans.
3 The weekly scan fails on fixable critical or high findings in the published image ✅ Met The scheduled scan passes fail: ${{ matrix.fail }} to the shared scan action, with pubgrade configured as true.

@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!

Sourcery assessment

Approved.


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

@uniqueg
uniqueg merged commit d916d3d into dev Nov 10, 2026
46 checks passed
@uniqueg
uniqueg deleted the ci/108-scan-fail branch November 10, 2026 09:01
@uniqueg uniqueg added this to the v0.3.0 milestone Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ci: fail the weekly scan on findings

1 participant