diff --git a/.github/workflows/cicd.yaml b/.github/workflows/cicd.yaml index 64adc557..7270c887 100644 --- a/.github/workflows/cicd.yaml +++ b/.github/workflows/cicd.yaml @@ -148,7 +148,7 @@ jobs: runs-on: ubuntu-latest steps: - name: get code - uses: actions/checkout@v1 + uses: actions/checkout@v3 with: ref: ${{ github.head_ref }} - name: install python diff --git a/src/groundlight/client.py b/src/groundlight/client.py index 7fc3d8c6..9d304c5e 100644 --- a/src/groundlight/client.py +++ b/src/groundlight/client.py @@ -67,10 +67,18 @@ def __init__(self, endpoint: Optional[str] = None, api_token: Optional[str] = No configuration.api_key["ApiToken"] = api_token + self.api_token = api_token[:20] + "..." # redact the secret self.api_client = GroundlightApiClient(configuration) self.detectors_api = DetectorsApi(self.api_client) self.image_queries_api = ImageQueriesApi(self.api_client) + def __str__(self) -> str: + out = f" ImageQuery: """Post-process the image query so we don't use confusing internal labels.