Skip to content

feat(python-cli-parity): generate GitLab dependency scanning reports - #1811

Open
John-David Dalton (jdalton) wants to merge 1 commit into
v1.xfrom
feat/gitlab-dependency-report
Open

John-David Dalton (jdalton) wants to merge 1 commit into
v1.xfrom
feat/gitlab-dependency-report

Conversation

@jdalton

@jdalton John-David Dalton (jdalton) commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

The Socket Python CLI writes a report that GitLab can show in its Security Dashboard. This PR adds the same report to socket scan report. Run it with --enable-gitlab-security, then upload gl-dependency-scanning-report.json as a GitLab dependency_scanning artifact.

@jdalton
John-David Dalton (jdalton) force-pushed the feat/gitlab-dependency-report branch 2 times, most recently from e443626 to db57e0a Compare December 2, 2026 18:08
@cursor

cursor Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

PR Summary

Medium Risk
Additive security-report output with broad test coverage; incorrect mapping could misrepresent findings in GitLab, but it does not change auth or scan execution.

Overview
Adds GitLab Dependency Scanning export to socket scan report, mirroring the Python CLI so GitLab CI can ingest Socket findings into the Security Dashboard.

New flags --enable-gitlab-security and --gitlab-security-file (default gl-dependency-scanning-report.json) write a schema v15.0.0 report from raw scan artifacts—before policy folding or --report-level filtering—via new createGitLabDependencyReport (severity mapping, CVE/GHSA identifiers, stable UUID5 finding IDs, manifest locations, dependency_files). outputScanReport rejects the same resolved path for both the normal report and the GitLab file.

Tests validate output against a pinned GitLab JSON Schema (ajv devDeps). Docs cover the dependency_scanning CI artifact pattern.

Reviewed by Cursor Bugbot for commit db57e0a. Configure here.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using high effort and found 4 potential issues.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit db57e0a. Configure here.

@jdalton John-David Dalton (jdalton) changed the title feat(scan): generate GitLab dependency scanning reports feat(python-cli-parity): generate GitLab dependency scanning reports Dec 2, 2026
@jdalton
John-David Dalton (jdalton) force-pushed the feat/gitlab-dependency-report branch 5 times, most recently from e17f3ab to 5db2f2f Compare December 3, 2026 17:02

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant