Skip to content

build: accept setuptools advisory vendored by pip - #562

Merged
uniqueg merged 1 commit into
devfrom
build/ignore-setuptools-ghsa
Oct 29, 2026
Merged

uniqueg merged 1 commit into
devfrom
build/ignore-setuptools-ghsa

Conversation

@uniqueg

@uniqueg uniqueg commented Oct 29, 2026 •

Copy link
Copy Markdown
Member

Summary

Accepts GHSA-xmj3-9gf7-h52w (low) in .trivyignore.yaml, limited to pkg:pypi/[email protected], with the same expiry (2027-01-31) as the other setuptools entries: the copy is vendored by pip, which the app doesn't use, and the advisory concerns Windows paths in legacy wheel installation. Clears code scanning alert 532 (image-py3.13) after the next scan.

Closes #561

Verification

Light lane: one entry in a scanner configuration file, same format as its neighbours; diff reviewed by hand. CI's image scan runs on this PR.

🤖 Generated with Claude Code

Summary by Sourcery

Build:

  • Allow the specified setuptools advisory for the pip-vendored package copy in the vulnerability scanner ignore configuration, with an expiry of 2027-01-31.

GHSA-xmj3-9gf7-h52w (low) affects the setuptools 70.3.0 copy that pip vendors, like the two setuptools entries already accepted; the app doesn't use it and the image is Linux.

Closes #561

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

sourcery-ai Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

Updates the Trivy ignore configuration to accept GHSA-xmj3-9gf7-h52w for pip-vendored setuptools 70.3.0, with a platform- and usage-specific rationale and a fixed review expiry.

File-Level Changes

Change Details Files
Adds a narrowly scoped Trivy exception for a setuptools advisory affecting pip’s vendored copy.
  • Ignores GHSA-xmj3-9gf7-h52w only for setuptools 70.3.0.
  • Documents the risk rationale: the app does not use pip at runtime, the image is Linux, and the issue affects legacy Windows wheel installation.
  • Uses the existing 2027-01-31 expiry shared by related setuptools exceptions.
.trivyignore.yaml

Assessment against linked issues

Issue Objective Addressed Explanation
#561 Add GHSA-xmj3-9gf7-h52w to .trivyignore.yaml, scoped to pkg:pypi/[email protected], with the same rationale and expiry as the existing setuptools exceptions. ✅

Possibly linked issues


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

@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

Needs a human reviewer. The security scan did not finish, and this suppresses the GHSA-xmj3-9gf7-h52w finding for setuptools 70.3.0, so if the platform-based exemption is wrong, scans will stop surfacing that vulnerability without an indication. Reverting restores the finding, but cannot recover any time it went unnoticed.


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

@codecov

codecov Bot commented Oct 29, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (17d4e00) to head (ce268a1).

Additional details and impacted files
@@            Coverage Diff            @@
##               dev      #562   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           56        56           
  Lines         7010      7010           
=========================================
  Hits          7010      7010           
Flag Coverage Δ
test_unit 100.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

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.

build: accept setuptools advisory vendored by pip

1 participant