veris-cli 2.4.2__tar.gz → 2.4.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: veris-cli
3
- Version: 2.4.2
3
+ Version: 2.4.3
4
4
  Summary: CLI to connect local agents to the Veris backend
5
5
  Project-URL: Homepage, https://github.com/veris-ai/veris-cli
6
6
  Project-URL: Bug Tracker, https://github.com/veris-ai/veris-cli/issues
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "veris-cli"
3
- version = "2.4.2"
3
+ version = "2.4.3"
4
4
  description = "CLI to connect local agents to the Veris backend"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.11"
@@ -23,10 +23,12 @@ trap "rm -rf $TEMP_DOCKER_CONFIG" EXIT
23
23
  # Preserve credential helpers from the default config.
24
24
  # We only copy credHelpers (not the full config) to avoid importing
25
25
  # Docker Desktop context references that break in the temp directory.
26
+ # Exclude the target registry from credHelpers so docker login token is used
27
+ # instead of a potentially-stale gcloud credential helper.
26
28
  DEFAULT_DOCKER_CONFIG="${HOME}/.docker"
27
29
  if [ -f "$DEFAULT_DOCKER_CONFIG/config.json" ]; then
28
30
  if command -v jq &> /dev/null; then
29
- jq '{"credHelpers": (.credHelpers // {})}' "$DEFAULT_DOCKER_CONFIG/config.json" > "$TEMP_DOCKER_CONFIG/config.json"
31
+ jq --arg reg "$REGISTRY" '{"credHelpers": ((.credHelpers // {}) | del(.[$reg]))}' "$DEFAULT_DOCKER_CONFIG/config.json" > "$TEMP_DOCKER_CONFIG/config.json"
30
32
  fi
31
33
  fi
32
34
 
File without changes
File without changes