Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tables github_repository_dependabot_alert and github_organization…
…_dependabot_alert (#215)
- Loading branch information
1 parent
9800709
commit a93495a
Showing
7 changed files
with
594 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# Table: github_organization_dependabot_alert | ||
|
||
The `github_organization_dependabot_alert` table can be used to query information about dependabot alerts from an organization. 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 alerts | ||
|
||
```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'; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# Table: github_repository_dependabot_alert | ||
|
||
The `github_repository_dependabot_alert` table can be used to query information about dependabot alerts from a repository. | ||
|
||
**You must specify which repository** in the where or join clause using the `repository_full_name` column. | ||
|
||
## Examples | ||
|
||
### List dependabot alerts | ||
|
||
```sql | ||
select | ||
state, | ||
dependency_package_ecosystem, | ||
dependency_package_name | ||
from | ||
github_repository_dependabot_alert | ||
where | ||
repository_full_name = 'turbot/steampipe'; | ||
``` | ||
|
||
### List open dependabot alerts | ||
|
||
```sql | ||
select | ||
state, | ||
dependency_package_ecosystem, | ||
dependency_package_name | ||
from | ||
github_repository_dependabot_alert | ||
where | ||
repository_full_name = 'turbot/steampipe' | ||
and state = 'open'; | ||
``` | ||
|
||
### List open critical dependabot alerts | ||
|
||
```sql | ||
select | ||
state, | ||
dependency_package_ecosystem, | ||
dependency_package_name | ||
from | ||
github_repository_dependabot_alert | ||
where | ||
repository_full_name = 'turbot/steampipe' | ||
and state = 'open' | ||
and security_advisory_severity = 'critical'; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.