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
{{ message }}
Repository navigation
Commit b3dc63f
Browse filesBrowse the repository at this point in the historyBrowse files
Fix package links in PR and MR security comments (#465)
* Link "This package" in PR comments to the package page
Each security comment row linked "This package" to the bare package
coordinate (alert.purl, e.g. handlebars@4.0.11), so GitHub and GitLab
resolved it as a relative link to a page that does not exist. The alert
rows have done this since the HTML comment template was introduced, and
license rows since they were added; the --strict-blocking existing-alerts
table reuses both templates.
Both rows now use alert.url, the package overview URL that
Package.socket_url builds with the namespace (npm scope, Maven groupId, Go
module path). The Markdown, Slack and Jira outputs already link the package
with that URL.
* Bump version to 2.13.3
2.13.2 was released from main, so this change needs the next patch version.
* Keep scoped package ignores precise
Include the package namespace in comment rows and generated ignore commands.
Match qualified commands in both scan results and comment updates, while
continuing to honor existing bare-name commands.
* Preserve alert order when truncating PR comments
* Don't claim existing alerts fail the run under --disable-blocking
* Note the report-only wording fix in the changelog
---------
Co-authored-by: lelia <2418071+lelia@users.noreply.github.com>
Copy file name to clipboardExpand all lines: docs/cli-reference.md
+10-1Lines changed: 10 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -664,7 +664,16 @@ Security issues detected by Socket Security:
664
664
- **With `--reach`**. With no explicit baseline, the CLI looks for a default-branch head scan with reachability enabled. If none exists, the CLI compares against an empty baseline and classifies all findings as new. Scan the default branch with `--reach` too.
665
665
- **Policy actions**. Warn findings are reported. If the same finding has both Warn and Block actions, Block takes precedence.
666
666
- **Existing alerts come from the full scan**. The CLI fetches the current full scan when the comparison leaves out alerts on unchanged packages or when a dependency version changes. A failed fetch or a missing package in that response triggers the infrastructure-error exit code.
667
-
- **PR/MR comments**: Existing alerts are listed in their own table after the new ones, blocking first, with license violations grouped per package. `@SocketSecurity ignore` applies to them too. Very large sets are cut off before the comment reaches GitHub's size limit, with a link to the full report. Ignoring every displayed alert preserves the warning about omitted findings;`ignore-all` also clears omitted findings.
667
+
- **PR/MR comments**. The comment lists new alerts first, then existing alerts
668
+
with Block findings first in the existing-alerts table. License findings are
669
+
grouped by package, including its scope or namespace. **This package** opens
670
+
the affected version on socket.dev. Use the generated `@SocketSecurity ignore`
671
+
command to target the package's exact scope or namespace.
672
+
- **Comment size**. Large comments show how many new and existing alerts were
673
+
omitted to fit GitHub's size limit and link to the full report.
674
+
Policy checks and reports still use all findings. If you ignore every visible
675
+
alert, the comment keeps the omission notice. Use `@SocketSecurity ignore-all`
676
+
to clear all findings, including omitted ones.
668
677
- **Priority**: `--disable-blocking` takes precedence - if both flags are set, the build will always pass.
669
678
- **First Scan**: On the very first scan of a repository, there are no "existing" violations, so behavior is identical to standard mode.
0 commit comments