Skip to content

Commit

Permalink
Add doc on github_organization_dependabot_alert and github_repository…
Browse files Browse the repository at this point in the history
…_dependabot_alert
  • Loading branch information
francois2metz committed Dec 5, 2022
1 parent 4ce1d9a commit cc97108
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions docs/tables/github_organization_dependabot_alert.md
@@ -0,0 +1,52 @@
# Table: github_organization_dependabot_alert

The `github_organization_organization_dependabot_alert` table can be used to query information about dependabot alerts. You must be an owner or security manager for the organization to successfully query dependabot alerts.

**You must specify the organization** in the where or join clause (`where organization=`, `join github_organization_depedanbot_alert on organization=`).

## Examples

### List dependabot alert

```sql
select
organization,
state,
dependency_package_ecosystem,
dependency_package_name
from
github_organization_dependabot_alert
where
organization = 'my_org';
```

### List open dependabot alerts

```sql
select
organization,
state,
dependency_package_ecosystem,
dependency_package_name
from
github_organization_dependabot_alert
where
organization = 'my_org'
and state = 'open';
```

### List open critical dependabot alerts

```sql
select
organization,
state,
dependency_package_ecosystem,
dependency_package_name
from
github_organization_dependabot_alert
where
organization = 'my_org'
and state = 'open'
and security_advisory_severity='critical';
```

0 comments on commit cc97108

Please sign in to comment.