Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Checks to 3.11 #706

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions sql/security/active-repo-report.sql
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,10 @@ SELECT
u.login AS repo_owner,
u.type AS owner_type,
pushed_at AS last_update,
platform,
severity,
cve_id,
ghsa_id,
white_source_id,
external_reference
white_source_id
FROM
github_enterprise.repository_vulnerability_alerts z
JOIN github_enterprise.vulnerabilities v ON
Expand All @@ -31,4 +29,4 @@ WHERE
AND DATEDIFF(NOW(), r.pushed_at) < 91
AND r.parent_id IS NULL
ORDER BY
last_update DESC;
last_update DESC;
4 changes: 1 addition & 3 deletions sql/security/vuln-critical-count.sql
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ SELECT
v.ghsa_id,
v.white_source_id,
v.published_at as published,
v.external_reference,
v.platform as ecosystem,
COUNT(z.vulnerability_id) as repo_count
FROM
github_enterprise.repository_vulnerability_alerts z
Expand All @@ -19,4 +17,4 @@ WHERE
GROUP BY
v.id
ORDER BY
COUNT(z.vulnerability_id) DESC;
COUNT(z.vulnerability_id) DESC;
6 changes: 2 additions & 4 deletions sql/security/vuln-report.sql
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,10 @@ SELECT
u.login as repo_owner,
u.type as owner_type,
pushed_at as last_update,
platform,
severity,
cve_id,
ghsa_id,
white_source_id,
external_reference
white_source_id
FROM
github_enterprise.repository_vulnerability_alerts z
JOIN github_enterprise.vulnerabilities v ON
Expand All @@ -23,4 +21,4 @@ JOIN github_enterprise.repositories r ON
JOIN github_enterprise.users u ON
r.owner_id = u.id
ORDER BY
last_update DESC;
last_update DESC;
Loading