Skip to content

Commit 3a3bed1

Browse files
committed
fix: add github container package query
1 parent b8d34bb commit 3a3bed1

File tree

1 file changed

+29
-0
lines changed

1 file changed

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

0 commit comments

Comments
 (0)