Skip to content

Return non-zero exit code when scan report data is not healthy.#986

Merged
John-David Dalton (jdalton) merged 1 commit into
v1.xfrom
unhealthy-report-exit-code
Dec 19, 2025
Merged

Return non-zero exit code when scan report data is not healthy.#986
John-David Dalton (jdalton) merged 1 commit into
v1.xfrom
unhealthy-report-exit-code

Conversation

@graydonhope
Copy link
Copy Markdown

Fixes the issue where socket ci would exit with code 0 even when
blocking alerts were found.

This is the expected behaviour based on our docs: https://docs.socket.dev/docs/socket-ci#non-zero-exit-code

Comment thread packages/cli/src/commands/scan/output-scan-report.mts
Comment thread packages/cli/test/unit/commands/ci/handle-ci.test.mts Outdated
@graydonhope Graydon Hope (graydonhope) force-pushed the unhealthy-report-exit-code branch 2 times, most recently from e858d15 to 9e98037 Compare December 19, 2025 03:34
@jdalton John-David Dalton (jdalton) changed the base branch from main to v1.x December 19, 2025 16:08
@jdalton John-David Dalton (jdalton) changed the base branch from v1.x to main December 19, 2025 16:08
@jdalton John-David Dalton (jdalton) dismissed their stale review December 19, 2025 16:09

missed the wrong branch

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Graydon Hope (@graydonhope) Please implement this against the v1.x branch.

@graydonhope Graydon Hope (graydonhope) changed the base branch from main to v1.x December 19, 2025 18:13
@jdalton John-David Dalton (jdalton) merged commit 95aa4fc into v1.x Dec 19, 2025
9 checks passed
@jdalton John-David Dalton (jdalton) deleted the unhealthy-report-exit-code branch December 19, 2025 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants