Update Dependabot Cursor review workflow#340
Merged
Merged
Conversation
Bring chiavdf's published workflow in sync with the latest malware preflight, split malware/compatibility Cursor prompts, artifact publishing, and comment-size safety logic from repo-content-updater. Made-with: Cursor
Avoid passing large JSON arrays through jq CLI arguments by writing changed-files and error lists to temp JSON files and loading them via --slurpfile, preventing argument-length failures in production runs. Made-with: Cursor
Truncate oversized matched line payloads before passing them to jq in append_finding so large minified lines cannot exceed argument length limits during report generation. Made-with: Cursor
Guard count and diff-stat ripgrep pipelines with `|| true` so expected no-match cases in changed-file and lockfile scans do not abort the malware step under `set -euo pipefail`. Made-with: Cursor
Clear stale tag ranges after failed ref diffs and make Cursor JSON text extraction tolerant of non-object payloads to avoid runtime crashes. Made-with: Cursor
Render PR comment text via a joined line array so fallback truncation paths produce byte-identical formatting without indentation-added whitespace. Made-with: Cursor
Member
Author
|
@cursor review |
Keep scanner summary/report in malware review context while compatibility analysis uses shared PR and usage context only. Made-with: Cursor
Member
Author
|
@cursor review |
Use malware scan step outputs (status, changed_files_count, summary) when constructing fallback summary text so emitted outputs are consumed downstream. Made-with: Cursor
Member
Author
|
@cursor review |
Only label commit-list resolution when commit fallback actually yields changed files, normalize semver numeric parsing to avoid octal arithmetic pitfalls, and replace brittle axios exact-count checks with bounded dependency-jump detection. Made-with: Cursor
Member
Author
|
@cursor review |
cmmarslender
approved these changes
Apr 1, 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.
Summary
.github/workflows/dependabot-cursor-review.ymlinchiavdfto the latest published workflow logic fromrepo-content-updaterTest plan
Made with Cursor
Note
Medium Risk
Moderate risk because it significantly expands a GitHub Actions workflow with new scanning logic, artifact uploads, and comment formatting; failures or false positives could block or spam Dependabot reviews.
Overview
Adds an upstream malware preflight scan to the Dependabot Cursor review workflow, scanning the upstream repo’s changed files between
from/toversions (or commit list fallback) for Unicode invisibles/confusables, IOC patterns, and multiple heuristic supply-chain signals, and emittingmalware_scan_report.json+ a markdown summary (warn-only by default).Splits Cursor’s single analysis into two prompts (malware verdict + compatibility/adoption), then combines the outputs into one
cursor_output.jsonand posts a PR comment that includes both the Cursor analysis and malware scan summary while enforcing GitHub comment size limits.Uploads the malware scan artifacts on every run and simplifies local usage hint gathering to require
rg(nogrepfallback).Written by Cursor Bugbot for commit 829f875. This will update automatically on new commits. Configure here.