Skip to content

Commit a1c1ae4

Browse files
committed
Bump to 2.12.1
1 parent 39323c4 commit a1c1ae4

4 files changed

Lines changed: 28 additions & 3 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,30 @@
11
# Changelog
22

3+
## 2.12.1
4+
5+
### Documentation
6+
7+
- Documented the API token scopes `socketcli` needs, and which API call each one
8+
covers, in
9+
[Troubleshooting](docs/troubleshooting.md#api-token-permissions). Each mapping
10+
comes from the scope the API checks for that endpoint.
11+
- The [CI/CD token setup guide](https://docs.socket.dev/docs/create-socket-api-key-for-cicd)
12+
does not list `diff-scans:create` or `diff-scans:list`. A token set up from it
13+
falls back to the older scan comparison on every run that compares scans, with only a
14+
warning in the log. The troubleshooting page now says to add both, and notes that
15+
the CLI never uses four of the guide's scopes: `repo:update`,
16+
`security-policy:read`, `triage:alerts-list` and `triage:alerts-update`.
17+
- Corrected the `APIAccessDenied` comparison guidance. It applies to every run that
18+
compares scans, not only pull requests, and the missing scopes are the
19+
`diff-scans:*` pair, not `full-scans:list`.
20+
- Documented three results that look like failures but aren't: the temporary empty
21+
baseline on a repository's first scan, reachability scan IDs that aren't full-scan
22+
IDs, and exit `2` when the token can't create the repository. Exit `2` is not
23+
remapped by `--disable-blocking` or `--exit-code-on-api-error`.
24+
- Listed all four accepted token environment variables in priority order, and fixed
25+
the GitLab section, which named `$SOCKET_API_TOKEN` instead of
26+
`SOCKET_SECURITY_API_TOKEN`.
27+
328
## 2.12.0
429

530
### Added

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ build-backend = "hatchling.build"
66

77
[project]
88
name = "socketsecurity"
9-
version = "2.12.0"
9+
version = "2.12.1"
1010
requires-python = ">= 3.11"
1111
license = {"file" = "LICENSE"}
1212
dependencies = [

‎socketsecurity/__init__.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
__author__ = 'socket.dev'
2-
__version__ = '2.12.0'
2+
__version__ = '2.12.1'
33
USER_AGENT_NAME = 'socket-python-cli'
44
USER_AGENT = f'{USER_AGENT_NAME}/{__version__}'

‎uv.lock‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)