GitHub Advanced Security (Pro)
On this page
The GitHub Advanced Security connector imports code scanning, Dependabot, and secret scanning alerts from GitHub, as three separate finding types (GitHub:CodeScanning, GitHub:Dependabot, and GitHub:SecretScanning). DefectDojo discovers every non-archived repository in the configured organization and creates a Record for each one.
Prerequisites
GitHub Advanced Security features must be enabled for the repositories you want to import. The connector authenticates with a GitHub personal access token:
- In GitHub, open Settings > Developer settings > Personal access tokens and create a token owned by (or with access to) the target organization.
- Grant it read access to the security alerts: a fine-grained token needs Read-only access to Code scanning alerts, Dependabot alerts, and Secret scanning alerts on the organization’s repositories; a classic token needs the
repoandsecurity_eventsscopes. - Confirm the token’s owner can see the repositories you intend to import — the connector only sees repositories the token can access.
Connector Mappings
- Enter
https://api.github.comin the Location field. For GitHub Enterprise Server, usehttps://<your-host>/api/v3. - Enter the organization login in the Organization field.
- Enter the personal access token in the Secret field.
- Optionally, set a Minimum Severity to limit which findings are imported.
Each non-archived repository becomes a Record, queried across the three alert families for open alerts. An alert family that is not enabled for a repository is skipped rather than reported as resolved, so disabled features do not cause false closures.