Skip to content

Commit 31e2006

Browse files
committed
updating query
1 parent 27a93dc commit 31e2006

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

queries/docker_base_images.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
id: all_docker_base_images
2+
type: query
3+
title: Docker Base Images
4+
description: Get all Docker base images
5+
integration_type:
6+
- github_account
7+
query: |
8+
SELECT image AS "Base Image",
9+
COUNT(*) AS "Count"
10+
FROM (
11+
SELECT DISTINCT sha,
12+
jsonb_array_elements_text(images) AS image
13+
FROM github_artifact_dockerfile
14+
) AS expanded
15+
GROUP BY image
16+
ORDER BY "Count" DESC;
17+
tags:
18+
cloud_provider:
19+
- github
20+
cloud_service:
21+
- DevOps
22+
platform_queries_bookmark:
23+
- 'true'

0 commit comments

Comments
 (0)