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
| --exclude-license-details | False | False | Exclude license details from the diff report (boosts performance for large repos) |
159
188
| --version | False | False | Show program's version number and exit |
@@ -530,9 +559,136 @@ The manifest archive feature is useful for:
530
559
531
560
### Differential scan skipped on octopus merge
532
561
533
-
When your repo uses an **octopus merge** (3+ parents), the CLI may not detect all changed files.
562
+
When your repo uses an **octopus merge** (3+ parents), the CLI may not detect all changed files.
534
563
This is expected Git behavior: the default diff only compares the merge result to the first parent.
535
564
565
+
## GitLab Security Dashboard Integration
566
+
567
+
Socket CLI can generate reports compatible with GitLab's Security Dashboard, allowing vulnerability information to be displayed directly in merge requests and security dashboards. This feature complements the existing [Socket GitLab integration](https://docs.socket.dev/docs/gitlab) by providing standardized dependency scanning reports.
**Note**: This Security Dashboard integration can be used alongside the [Socket GitLab App](https://docs.socket.dev/docs/gitlab) for comprehensive protection:
All alert types are included in the GitLab report if they're marked as `error` or `warn` by your Socket Security policy, ensuring the Security Dashboard shows only actionable findings.
662
+
663
+
### Report Schema
664
+
665
+
Socket CLI generates reports compliant with [GitLab Dependency Scanning schema version 15.0.0](https://docs.gitlab.com/ee/development/integrations/secure.html). The reports include:
666
+
667
+
- **Scan metadata**: Analyzer and scanner information
668
+
- **Vulnerabilities**: Detailed vulnerability data with:
669
+
- Unique deterministic UUIDs for tracking
670
+
- Package location and dependency information
671
+
- Severity levels mapped from Socket's analysis
672
+
- Socket-specific alert types and CVE identifiers
673
+
- Links to Socket.dev for detailed analysis
674
+
675
+
### Requirements
676
+
677
+
- **GitLab Version**: GitLab 12.0 or later (for Security Dashboard support)
678
+
- **Socket API Token**: Set via `$SOCKET_API_TOKEN` environment variable or `--api-token` parameter
679
+
- **CI/CD Artifacts**: Reports must be uploaded as `dependency_scanning` artifacts
680
+
681
+
### Troubleshooting
682
+
683
+
**Report not appearing in Security Dashboard:**
684
+
- Verify the artifact is correctly configured in`.gitlab-ci.yml`
685
+
- Check that the job succeeded and artifacts were uploaded
686
+
- Ensure the report file follows the correct schema format
687
+
688
+
**Empty vulnerabilities array:**
689
+
- This is normal if no new security issues were detected
690
+
- Check Socket.dev dashboard for full analysis details
691
+
536
692
## Development
537
693
538
694
This project uses `pyproject.toml` as the primary dependency specification.
0 commit comments