Skip to content

refactor(security): use the osv-scanner config for audit ignores - #6908

Merged
dan-petty merged 1 commit into
mainfrom
refactor/6419-use-the-osv-scanner-config-for-audit-ignores
Nov 23, 2026
Merged

dan-petty merged 1 commit into
mainfrom
refactor/6419-use-the-osv-scanner-config-for-audit-ignores

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The project runs devops ci audit with a custom ignore loader, models, filter, and messages for .npm-audit-ignore.yaml. npm audit reads no native configuration file. osv-scanner has a native configuration file (osv-scanner.toml) for ignored vulnerabilities. The project can scan the root package-lock.json with osv-scanner directly and drop custom loaders.

Closes #6419

Change: openspec/changes/archive/2026-11-23-6419-use-the-osv-scanner-config-for-audit-ignores/

@dan-petty dan-petty added type/refactor Type refactor: a new structure, same behavior scope/security Security linters (trivy, bandit, gitleaks, kubeconform) and Vault labels Nov 23, 2026
@dan-petty
dan-petty marked this pull request as ready for review November 23, 2026 20:16
@dan-petty

Copy link
Copy Markdown
Owner Author

Audit comparison on root package-lock.json

  • npm audit:
{
  "auditReportVersion": 2,
  "vulnerabilities": {},
  "metadata": {
    "vulnerabilities": {
      "info": 0,
      "low": 0,
      "moderate": 0,
      "high": 0,
      "critical": 0,
      "total": 0
    },
    "dependencies": {
      "prod": 1,
      "dev": 170,
      "optional": 0,
      "peer": 0,
      "peerOptional": 0,
      "total": 170
    }
  }
}
  • osv-scanner scan source --lockfile package-lock.json:
Scanned package-lock.json file and found 168 packages
Loaded filter from: osv-scanner.toml
No issues found

Both tools report zero vulnerabilities.

@dan-petty
dan-petty merged commit 0d50dac into main Nov 23, 2026
29 checks passed
@dan-petty
dan-petty deleted the refactor/6419-use-the-osv-scanner-config-for-audit-ignores branch November 23, 2026 20:19
dan-petty-release Bot added a commit that referenced this pull request Nov 23, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.203.4](v0.203.3...v0.203.4)
(2026-11-23)


### Bug Fixes

* **deps:** lock file maintenance
([#6920](#6920))
([0264b0d](0264b0d))
* **deps:** update ghcr.io/dan-petty/devtools Docker tag to v1.1.6
([#6910](#6910))
([64f0b80](64f0b80))
* **deps:** update Node.js to v24.0.2
([#6911](#6911))
([34acd8a](34acd8a))
* **security:** judge Trivy-config DS-0029 in Harbor template Dockerfile
([#6907](#6907))
([23a48a8](23a48a8))


### Code Refactoring

* **security:** use the osv-scanner config for audit ignores
([#6908](#6908))
([0d50dac](0d50dac))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/security Security linters (trivy, bandit, gitleaks, kubeconform) and Vault type/refactor Type refactor: a new structure, same behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

refactor(security): use the osv-scanner config for audit ignores

1 participant