Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ dependencies = [
"light-s3-client~=0.0.30",
"PyYAML>=6.0.0",
"tomli; python_version < '3.11'",
"socketdev>=3.3.0",
"socketdev>=3.5.0",
"jsonschema>=4.25.1"
]

Expand Down
17 changes: 9 additions & 8 deletions scripts/check_core_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,17 +315,18 @@ def analyze_purls(purls: list[str], token: str) -> dict[str, dict[str, Any]]:
components = [{"purl": p} for p in purls]
# The batch purl endpoints default to fail-open: inputs whose analysis is
# pending or unresolvable are silently omitted from the response unless the
# caller opts in. Opt in to fail-closed semantics: poll=true waits (bounded
# by timeoutSec; the server may cap it) for pending analysis, and
# alerts=true materializes still-unresolved inputs as synthetic
# pendingScan/notFound rows instead of dropping them. The SDK passes these
# extra kwargs through as query params (verified on 3.0.29 and 3.3.0).
# caller opts in. Opt in to fail-closed semantics: poll=True waits (bounded
# by timeout_sec; the server may cap it) for pending analysis, and
# alerts=True materializes still-unresolved inputs as synthetic
# pendingScan/notFound rows instead of dropping them. These are first-class
# typed params as of socketdev 3.4.2 (previously passed as stringly-typed
# query-string kwargs); see CE-360.
results = client.purl.post(
license="false",
components=components,
poll="true",
timeoutSec="120",
alerts="true",
poll=True,
timeout_sec=120,
alerts=True,
**kwargs,
) or []
if not results:
Expand Down
8 changes: 4 additions & 4 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.