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

WIP: Update rumble url #1131

Closed
wants to merge 1 commit into from
Closed
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
8 changes: 4 additions & 4 deletions tools/rumble/bigquery.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,22 +47,22 @@ func NewBqClient() (bqClient, error) {
var b bqClient
var err error
b.Ctx = context.Background()
if b.Client, err = bigquery.NewClient(b.Ctx, "base-image-rumble"); err != nil {
if b.Client, err = bigquery.NewClient(b.Ctx, "prod-images-c6e5"); err != nil {
return b, err
}
return b, nil
}

const allVulnsQuery = `
SELECT DISTINCT vulnerability
FROM base-image-rumble.rumble.scheduled_vulns
FROM prod-images-c6e5.insights_ds.vulnerabilities
`

const affectedImagesQuery = `
SELECT s1.image, s1.time as time,
FROM base-image-rumble.rumble.scheduled_vulns
FROM prod-images-c6e5.insights_ds.vulnerabilities
AS s2
INNER JOIN base-image-rumble.rumble.scheduled
INNER JOIN prod-images-c6e5.insights_ds.image-scan-summary
AS s1
ON s1.id = s2.scan_id
WHERE s2.vulnerability = ?
Expand Down
Loading