Skip to content

fix(ci): centralize OSV vulnerability ignores in org-wide config#143

Merged
JacobPEvans merged 2 commits intomainfrom
feature/central-osv-config
Mar 29, 2026
Merged

fix(ci): centralize OSV vulnerability ignores in org-wide config#143
JacobPEvans merged 2 commits intomainfrom
feature/central-osv-config

Conversation

@JacobPEvans
Copy link
Copy Markdown
Owner

@JacobPEvans JacobPEvans commented Mar 27, 2026

PR #143: Centralize OSV Vulnerability Ignores

Summary

  • Add central osv-scanner.toml with org-wide vulnerability ignores for CVEs with no upstream fix
  • Update _osv-scan.yml to fetch central config when repos don't have a local override
  • Inheritance: local osv-scanner.toml in a repo takes precedence over central config

Changes

CVE Package Severity Status
GHSA-5239-wwwm-4pmq pygments 2.19.2 Low (3.3) No upstream fix
GHSA-jm6w-m3j8-898g nltk 3.9.3 High (7.5) No upstream fix
GHSA-rf74-v2fm-23pw nltk 3.9.3 Medium (5.1) No upstream fix
GHSA-gfwx-w7gr-fvh7 nltk 3.9.3 Medium (6.1) Upgrade pending (3.9.4)
GHSA-gc5v-m9x4-r6x2 requests 2.32.5 Medium (4.4) Upgrade pending (2.33.0)

Replaces JacobPEvans/nix-ai#344 — centralizes ignores in .github instead of per-repo duplication.

Test plan

  • Verify _osv-scan.yml fetches central config in repos without local osv-scanner.toml
  • Verify repos with local osv-scanner.toml still use their own config
  • OSV scan passes in nix-ai after this lands

Add osv-scanner.toml at repo root with org-wide vulnerability ignores
for CVEs with no upstream fix (pygments, nltk, requests). Update
_osv-scan.yml to fetch this central config when repos don't have a
local osv-scanner.toml — local configs take precedence for overrides.

This eliminates the need for per-directory osv-scanner.toml files in
individual repos (closes JacobPEvans/nix-ai#344 approach).

(claude)
Copilot AI review requested due to automatic review settings March 27, 2026 11:05
@gemini-code-assist
Copy link
Copy Markdown

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request streamlines vulnerability management by centralizing OSV scanner ignore rules. By moving these configurations to an organization-wide file, it reduces duplication across repositories while ensuring that local overrides remain respected for specific project needs.

Highlights

  • Centralized Configuration: Introduced a global osv-scanner.toml file to manage vulnerability ignores across the organization.
  • Inheritance Logic: Updated CI workflows to fetch the central configuration by default, while maintaining support for local repository overrides.
  • Vulnerability Management: Added specific ignore rules for several CVEs in pygments, nltk, and requests where upstream fixes are either unavailable or pending.
Ignored Files
  • Ignored by pattern: .github/workflows/** (1)
    • .github/workflows/_osv-scan.yml
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.


A scanner runs to find the flaw, To keep the code within the law. With central rules to guide the way, We keep the vulnerabilities at bay.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Centralizes OSV scanner vulnerability ignore configuration in the org-wide .github repo and updates the reusable OSV scan workflow to automatically use that central config when a caller repo doesn’t provide its own override.

Changes:

  • Add an org-wide osv-scanner.toml with vulnerability ignore entries.
  • Update reusable workflow _osv-scan.yml to fetch the central config only when a local osv-scanner.toml is absent.
  • Apply a “local config wins” precedence by preferring an in-repo osv-scanner.toml over the fetched central one.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
osv-scanner.toml Introduces the shared ignore list intended to be inherited by org repos.
.github/workflows/_osv-scan.yml Fetches and applies the central osv-scanner.toml when no local override exists.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Update comment to acknowledge that some ignores are for CVEs with
available fixes that are pending Renovate upgrade rollout.

(claude)
@JacobPEvans JacobPEvans merged commit 9fb58a5 into main Mar 29, 2026
2 checks passed
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.

2 participants