You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ci: check dependency vulnerabilities on PRs and stable releases - #31858
Check known dependency vulnerabilities when dependencies change and before publishing a stable desktop release. No daily schedule.
What Changed
One reusable Linux workflow audits JavaScript lockfiles and native Rust advisories with pinned cargo-deny 0.20.2. Reports upload even on failure.
Dependency-change PRs and manual runs audit all five pnpm lockfiles. Stable desktop releases audit the exact release tag's desktop and bundled mobile-web lockfiles plus native Rust, in parallel with builds. Publication requires success; RCs skip this gate. Unrelated cloud/docs/audit-tool findings do not block desktop releases.
Release scanner tooling and exception policy come from the workflow commit. Only candidate lockfiles, workspace patch registrations, Rust manifests, and patch bytes are extracted. Package manifests, pnpm/Cargo configuration, toolchain overrides, and symlinks are excluded; the candidate is never installed. This prevents pnpm package-manager switching and Cargo metadata wrappers from executing candidate code. This also supports release refs that predate the scanner scripts.
High/critical JavaScript findings and scanner errors fail the check. Existing reviewed patches are exempted only for the exact workspace/package/version/advisory after verifying patch bytes, registration, locked hash and every snapshot. Expired actual exceptions block; obsolete exceptions do not fail clean scans.
Rust scans use locked manifests, all features, no target restriction and no advisory ignores. Scanner binaries are cached; advisory data is refreshed. Registry/advisory failures block stable publication until a successful rerun.
Draft/obsolete PR cancellation follows existing conventions. Release concurrency is separate from PR/manual runs.
No new project dependencies, license enforcement, platform matrix, daily/main-push runs, or branch-protection changes. Replaces the broader #31746.
Performance
The prior CI run measured 2 seconds for all five JavaScript audits and 1 second for both Rust audits. Full jobs took 44 seconds and 2m04s, including a cold Rust scanner installation. Release scans fetch only the release data needed for the audit and overlap the release builds.
Extraction regression runs the actual action command against a Git fixture and verifies Rust/patch data is included while candidate executable configuration and package manifests are excluded. Candidate archive attributes cannot omit inputs, and missing required lockfiles/workspace YAMLs fail rather than falling back to the tooling workspace.
Live JavaScript and Rust scans passed against extracted candidate data. The release scan also passed with cloud/docs/audit-tools and candidate policy files absent; hooks did not run and no candidate node_modules was created.
Independent adversarial review of final commit ab930a3: no remaining blockers; extraction bypass and candidate-configuration findings were fixed and regression-tested.
Prior workflow CI passed both scanner jobs; the updated commit will run PR CI again.
Review
Stable release scans cover desktop build dependencies as well as runtime dependencies and the bundled mobile web app. Cloud/docs/audit-tool scans remain PR/manual checks. Existing process wrappers preserve local cross-platform invocation; no remote, mobile runtime, or folder-workspace behavior changes.
Agent skill upstream boundary
Not applicable: no upstream skill-installer source or assets copied.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 1 remain after this review.
📝 Walkthrough
The change adds JavaScript and Rust dependency audits. JavaScript findings are checked against validated exceptions for reviewed patches. A new workflow runs the audits for relevant pull requests and stable releases, and stable release publication depends on a successful check. The change also adds Cargo Deny configuration, audit documentation, workflow tests, and PR workflow-cancellation handling.
Priority: ➖ Normal
Merge Risk:⚪ Minimal · up to f392d
No identified issue blocks merging after normal checks.
Pre-merge checks: 4 · 1
Failed checks: 1 warning
Check name
Status
Explanation
Resolution
Docstring Coverage
Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 7 functions across 6 files. (3 skipped: 3 …
Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed checks: 4 passed
Check name
Status
Explanation
Title check
The title clearly and concisely summarizes the main change: dependency vulnerability checks for pull requests and stable releases.
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Description check
The description is detailed and covers the change, rationale, linked issue reference, visual proof, testing, review scope, and agent boundary. It omits an explicit "## Why" heading and the template's …
Full details: Description check
Explanation
The description is detailed and covers the change, rationale, linked issue reference, visual proof, testing, review scope, and agent boundary. It omits an explicit "## Why" heading and the template's Notes and Checklist sections, but the required information is largely present and the omissions are non-critical.
Full details: Docstring Coverage
Explanation
Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 7 functions across 6 files. (3 skipped: 3 unsupported.)
Resolution
Write docstrings for the functions missing them to satisfy the coverage threshold.
✨ Finishing Touches: 💡 1
📝 Generate docstrings: 💡
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
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
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.
ELI5
Check known dependency vulnerabilities when dependencies change and before publishing a stable desktop release. No daily schedule.
What Changed
No new project dependencies, license enforcement, platform matrix, daily/main-push runs, or branch-protection changes. Replaces the broader #31746.
Performance
The prior CI run measured 2 seconds for all five JavaScript audits and 1 second for both Rust audits. Full jobs took 44 seconds and 2m04s, including a cold Rust scanner installation. Release scans fetch only the release data needed for the audit and overlap the release builds.
Linked Issue
Maintainer-requested replacement for #31746.
Visual Proof
N/A — CI and command-line tooling only.
Testing
Review
Stable release scans cover desktop build dependencies as well as runtime dependencies and the bundled mobile web app. Cloud/docs/audit-tool scans remain PR/manual checks. Existing process wrappers preserve local cross-platform invocation; no remote, mobile runtime, or folder-workspace behavior changes.
Agent skill upstream boundary