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 |
@@ -624,9 +653,136 @@ The manifest archive feature is useful for:
624
653
625
654
### Differential scan skipped on octopus merge
626
655
627
-
When your repo uses an **octopus merge** (3+ parents), the CLI may not detect all changed files.
656
+
When your repo uses an **octopus merge** (3+ parents), the CLI may not detect all changed files.
628
657
This is expected Git behavior: the default diff only compares the merge result to the first parent.
629
658
659
+
## GitLab Security Dashboard Integration
660
+
661
+
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.
756
+
757
+
### Report Schema
758
+
759
+
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:
760
+
761
+
- **Scan metadata**: Analyzer and scanner information
762
+
- **Vulnerabilities**: Detailed vulnerability data with:
763
+
- Unique deterministic UUIDs for tracking
764
+
- Package location and dependency information
765
+
- Severity levels mapped from Socket's analysis
766
+
- Socket-specific alert types and CVE identifiers
767
+
- Links to Socket.dev for detailed analysis
768
+
769
+
### Requirements
770
+
771
+
- **GitLab Version**: GitLab 12.0 or later (for Security Dashboard support)
772
+
- **Socket API Token**: Set via `$SOCKET_API_TOKEN` environment variable or `--api-token` parameter
773
+
- **CI/CD Artifacts**: Reports must be uploaded as `dependency_scanning` artifacts
774
+
775
+
### Troubleshooting
776
+
777
+
**Report not appearing in Security Dashboard:**
778
+
- Verify the artifact is correctly configured in`.gitlab-ci.yml`
779
+
- Check that the job succeeded and artifacts were uploaded
780
+
- Ensure the report file follows the correct schema format
781
+
782
+
**Empty vulnerabilities array:**
783
+
- This is normal if no new security issues were detected
784
+
- Check Socket.dev dashboard for full analysis details
785
+
630
786
## Development
631
787
632
788
This project uses `pyproject.toml` as the primary dependency specification.
0 commit comments