Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).

## [1.1.53](https://github.com/SocketDev/socket-cli/releases/tag/v1.1.52) - 2026-01-06
Comment thread
mtorp marked this conversation as resolved.
Outdated

### Changed
- The `scan_type` query argument is now set to `'socket_tier1'` when running `socket scan create --reach`.
This change ensures Tier 1 alerts from scans are ingested into the organization-level alerts correctly.

## [1.1.52](https://github.com/SocketDev/socket-cli/releases/tag/v1.1.52) - 2026-01-02

### Added
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "socket",
"version": "1.1.52",
"version": "1.1.53",
"description": "CLI for Socket.dev",
"homepage": "https://github.com/SocketDev/socket-cli",
"license": "MIT AND OFL-1.1",
Expand Down
3 changes: 3 additions & 0 deletions src/commands/scan/fetch-create-org-full-scan.mts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export type FetchCreateOrgFullScanConfigs = {
committers: string
pullRequest: number
repoName: string
scanType: string | undefined
}

export type FetchCreateOrgFullScanOptions = {
Expand All @@ -41,6 +42,7 @@ export async function fetchCreateOrgFullScan(
committers,
pullRequest,
repoName,
scanType,
} = { __proto__: null, ...config } as FetchCreateOrgFullScanConfigs

const {
Expand Down Expand Up @@ -78,6 +80,7 @@ export async function fetchCreateOrgFullScan(
...(committers ? { committers } : {}),
make_default_branch: String(defaultBranch),
...(pullRequest ? { pull_request: String(pullRequest) } : {}),
scan_type: scanType,
repo: repoName,
set_as_pending_head: String(pendingHead),
tmp: String(tmp),
Expand Down
3 changes: 3 additions & 0 deletions src/commands/scan/handle-create-new-scan.mts
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,9 @@ export async function handleCreateNewScan({
pullRequest,
repoName,
branchName,
scanType: reach.runReachabilityAnalysis
? constants.SCAN_TYPE_SOCKET_TIER1
: constants.SCAN_TYPE_SOCKET,
},
{
cwd,
Expand Down
8 changes: 8 additions & 0 deletions src/constants.mts
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,8 @@ const SOCKET_CLI_SHADOW_BIN = 'SOCKET_CLI_SHADOW_BIN'
const SOCKET_CLI_SHADOW_PROGRESS = 'SOCKET_CLI_SHADOW_PROGRESS'
const SOCKET_CLI_SHADOW_SILENT = 'SOCKET_CLI_SHADOW_SILENT'
const SOCKET_CLI_VIEW_ALL_RISKS = 'SOCKET_CLI_VIEW_ALL_RISKS'
const SCAN_TYPE_SOCKET = 'socket'
const SCAN_TYPE_SOCKET_TIER1 = 'socket_tier1'
const SOCKET_DEFAULT_BRANCH = 'socket-default-branch'
const SOCKET_DEFAULT_REPOSITORY = 'socket-default-repository'
const SOCKET_JSON = 'socket.json'
Expand Down Expand Up @@ -355,6 +357,8 @@ export type Constants = Remap<
readonly REPORT_LEVEL_MONITOR: typeof REPORT_LEVEL_MONITOR
readonly REPORT_LEVEL_WARN: typeof REPORT_LEVEL_WARN
readonly REQUIREMENTS_TXT: typeof REQUIREMENTS_TXT
readonly SCAN_TYPE_SOCKET: typeof SCAN_TYPE_SOCKET
readonly SCAN_TYPE_SOCKET_TIER1: typeof SCAN_TYPE_SOCKET_TIER1
readonly SOCKET_CLI_ACCEPT_RISKS: typeof SOCKET_CLI_ACCEPT_RISKS
readonly SOCKET_CLI_BIN_NAME: typeof SOCKET_CLI_BIN_NAME
readonly SOCKET_CLI_ISSUES_URL: typeof SOCKET_CLI_ISSUES_URL
Expand Down Expand Up @@ -941,6 +945,8 @@ const constants: Constants = createConstantsObject(
REPORT_LEVEL_MONITOR,
REPORT_LEVEL_WARN,
REQUIREMENTS_TXT,
SCAN_TYPE_SOCKET,
SCAN_TYPE_SOCKET_TIER1,
SOCKET_CLI_ACCEPT_RISKS,
SOCKET_CLI_BIN_NAME,
SOCKET_CLI_ISSUES_URL,
Expand Down Expand Up @@ -1197,6 +1203,8 @@ export {
REPORT_LEVEL_MONITOR,
REPORT_LEVEL_WARN,
REQUIREMENTS_TXT,
SCAN_TYPE_SOCKET,
SCAN_TYPE_SOCKET_TIER1,
SOCKET_CLI_ACCEPT_RISKS,
SOCKET_CLI_BIN_NAME,
SOCKET_CLI_ISSUES_URL,
Expand Down