> For the complete documentation index, see [llms.txt](https://docs.octoxlabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.octoxlabs.com/adapters/g/gitguardian.md).

# GitGuardian

GitGuardian is a secrets detection and remediation platform. It scans source code and other developer assets for hardcoded credentials. OctoXLabs reads the workspace members and adds them to the user inventory.

## Use cases

* List all GitGuardian workspace members.

```
Adapters = gitguardian
```

* Find GitGuardian members that are not in Active Directory.

```
Adapters = gitguardian AND NOT Adapters = active-directory
```

## Before you begin

### Network

| Source              | Destination                                                                 | Port | Protocol |
| ------------------- | --------------------------------------------------------------------------- | ---- | -------- |
| OctoXLabs connector | GitGuardian API (default `api.gitguardian.com`, or your self-hosted domain) | 443  | HTTPS    |

### Required permissions

| Scope or role | Permission     | Needed for                |
| ------------- | -------------- | ------------------------- |
| API key scope | `members:read` | Listing workspace members |

## Create credentials in GitGuardian

{% stepper %}
{% step %}

### Create an API key

Sign in to your GitGuardian dashboard. Under API settings, create a Personal Access Token or a Service Account.
{% endstep %}

{% step %}

### Set the scope

Give the key the **members:read** scope so that OctoXLabs can list workspace members. Copy the key.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter | Required | Type             | Default               | Description                                                  |
| --------- | -------- | ---------------- | --------------------- | ------------------------------------------------------------ |
| Domain    | No       | Text             | `api.gitguardian.com` | API host. Use your own domain for a self-hosted GitGuardian. |
| Api key   | Yes      | Text (sensitive) | None                  | The API key.                                                 |
| Proxy     | No       | Text             | Empty                 | Proxy URL.                                                   |
| Timeout   | No       | Integer          | 30                    | Seconds to wait for API responses.                           |

## Troubleshooting

| Error message                    | Cause                            | Fix             |
| -------------------------------- | -------------------------------- | --------------- |
| `Max retries exceeded for <url>` | The API kept answering HTTP 429. | Wait and retry. |

## Change history

{% hint style="info" %}
Available starting from version 6.6.2.
{% endhint %}
