Skip to content

Commit

Permalink
Update bigquery url
Browse files Browse the repository at this point in the history
  • Loading branch information
jamonation committed Nov 13, 2023
1 parent a296a34 commit 5d0877d
Showing 1 changed file with 4 additions and 4 deletions.
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

0 comments on commit 5d0877d

Please sign in to comment.