turbot/github_insights

Query: organization_security_advisory_table

Usage

powerpipe query github_insights.query.organization_security_advisory_table

SQL

select
o.login as "Organization",
a.security_advisory_summary as "Advisory",
a.security_advisory_severity as "Severity",
a.security_advisory_cve_id as "CVE",
a.dependency_package_name as "Package",
a.dependency_scope as "Scope",
a.created_at as "Alert Created",
now()::date - a.created_at::date as "Age in Days",
a.html_url as "advisory_url",
o.url,
case
when a.security_advisory_severity = 'critical' then 1
when a.security_advisory_severity = 'high' then 2
when a.security_advisory_severity = 'medium' then 3
when a.security_advisory_severity = 'low' then 4
else 5
end as weight
from
github_my_organization o
join github_organization_dependabot_alert a on o.login = a.organization
where
a.state = 'open'
and login = 'turbot'
order by
weight;

Dashboards

The query is used in the dashboards: