Skip to content

Commit c32c307

Browse files
committed
fix: add all_github_container_package query
1 parent 55d1e84 commit c32c307

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
ID: all_github_container_package
2+
Title: Find all Container Packages to be utilized in tasks
3+
Description: Find all Container Packages in GitHub for tasks
4+
IntegrationType:
5+
- github_organization
6+
Query:
7+
Engine: CloudQL-v0.0.1
8+
KeyTablesAndColumns: [ github_container_package: name ]
9+
Parameters:
10+
- Key: github_package
11+
Required: true
12+
DefaultValue: "*"
13+
- Key: limit_of_packages
14+
Required: true
15+
DefaultValue: "50"
16+
QueryToExecute: |
17+
SELECT
18+
id,
19+
name,
20+
digest,
21+
platform_integration_id
22+
FROM
23+
github_container_package
24+
WHERE
25+
(
26+
COALESCE('{{.github_package}}', '*') = '*'
27+
OR name = ANY(STRING_TO_ARRAY('{{.github_package}}', ','))
28+
)
29+
LIMIT {{.limit_of_packages}};
30+
Tags: []

0 commit comments

Comments
 (0)