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
Copy file name to clipboardExpand all lines: CHANGELOG.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,9 @@
1
1
# Changelog
2
2
3
+
## 2.2.83
4
+
5
+
- Fixed branch detection in detached-HEAD CI checkouts. When `git name-rev --name-only HEAD` returned an output with a suffix operator (e.g. `remotes/origin/master~1`, `master^0`), the `~N`/`^N` was previously passed through as the branch name and rejected by the Socket API as an invalid Git ref. The suffix is now stripped before the prefix split, producing the bare branch name.
6
+
3
7
## 2.2.71
4
8
5
9
- Added `strace` to the Docker image for debugging purposes.
|`--disable-ignore`| False | False | Disable support for`@SocketSecurity ignore` commandsin PR comments. When set, alerts cannot be suppressed via comments and ignore instructions are hidden from comment output. |
309
310
|`--strict-blocking`| False | False | Fail on ANY security policy violations (blocking severity), not just new ones. Only works in diff mode. See [Strict Blocking Mode](#strict-blocking-mode) for details. |
310
311
|`--enable-diff`| False | False | Enable diff mode even when using `--integration api` (forces diff mode without SCM integration) |
311
312
|`--scm`| False | api | Source control management type|
@@ -700,17 +701,44 @@ The GitLab report includes **actionable security alerts** based on your Socket p
700
701
701
702
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.
702
703
704
+
### Alert Population: GitLab vs JSON/SARIF
705
+
706
+
The GitLab Security Dashboard report and the JSON/SARIF diff outputs use different alert selection strategies, reflecting their distinct purposes:
707
+
708
+
| Output Format | Default Alerts | With `--strict-blocking` |
709
+
|:---|:---|:---|
710
+
| `--enable-gitlab-security` | **All** alerts (new + existing) | All alerts (same) |
711
+
| `--enable-json` | New alerts only | New + existing alerts |
712
+
| `--enable-sarif` (diff scope) | New alerts only | New + existing alerts |
713
+
714
+
**Why the difference?** GitLab's Security Dashboard is designed to present the full security posture of a project. An empty dashboard on a scan with no dependency changes would be misleading -- the vulnerabilities still exist, they just didn't change. By contrast, JSON and SARIF in diff scope are designed to answer "what changed?" and only include existing alerts when `--strict-blocking` explicitly requests it.
715
+
716
+
> **Tip:** If you use `--enable-json` alongside `--enable-gitlab-security`, the GitLab report may contain more vulnerabilities than the JSON output. This is expected. To make JSON output match, add `--strict-blocking`.
717
+
718
+
### Alert Ignoring via PR/MR Comments
719
+
720
+
When using the CLI with SCM integration (`--scm github` or `--scm gitlab`), users can ignore specific alerts by reacting to Socket's PR/MR comments. Ignored alerts are removed from `--enable-json`, `--enable-sarif`, and console output.
721
+
722
+
However, the GitLab Security Dashboard report includes **all** alerts matching your security policy (new and existing), regardless of comment-based ignores. This ensures the Security Dashboard always reflects the full set of known issues. To suppress a vulnerability from the GitLab report, adjust the alert's policy in Socket's dashboard rather than ignoring it via a PR comment.
723
+
703
724
### Report Schema
704
725
705
-
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:
726
+
Socket CLI generates reports compliant with [GitLab Dependency Scanning schema version 15.0.0](https://gitlab.com/gitlab-org/security-products/security-report-schemas/-/blob/v15.0.0/dist/dependency-scanning-report-format.json). The reports include:
706
727
707
-
- **Scan metadata**: Analyzer and scanner information
728
+
- **Scan metadata**: Analyzer and scanner information with ISO 8601 timestamps
708
729
- **Vulnerabilities**: Detailed vulnerability data with:
709
730
- Unique deterministic UUIDs for tracking
710
731
- Package location and dependency information
711
732
- Severity levels mapped from Socket's analysis
712
733
- Socket-specific alert types and CVE identifiers
713
734
- Links to Socket.dev for detailed analysis
735
+
- **Dependency files**: Manifest files and their dependencies discovered during the scan
736
+
737
+
**Schema compatibility:** The v15.0.0 schema is supported across all GitLab versions 12.0+ (both self-hosted and cloud). The report includes the `dependency_files` field, which is required by v15.0.0 and accepted as an optional extra by newer schema versions, ensuring maximum compatibility across GitLab instances.
738
+
739
+
### Performance Notes
740
+
741
+
When `--enable-gitlab-security` (or `--enable-json` / `--enable-sarif`) is used with a full scan (non-diff mode), the CLI fetches package and alert data from the scan results to populate the report. This adds time proportional to the number of packages in the scan. Without these output flags, no additional data is fetched and scan performance is unchanged.
714
742
715
743
### Requirements
716
744
@@ -726,7 +754,9 @@ Socket CLI generates reports compliant with [GitLab Dependency Scanning schema v
726
754
- Ensure the report file follows the correct schema format
727
755
728
756
**Empty vulnerabilities array:**
729
-
- This is normal if no new security issues were detected
757
+
- The GitLab report includes both new and existing alerts, so repeated scans of the same repo should still populate the report as long as Socket detects actionable issues
758
+
- If the report is empty, verify the Socket dashboard shows alerts for the scanned packages -- an empty report means no error/warn-level alerts exist
759
+
- For full scans (non-diff mode), ensure you are using `--enable-gitlab-security` so alert data is fetched
730
760
- Check Socket.dev dashboard for full analysis details
0 commit comments