Skip to content

Tags

Tags

v2.15.7

Toggle v2.15.7's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Bump pinned Coana CLI to 15.15.9 (#480)

Co-authored-by: socket-pr-bot[bot] <294242679+socket-pr-bot[bot]@users.noreply.github.com>

v2.15.2

Toggle v2.15.2's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Bump pinned Coana CLI to 15.15.7 (#474)

Co-authored-by: socket-pr-bot[bot] <294242679+socket-pr-bot[bot]@users.noreply.github.com>

v2.15.1

Toggle v2.15.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Bump pinned Coana CLI to 15.15.3 (#469)

Co-authored-by: socket-pr-bot[bot] <294242679+socket-pr-bot[bot]@users.noreply.github.com>

v2.15.0

Toggle v2.15.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Retire `--reach-enable-analysis-splitting` (#466)

* Retire --reach-enable-analysis-splitting

The Coana CLI no longer splits analyses, so the flag has nothing left to
turn on. It is now a hidden no-op, like --reach-disable-analysis-splitting.
It still parses, so existing CI scripts keep working.

Reachability now always passes --disable-analysis-splitting to Coana. A
version picked with --reach-version that still splits by default runs a
single analysis too, and newer versions ignore the flag.

Bump to 2.13.3.

* Drop the unused deprecated reach config fields

reach_disable_analysis_splitting and reach_lazy_mode were copied into
CliConfig but never read. They are gone now, the same as the new
--reach-enable-analysis-splitting no-op. The argparse definitions stay,
so all three flags still parse.

The hidden-flag test now covers --reach-lazy-mode too.

v2.14.0

Toggle v2.14.0's commit message

Partially verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
We cannot verify signatures from co-authors, and some of the co-authors attributed to this commit require their commits to be signed.
Clarify `--include-module-folders` and document SBOM scans (#463)

* Document what --include-module-folders does

The help text said "Enabling including module folders like node_modules",
which doesn't say what a scan gains. The flag removes node_modules,
bower_components and jspm_packages from the directories manifest
discovery skips. Every package.json under them is then uploaded as its
own project, and Socket resolves the dependencies each one declares,
devDependencies included. The installed packages themselves are never
recorded, so the flag can add hundreds of packages a project never
installs and still misses a package that a postinstall script put in
node_modules without a lockfile entry.

Say that in the help text and the CLI reference, and add a
troubleshooting entry for packages installed outside the lockfile: a
CycloneDX SBOM of the installed tree saved in the scan root is picked up
by manifest discovery and uploaded with the other manifests.

No behavior change. Bumps the version to 2.13.1 for the version check.

* Say every manifest under module folders is scanned, and shorten the help

The flag adds every supported manifest under node_modules, bower_components
and jspm_packages, at any depth, not only each package's top-level
package.json. Those files are added to the same scan; no separate project
is created. Say that in the reference, troubleshooting entry and changelog.

Cut the help text to two sentences and point to the troubleshooting
section on GitHub, since pip installs don't include the docs folder.

* Bump version to 2.13.3

2.13.2 was released from main, so this change needs the next patch version.

* Add the 2.14.0 upgrade guide to the README

* Combine the 2.13 and 2.14 upgrade notes in the README

---------

Co-authored-by: lelia <2418071+lelia@users.noreply.github.com>

v2.13.2

Toggle v2.13.2's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Tag `stable` on every release (#456)

`stable` only moved when someone ran docker-stable.yml by hand, and it had
not been run since January 2025, so the tag pointed at a CLI about ten
months old. The release build now tags `stable` alongside `latest` and the
version tag. docker-stable.yml stays as a manual way to point `stable` at a
different release, such as rolling back.

Bumps to 2.12.2.

v2.13.1

Toggle v2.13.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Improve documentation for requisite API token permissions (#353)

* Document the API token permissions a run actually needs

The only scope guidance in the repo covered the diff-scans comparison path,
described it as PR/MR-only, and listed `full-scans:list` alongside the two
`diff-scans:*` scopes. The comparison also runs on plain pushes, and the
streaming fallback is itself a full-scans read, so a reader hitting the
`APIAccessDenied` warning was pointed at the wrong permission and told the
condition did not apply to them.

Replace it with the full picture: what every run calls, what diff-producing
runs add, and what each flag adds. Scope names are only published for the
diff-scans path, so the rest are described by endpoint rather than guessed at.

Also document three outcomes that look like failures and are not: the
temporary empty baseline on a first scan, the reachability scan ID being a
`tier1ReachabilityScanId` rather than a full scan ID, and a repository
permission gap exiting 2 — a code the exit table documents as a keyboard
interrupt, and which bypasses `--disable-blocking` and
`--exit-code-on-api-error`.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* Name the token scopes and flag the two the setup guide omits

The permission tables described endpoints but deferred on scope names, since
nothing in this repo or the SDK publishes them. The public CI/CD token setup
guide does: nine scopes, which the docs now name and map to the calls they
cover.

That guide omits `diff-scans:create` and `diff-scans:list`. Every
diff-producing run tries the diff-scans endpoints first, so a token
provisioned exactly as documented always fails that call and falls back to the
legacy streaming comparison, with a warning as the only signal. Anyone
following the documented setup hits this.

The converse is also worth stating: `socketcli` makes no triage or
security-policy calls, so three of the nine scopes the guide lists are not
exercised by this CLI.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* Correct which runs compare, after the 2.9.0 flow change

now sends only a "diff" event type to create_new_diff and everything else,
default-branch pushes included, to create_full_scan_with_report_url.

The permission docs asserted the opposite -- that plain pushes also reach the
diff-scans path -- which was true when they were written against 2.8.1 and is
not true now. Replace the claim with a table of which runs compare, and keep
the old behavior as a note, since the warning still shows up in logs from
pre-2.9.0 runs with no pull request in sight.

Re-verified the rest against 2.9.7: SDK call surface, the four sys.exit(2)
sites, the temporary empty baseline, and the reachability scan ID are all
unchanged.

* Map each API call to the scope the API checks

The scope tables were inferred from scope names. The API reference
publishes the scope each endpoint checks, so the tables now use those and
the open question about unpublished scopes is resolved: GET organizations,
GET report/supported and the ignore-comment telemetry post check none.

Rechecking the call surface against 2.12.0 also changed the guidance:
- repo:update is never exercised. POST full-scans checks only
  full-scans:create, including when it sets the repository head.
- --sbom-file makes no API call; the CycloneDX export it was mapped to
  has no caller. License-metadata and full-scan metadata reads are
  likewise unreached outside tests.
- diff-scans/from-ids checks full-scans:list as well as
  diff-scans:create.
- --reach's manifest upload and tier-1 finalize check
  full-scans:create, as do the Coana CLI's reachability calls.
- The exit-2 section now quotes the repo:create hint the CLI logs on a
  403.

* Describe which runs compare without pinning it to a release

* Scope the repository lookup to diff-producing runs

Only a diff-producing run that takes its baseline from the repository's
head scan looks the repository up, and so only that run can create it
or exit 2. A full-scan run uploads straight to full-scans, which creates
a missing repository for an organization-wide token. A failed streaming
fallback also only points at full-scans:list when it fails with
Insufficient permissions.

* Correct the supported-patterns failure and the empty-baseline trigger

A failed GET report/supported raises from the SDK and stops the run; the
bundled pattern list only covers a non-error response with no body. An
empty baseline is created when the repository has no head scan, not on
every new branch, since a branch compares against the repository's head
scan.

* Bump to 2.12.2

* Correct how missing scopes behave, and how the baseline is chosen

A missing scope was described as mostly degrading with a warning. Only
the two diff-scans scopes do that. The others fail the run:

- full-scans:list is needed before any comparison. scan_type is always
  set, so the baseline is the newest matching scan listed from the
  default branch, not the repository's head-scan pointer, and a denied
  listing exits with the API-error code. The same listing explains when
  an empty baseline is created.
- The scope table now says what happens without each scope.

Calls the tables missed: POST python-cli-runs (and its logs and
finalize calls) on every run, and POST coana-cli/artifacts under
--reach, which accepts full-scans:create or fixes:list. GET
report/supported needs no token, and the streaming fallback endpoint is
deprecated in the API.

Also covered: scope groups, tokens restricted to specific repositories,
comment events, and the flags that force a comparison.

The README exit-code table is left alone. The repository-failure section
keeps the exit-2 details under "2.12.x and earlier", so it stays true
when the exit-code contract changes. The setup-guide paragraphs describe
tokens made from its nine-scope list instead of the guide's current
contents, which are about to change.

* Bump the pinned Socket Python SDK to 3.6.3

socketdev 3.6.3 fixes settings.integration_events(), which requested a
path the API does not route. The CLI does not call it, so nothing
changes at runtime; the pin moves so the CLI ships the current SDK.

---------

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>

v2.13.0

Toggle v2.13.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Fail on existing alerts under `--strict-blocking`, streamline exit co…

…de behavior (#453)

* List each finding once under --strict-blocking

create_new_diff built the unchanged package set by filtering packages
keyed by type/purl against added and removed packages keyed by artifact
ID. The keys never matched, so every added package was also treated as
unchanged, and under --strict-blocking its alerts were reported twice:
once as new and once as existing. Against an empty baseline that doubled
every finding in JSON, SARIF, Slack and GitLab output, and inflated the
"EXISTING blocking issues" count in the summary and GitLab commit status.
The exit code was not affected.

Unchanged packages are now selected and keyed by artifact ID, which also
lets transitive unchanged alerts resolve their introducing package.
select_diff_alerts additionally skips an unchanged alert already listed
as new, matching on purl and alert type like the rest of the diff.

Bumps the version to 2.12.2.

* Include the ecosystem in the strict-blocking dedupe key

Issue.purl holds only name and version, so an npm and a PyPI package can
share it. Keying the dedupe on purl and alert type alone would hide an
existing PyPI alert behind a new npm alert with the same name, version
and type.

The regression tests now run Core.create_new_diff with the scan upload
mocked out, instead of repeating its package assembly, so they fail if
create_new_diff goes back to filtering unchanged packages by purl key.

* Decide exit codes in one place so the exit flags apply to every run

Failures that are not security findings now raise InfrastructureError
instead of calling sys.exit, and cli() maps them through --disable-blocking
and --exit-code-on-api-error. Before, a missing API or SCM token, missing
reachability dependencies, an ineligible plan, a failed repository create
and a failed reachability run each exited with a hard-coded 2 or 3 that
ignored both flags.

- Invalid flags and config values exit 2, the code argparse already uses
  for its own usage errors, instead of 1, which means blocking findings.
  --disable-blocking does not apply to them.
- Ctrl+C exits 130 instead of 2, so it no longer shares a code with usage
  errors.
- A diff scan the API marks incomplete fails as an infrastructure error
  instead of reporting a result that may be missing alerts. It does not
  fall back to the streaming comparison, which reads the same scans.
- A repository lookup that fails with 401 or 403 is reported as a missing
  repo:list scope instead of being treated as a missing repository and
  ending in a repo:create failure.

* Keep each advisory when collapsing repeat alerts

The diff collapsed alerts on (purl, alert type) so a package pulled in by
several manifests reports each finding once. Every CVE of one severity on a
package shares an alert type, so a package's second advisory was dropped
from every output, and a blocking advisory could be dropped behind a
warning on the same package, letting the run pass.

Alerts now collapse on Issue.consolidation_key, which adds the ecosystem
and the GHSA or CVE ID. The PR comment shows that ID next to the title, so
two advisories on one package no longer render as identical rows.

* Report existing alerts from the full scan, and list them in the PR comment

The cached diff-scans endpoint returns unchanged artifacts with no alerts,
so --strict-blocking had nothing to block on and passed runs with blocking
alerts on packages the change didn't touch. The GitLab security report and
FOSSA-format output, which list every current finding, missed the same
alerts.

When one of those outputs is enabled, the CLI now reads the alerts on
unchanged packages from the new full scan. It skips that request when the
comparison already carries them, as the streaming fallback does, and fails
the run if the request fails rather than reporting no existing alerts.

Under --strict-blocking the PR comment lists existing alerts in their own
table after the new ones, blocking first, and stops adding rows before the
comment reaches GitHub's size limit. Ignore comments apply to existing
alerts too, since they now fail the run and each row offers the command.

* Release 2.13.0 with upgrade notes for the exit-code changes

Bumps the minor version because exit codes change: invalid flags exit 2
instead of 1, Ctrl+C exits 130 instead of 2, more failures honor
--disable-blocking and --exit-code-on-api-error, and --strict-blocking now
fails on existing blocking alerts. The CHANGELOG lists each change a CI
step matching on exit codes needs to know about, and the README exit-code
table and the --disable-blocking and --strict-blocking docs describe the
new behavior.

* Group the 2.13.0 changelog entry by change type, like 2.12.0

* Keep each CVE apart in GitLab reports, and group existing license alerts

GitLab finding IDs were built from package, alert type and severity, so
two CVEs of one severity on a package shared an ID and the report kept
only one. The ID now includes the advisory ID when the alert has one;
other findings keep the IDs GitLab already tracks them by. A repeated ID
is skipped, since GitLab expects each finding once per report.

In the PR comment's existing-alerts table, license policy violations are
grouped per package with the license row, as in the new-alerts table,
instead of rendering as security findings with a malware link.

The 2.13.0 changelog entry is cut to short bullets of observable
behavior.

* Fail on missing existing alerts and preserve distinct findings

* Document exit-code migration and CI failure policies

* Audit CLI exit policy and validate configuration before setup

* Document and test advisory identity boundaries

* Document the repository lookup failures and the full-scan read

Troubleshooting now shows the two messages a missing repository scope
produces in 2.13.0, which scope each one points at, and that both follow
the exit-code flags. It also says full-scans:list covers the full-scan
read that --strict-blocking, --enable-gitlab-security and
--legal-format fossa use for alerts on unchanged packages.

v2.12.2

Toggle v2.12.2's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Bump pinned Coana CLI to 15.15.2 (#457)

Co-authored-by: socket-pr-bot[bot] <294242679+socket-pr-bot[bot]@users.noreply.github.com>

v2.12.1

Toggle v2.12.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Bump pinned Coana CLI to 15.15.1 (#455)

Co-authored-by: socket-pr-bot[bot] <294242679+socket-pr-bot[bot]@users.noreply.github.com>