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 8c5d3e9
Browse filesBrowse the repository at this point in the historyBrowse files
Reject owner/repo in --repo and deprecate --pending-head
--repo was documented as owner/repo, but the value is sent as the
repository slug, which the API validates against [a-zA-Z0-9._-]+.
Following the help text failed every scan, at repository creation or
full-scan creation. Describe the slug in the help text and docs, and
exit 1 up front when --repo contains "/", naming the slug to use.
--pending-head was parsed and never read: set_as_pending_head follows
is_default_branch. Keep accepting it so existing pipelines still parse,
but hide it from --help and log a deprecation warning pointing at
--default-branch.
Also fix the docs examples that taught owner/repo: the GitLab CI
example ($CI_PROJECT_PATH -> $CI_PROJECT_NAME) and the Slack repos
filter, which is matched against the bare slug.
Bump to 2.11.12.
| `--repo` | False | *auto* | Repository name in owner/repo format (auto-detected from git remote) |
238
+
| `--repo` | False | *auto* | Repository slug in Socket, without the owner: `my-repo`, not `my-org/my-repo`. Auto-detected from the git remote. A value containing `/` is rejected; use `--workspace` for the owner. |
239
239
| `--workspace` | False | | The Socket workspace to associate the scan with (e.g. `my-org` in `my-org/my-repo`). See note below. |
240
240
| `--repo-is-public` | False | False | If set, flags a new repository creation as public. Defaults to false. |
241
241
| `--integration` | False | api | Integration type (api, github, gitlab, azure, bitbucket). When omitted, `--scm github` or `--scm gitlab` implies the matching integration. |
@@ -308,7 +308,6 @@ If you don't want to provide the Socket API Token every time then you can use th
|`--default-branch`| False |*auto*| Make this branch the default branch (auto-detected from git and CI environment when not specified) |
311
-
|`--pending-head`| False |*auto*| If true, the new scan will be set as the branch's head scan (automatically synced with default-branch) |
312
311
|`--include-module-folders`| False | False | If enabled, re-includes the JS/TS module folders (`node_modules`, `bower_components`, `jspm_packages`) in manifest discovery. For other excluded directories, use `--include-dirs`. |
- `reachability_alerts_only` (boolean, default: false): When `--reach` is enabled, only send reachable vulnerabilities from the selected diff alert set (uses reachability facts when available; otherwise falls back to blocking-status behavior)
554
-
- `repos` (array): Only send alerts for specific repositories(e.g., `["owner/repo1", "owner/repo2"]`)
553
+
- `repos` (array): Only send alerts for specific repositories, matched against the `--repo` slug without the owner (e.g., `["my-repo1", "my-repo2"]`)
555
554
- `alert_types` (array): Only send specific alert types (e.g., `["malware", "typosquat"]`)
556
555
- `severities` (array): Only send alerts with specific severities (e.g., `["high", "critical"]`)
557
556
@@ -683,7 +682,7 @@ The CLI uses intelligent default branch detection with the following priority:
683
682
3. **Git repository analysis**: Compares current branch with repository's default branch
684
683
4. **Fallback**: Defaults to `false`if none of the above methods succeed
685
684
686
-
Both `--default-branch` and `--pending-head` parameters are automatically synchronized to ensure consistent behavior.
685
+
A scan on the defaultbranch also becomes that branch's head scan. `--pending-head` is deprecated and has no effect: it is still accepted so existing pipelines keep working, but it logs a warning. Use `--default-branch` instead.
687
686
688
687
## Who can ignore an alert
689
688
@@ -763,7 +762,7 @@ Socket CLI can generate reports compatible with GitLab's Security Dashboard, all
0 commit comments