build(workflows): add pip-audit CI dependency scanning#1052
Merged
WilliamBerryiii merged 4 commits intomainfrom Mar 17, 2026
Merged
build(workflows): add pip-audit CI dependency scanning#1052WilliamBerryiii merged 4 commits intomainfrom
WilliamBerryiii merged 4 commits intomainfrom
Conversation
- add reusable pip-audit workflow with matrix strategy for Python skills - create Invoke-PipAudit.ps1 local execution wrapper with Pester tests - integrate pip-audit into pr-validation.yml via discover-python-projects - add license policy and OSSF Scorecard config to dependency-review.yml - add audit:pip npm script for local execution 🔒 - Generated by Copilot
Contributor
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.OpenSSF Scorecard
Scanned Files
|
9 tasks
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1052 +/- ##
==========================================
+ Coverage 87.97% 88.02% +0.04%
==========================================
Files 44 45 +1
Lines 7835 7882 +47
==========================================
+ Hits 6893 6938 +45
- Misses 942 944 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
katriendg
approved these changes
Mar 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Added Python dependency vulnerability scanning through pip-audit at both CI and local execution levels. A new reusable GitHub Actions workflow audits Python projects via
uvx pip-audit@2.10.0, with change-detection optimization that skips audits when no dependency files changed. The workflow integrates into PR validation through a matrix job gated on discovered Python projects.The existing dependency-review workflow gained a license allowlist of 13 OSI-approved SPDX identifiers and OSSF Scorecard display with a warning threshold. A local PowerShell wrapper (Invoke-PipAudit.ps1) mirrors the CI scanning behavior and exposes an
audit:pipnpm script for developer use. All new functionality includes 11 Pester tests covering discovery, audit execution, and orchestration paths.CI Pipeline
working-directory,soft-fail, andchanged-files-onlyinputsgit diffscoped to pyproject.toml, uv.lock, and requirements*.txtpermissions: contents: readat workflow and job levelPR Validation Integration
discover-python-projectsoutput withfail-fast: falseandchanged-files-only: trueDependency Review Hardening
Local Execution
Find-PythonProjects,Invoke-PipAuditForProject, andStart-PipAuditfunctionsInvoke-PipAuditForProjectaudit:pipnpm script to package.jsonTesting
Related Issue(s)
Closes #1020
Type of Change
Select all that apply:
Code & Documentation:
Infrastructure & Configuration:
AI Artifacts:
prompt-builderagent and addressed all feedback.github/instructions/*.instructions.md).github/prompts/*.prompt.md).github/agents/*.agent.md).github/skills/*/SKILL.md)Other:
.ps1,.sh,.py)Sample Prompts (for AI Artifact Contributions)
Testing
All validation passed locally:
Find-PythonProjects,Invoke-PipAuditForProject, andStart-PipAuditdescribe blocksChecklist
Required Checks
AI Artifact Contributions
/prompt-analyzeto review contributionprompt-builderreviewRequired Automated Checks
The following validation commands must pass before merging:
npm run lint:mdnpm run spell-checknpm run lint:frontmatternpm run validate:skillsnpm run lint:md-linksnpm run lint:ps