ci: add non-blocking PySentry dependency audit - #1283
Conversation
|
@inimaz I also can add scan to the pre-commit if u want it :) |
|
You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool. What Enabling Code Scanning Means:
For more information about GitHub Code Scanning, check out the documentation. |
|
Thanks a lot for this @nyudenkov ! Can you add the pre-commit indeed? |
|
@inimaz hi! done, and made it a bit nicer while at it:
on the security tab: that's a fork-pr limitation, not a bug. v0.5.0 skips the upload on pull_request by default and prints findings in the job summary instead. the security-tab upload happens on the |
Description
Adds
.github/workflows/pysentry.yml— a non-blocking dependency vulnerability audit using PySentry. It parsesuv.locknatively (no resolver, no dev-dependency added topyproject.toml), uploads results as SARIF to the Security tab, and cross-checks three advisory databases (PyPA, PyPI, OSV). The job iscontinue-on-error: true, so it's advisory and never blocks a PR. The action andcheckoutare pinned by SHA to match your pinned-dependencies setup.Related Issue
Follow-up to #1029 (
pip-auditdoesn't flaguv.lockdependencies).Motivation and Context
#1029 found that
pip-auditalone doesn't readuv.lock, so lockfile dependencies went unaudited. PySentry readsuv.lockdirectly, which covers that gap without changing project dependencies. Added as a separate, non-blocking job so it surfaces findings in the Security tab without gating CI.How Has This Been Tested?
YAML validated locally. The workflow uses PySentry's official pinned GitHub Action; SARIF upload targets Code Scanning, which is already enabled here via CodeQL. Full behavior is visible on the first run of this PR (Actions run summary + Security tab).
Screenshots (if appropriate):
N/A
Types of changes
AI Usage Disclosure
Checklist: